Weight Loss

Consistency is key for weight loss, study says

Story highlights

  • Want to lose weight as soon as and for all? Do it persistently, a brand new study suggests
  • Keep your consuming habits comparable and attempt to plan forward, researcher advises

A brand new study means that slowly however steadily shedding kilos every week could be extra useful for long-term weight loss than seeing your weight drastically drop, solely to rise once more.

Developing a secure schedule of healthy consuming and exercise might help with preserving your weight administration constant, stated Emily Feig, lead writer of the study and a postdoctoral fellow at Massachusetts General Hospital. The study was published Monday in the journal Obesity.
‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = thumb: ‘none’,video: ‘dwelling/2016/08/01/controlling-your-weight.cnn’,width: ‘100%’,height: ‘100%’,part: ‘home’,profile: ‘enlargement’,community: ‘cnn’,markupId: ‘body-text_6’,adsection: ‘const-article-inpage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: “mini”:”height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160801094626-controlling-your-weight-00014816-small-169.jpg”,”xsmall”:”height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160801094626-controlling-your-weight-00014816-medium-plus-169.jpg”,”small”:”height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160801094626-controlling-your-weight-00014816-large-169.jpg”,”medium”:”height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160801094626-controlling-your-weight-00014816-exlarge-169.jpg”,”large”:”height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160801094626-controlling-your-weight-00014816-super-169.jpg”,”full16x9″:”height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160801094626-controlling-your-weight-00014816-full-169.jpg”,”mini1x1″:”height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160801094626-controlling-your-weight-00014816-small-11.jpg”,autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) autoStartVideo = false;if (autoStartVideo === true) if (turnOnFlashMessaging === true) autoStartVideo = false;containerEl = jQuery(doc.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl); else CNN.autoPlayVideoExist = true;configObj.autostart = autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInAssortment(currentVideoCollection, configObj.markupId);videoEndSlateImpl = new CNN.VideoEndSlate(‘body-text_6’);/*** Finds the subsequent video ID and URL within the present assortment, if out there.* @param currentVideoId The video that is at present enjoying* @param containerId The mother or father container Id of the video component*/perform findNextVideo(currentVideoId) var i,vidObj;if (currentVideoId && jQuery.isArray(currentVideoCollection) && currentVideoCollection.size > zero) for (i = zero; i zero) videoEndSlateImpl.showEndSlateForContainer();callbackObj = onPlayerReady: perform (containerId) CNN.VideoPlayer.reportLoadTime(containerId);CNN.VideoPlayer.deal withInitialExpandableVideoState(containerId);CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible());if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) var containerClassId = ‘#’ + containerId;if (jQuery(containerClassId).mother and father(‘.js-pg-rail-tall__head’).size) videoPinner = new CNN.VideoPinner(containerClassId);videoPinner.init(); else CNN.VideoPlayer.hideThumbnail(containerId);,/** Listen to the metadata occasion which fires proper after the advert ends and the precise video playback begins*/onContentEntryLoad: perform(containerId, participantId, contentid, isQueue) CNN.VideoPlayer.showSpinner(containerId);,onContentMetadata: perform (containerId, participantId, metadata, content materialId, period, width, height) var endSlateLen = jQuery(doc.getElementById(containerId)).father or mother().discover(‘.js-video__end-slate’).eq(zero).size;CNN.VideoSourceUtils.replaceSource(containerId, metadata);if (endSlateLen > zero) videoEndSlateImpl.fetchAndShowRecommendedVideos(metadata);,onAdPlay: perform (containerId, cvpId, token, mode, id, period, blockId, adType) clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);videoPinner.animateDown();,onContentPlay: perform (containerId, cvpId, occasion) var participantInstance,prevVideoId;/** When the video content material begins enjoying, inject analytics knowledge* for Aspen (if enabled) and the companion advert format* (if it was set when the advert performed) ought to change again to* epic advert format. onContentPlay calls updateCompanionLayout* with the ‘restoreEpicAds’ format to make this change*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘restoreEpicAds’);clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);if (CNN.VideoPlayer.getLibraryName(containerId) === ‘fave’) participantInstance = FAVE.participant.getInstance(containerId) || null; else participantInstance = containerId && window.cnnVideoManager.getPlayerByContainer(containerId).videoInstance.cvp || null;prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 || window.jsmd.v.eVar4)) || ”;if (participantInstance && typeof participantInstance.reportAnalytics === ‘perform’) if (prevVideoId.size === zero && doc.referrer && doc.referrer.search(//movies//) >= zero) prevVideoId = doc.referrer.exchange(/^(?:http|https)://[^/]/movies/(.+.w+)(?:/video/playlists/.*)?$/, ‘/video/$1’);if (prevVideoId === doc.referrer) prevVideoId = ”;participantInstance.reportAnalytics(‘videoPageData’, videoCollection: currentVideoCollectionId,videoBranding: CNN.omniture.branding_content_page,templateType: CNN.omniture.template_type,nextVideo: nextVideoId,previousVideo: prevVideoId,referrerType: ”,referrerUrl: doc.referrer);if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);videoPinner.animateDown();,onContentReplayRequest: perform (containerId, cvpId, content materialId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);var $endSlate = jQuery(doc.getElementById(containerId)).dad or mum().discover(‘.js-video__end-slate’).eq(zero);if ($endSlate.size > zero) $endSlate.removeClass(‘video__end-slate–active’).addClass(‘video__end-slate–inactive’);,onContentBegin: perform (containerId, cvpId, content materialId) CNN.VideoPlayer.mutePlayer(containerId);if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.VideoPlayer.hideSpinner(containerId);clearTimeout(moveToNextTimeout);CNN.VideoSourceUtils.clearSource(containerId);jQuery(doc).triggerVideoContentStarted();,onContentComplete: perform (containerId, cvpId, content materialId) if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘restoreFreewheel’);navigateToNextVideo(content materialId, containerId);,onContentEnd: perform (containerId, cvpId, content materialId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(false);,onCVPVisibilityChange: perform (containerId, cvpId, seen) CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, seen);;if (typeof configObj.context !== ‘string’ || configObj.context.size zero) configObj.adsection = window.ssid;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;CNN.VideoPlayer.getLibrary(configObj, callbackObj, isLivePlayer););/* videodemanddust is a default function of the injector */CNN.INJECTOR.scriptComplete(‘videodemanddust’);

“We don’t know yet what it is about weight variability that’s problematic. It could be reflective of trouble following a diet and exercise plan consistently. But it’s also possible that physiologically, some people tend to lose weight more consistently than others, regardless of how closely they are following a diet,” stated Feig, who carried out the study as a doctoral scholar at Drexel University.

“My best recommendation for patients, based on this research, is to try to keep their eating pretty similar day to day,” she stated. “Things like planning ahead, prepping food for the week on Sunday and reducing frequency of eating at restaurants can help with this, since they reduce the chance of making impulsive decisions about what to eat. Building a habit of healthy, consistent eating can help patients reduce weight variability and lose weight more consistently, even if it’s at a slow pace.”

The study concerned 183 obese or overweight adults, principally white ladies, dwelling close to Philadelphia. For one yr, they participated in a weight-loss program during which they have been endorsed on their weight loss plan and exercise.

From the beginning of this system, their weight was tracked, measured and analyzed weekly. The adults additionally attended evaluation conferences at six, 12 and 24 months.

New study suggests strategies for keeping off pounds

The researchers discovered that weight variability every week among the many adults, measured on the first six and 12 weeks of this system, was positively related to much less subsequent weight loss at 12 and 24 months.

In different phrases, greater weight variability measured early in this system predicted which sufferers would proceed to wrestle with controlling their weight by the top of this system and one yr later, in response to the study findings.

Feig stated that extra analysis is wanted to find out simply how vital the link could also be between weight variability and long-term weight management. However, studies have showed that the total amount of weight loss in the first few weeks of a program can predict how individuals do a lot afterward, she stated.
‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = thumb: ‘none’,video: ‘health/2015/04/17/top-plans-for-lasting-weight-loss-solutions.cnn’,width: ‘100%’,height: ‘100%’,part: ‘home’,profile: ‘enlargement’,community: ‘cnn’,markupId: ‘body-text_19’,adsection: ‘const-article-inpage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: “mini”:”height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150417171953-top-plans-for-lasting-weight-loss-solutions-00013330-small-169.jpg”,”xsmall”:”height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150417171953-top-plans-for-lasting-weight-loss-solutions-00013330-medium-plus-169.jpg”,”small”:”height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150417171953-top-plans-for-lasting-weight-loss-solutions-00013330-large-169.jpg”,”medium”:”height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150417171953-top-plans-for-lasting-weight-loss-solutions-00013330-exlarge-169.jpg”,”large”:”height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150417171953-top-plans-for-lasting-weight-loss-solutions-00013330-super-169.jpg”,”full16x9″:”height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150417171953-top-plans-for-lasting-weight-loss-solutions-00013330-full-169.jpg”,”mini1x1″:”height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150417171953-top-plans-for-lasting-weight-loss-solutions-00013330-small-11.jpg”,autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) autoStartVideo = false;if (autoStartVideo === true) if (turnOnFlashMessaging === true) autoStartVideo = false;containerEl = jQuery(doc.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl); else CNN.autoPlayVideoExist = true;configObj.autostart = autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInAssortment(currentVideoCollection, configObj.markupId);videoEndSlateImpl = new CNN.VideoEndSlate(‘body-text_19’);/*** Finds the subsequent video ID and URL within the present assortment, if obtainable.* @param currentVideoId The video that is presently enjoying* @param containerId The father or mother container Id of the video factor*/perform findNextVideo(currentVideoId) var i,vidObj;if (currentVideoId && jQuery.isArray(currentVideoCollection) && currentVideoCollection.size > zero) for (i = zero; i zero) videoEndSlateImpl.showEndSlateForContainer();callbackObj = onPlayerReady: perform (containerId) CNN.VideoPlayer.reportLoadTime(containerId);CNN.VideoPlayer.deal withInitialExpandableVideoState(containerId);CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible());if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) var containerClassId = ‘#’ + containerId;if (jQuery(containerClassId).mother and father(‘.js-pg-rail-tall__head’).size) videoPinner = new CNN.VideoPinner(containerClassId);videoPinner.init(); else CNN.VideoPlayer.hideThumbnail(containerId);,/** Listen to the metadata occasion which fires proper after the advert ends and the precise video playback begins*/onContentEntryLoad: perform(containerId, participantId, contentid, isQueue) CNN.VideoPlayer.showSpinner(containerId);,onContentMetadata: perform (containerId, participantId, metadata, content materialId, period, width, height) var endSlateLen = jQuery(doc.getElementById(containerId)).father or mother().discover(‘.js-video__end-slate’).eq(zero).size;CNN.VideoSourceUtils.replaceSource(containerId, metadata);if (endSlateLen > zero) videoEndSlateImpl.fetchAndShowRecommendedVideos(metadata);,onAdPlay: perform (containerId, cvpId, token, mode, id, period, blockId, adType) clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);videoPinner.animateDown();,onContentPlay: perform (containerId, cvpId, occasion) var participantInstance,prevVideoId;/** When the video content material begins enjoying, inject analytics knowledge* for Aspen (if enabled) and the companion advert format* (if it was set when the advert performed) ought to change again to* epic advert format. onContentPlay calls updateCompanionLayout* with the ‘restoreEpicAds’ format to make this change*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘restoreEpicAds’);clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);if (CNN.VideoPlayer.getLibraryName(containerId) === ‘fave’) participantInstance = FAVE.participant.getInstance(containerId) || null; else participantInstance = containerId && window.cnnVideoManager.getPlayerByContainer(containerId).videoInstance.cvp || null;prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 || window.jsmd.v.eVar4)) || ”;if (participantInstance && typeof participantInstance.reportAnalytics === ‘perform’) if (prevVideoId.size === zero && doc.referrer && doc.referrer.search(//movies//) >= zero) prevVideoId = doc.referrer.substitute(/^(?:http|https)://[^/]/movies/(.+.w+)(?:/video/playlists/.*)?$/, ‘/video/$1’);if (prevVideoId === doc.referrer) prevVideoId = ”;participantInstance.reportAnalytics(‘videoPageData’, videoCollection: currentVideoCollectionId,videoBranding: CNN.omniture.branding_content_page,templateType: CNN.omniture.template_type,nextVideo: nextVideoId,previousVideo: prevVideoId,referrerType: ”,referrerUrl: doc.referrer);if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);videoPinner.animateDown();,onContentReplayRequest: perform (containerId, cvpId, content materialId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);var $endSlate = jQuery(doc.getElementById(containerId)).mum or dad().discover(‘.js-video__end-slate’).eq(zero);if ($endSlate.size > zero) $endSlate.removeClass(‘video__end-slate–active’).addClass(‘video__end-slate–inactive’);,onContentBegin: perform (containerId, cvpId, content materialId) CNN.VideoPlayer.mutePlayer(containerId);if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.VideoPlayer.hideSpinner(containerId);clearTimeout(moveToNextTimeout);CNN.VideoSourceUtils.clearSource(containerId);jQuery(doc).triggerVideoContentStarted();,onContentComplete: perform (containerId, cvpId, content materialId) if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘restoreFreewheel’);navigateToNextVideo(content materialId, containerId);,onContentEnd: perform (containerId, cvpId, content materialId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(false);,onCVPVisibilityChange: perform (containerId, cvpId, seen) CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, seen);;if (typeof configObj.context !== ‘string’ || configObj.context.size zero) configObj.adsection = window.ssid;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;CNN.VideoPlayer.getLibrary(configObj, callbackObj, isLivePlayer););/* videodemanddust is a default function of the injector */CNN.INJECTOR.scriptComplete(‘videodemanddust’);

“This study goes even further in supporting the importance of early weight changes by showing that weekly variability in weight, above and beyond how much weight is lost, predicts weight loss maintenance up to two years later,” she stated. “So it seems that both success and consistency in weight loss at the beginning of a program is important for long-term success.”

Dr. Zhaoping Li, director on the University of California, Los Angeles’ Center for Human Nutrition, who was not concerned within the new study, stated the findings are in line with what has been seen in scientific literature.

“Whatever we do for those people to lose weight, if they can do it consistently, that means that particular plan not only physiologically fits the patient (and) that particular individual’s body but also is feasible (and) practical for … a day-to-day life,” Li stated.

“So, if we now know someone is struggling from the beginning, we need to adjust,” she stated. “That can be diet; that can be a lifestyle change. Because we know that if we don’t do an adjustment, they’re going to fail. That’s what this study is really showing.”

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = thumb: ‘none’,video: ‘health/2015/04/09/cnn-orig-living-to-100-stop-mindless-eating.cnn’,width: ‘100%’,height: ‘100%’,part: ‘home’,profile: ‘enlargement’,community: ‘cnn’,markupId: ‘body-text_24’,adsection: ‘const-article-inpage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: “mini”:”height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150409135130-living-to-100-eating-healthy-small-169.jpg”,”xsmall”:”height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150409135130-living-to-100-eating-healthy-medium-plus-169.jpg”,”small”:”height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150409135130-living-to-100-eating-healthy-large-169.jpg”,”medium”:”height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150409135130-living-to-100-eating-healthy-exlarge-169.jpg”,”large”:”height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150409135130-living-to-100-eating-healthy-super-169.jpg”,”full16x9″:”height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150409135130-living-to-100-eating-healthy-full-169.jpg”,”mini1x1″:”height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150409135130-living-to-100-eating-healthy-small-11.jpg”,autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) autoStartVideo = false;if (autoStartVideo === true) if (turnOnFlashMessaging === true) autoStartVideo = false;containerEl = jQuery(doc.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl); else CNN.autoPlayVideoExist = true;configObj.autostart = autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInAssortment(currentVideoCollection, configObj.markupId);videoEndSlateImpl = new CNN.VideoEndSlate(‘body-text_24’);/*** Finds the subsequent video ID and URL within the present assortment, if obtainable.* @param currentVideoId The video that is presently enjoying* @param containerId The father or mother container Id of the video component*/perform findNextVideo(currentVideoId) var i,vidObj;if (currentVideoId && jQuery.isArray(currentVideoCollection) && currentVideoCollection.size > zero) for (i = zero; i zero) videoEndSlateImpl.showEndSlateForContainer();callbackObj = onPlayerReady: perform (containerId) CNN.VideoPlayer.reportLoadTime(containerId);CNN.VideoPlayer.deal withInitialExpandableVideoState(containerId);CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible());if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) var containerClassId = ‘#’ + containerId;if (jQuery(containerClassId).mother and father(‘.js-pg-rail-tall__head’).size) videoPinner = new CNN.VideoPinner(containerClassId);videoPinner.init(); else CNN.VideoPlayer.hideThumbnail(containerId);,/** Listen to the metadata occasion which fires proper after the advert ends and the precise video playback begins*/onContentEntryLoad: perform(containerId, participantId, contentid, isQueue) CNN.VideoPlayer.showSpinner(containerId);,onContentMetadata: perform (containerId, participantId, metadata, content materialId, period, width, height) var endSlateLen = jQuery(doc.getElementById(containerId)).mother or father().discover(‘.js-video__end-slate’).eq(zero).size;CNN.VideoSourceUtils.replaceSource(containerId, metadata);if (endSlateLen > zero) videoEndSlateImpl.fetchAndShowRecommendedVideos(metadata);,onAdPlay: perform (containerId, cvpId, token, mode, id, period, blockId, adType) clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);videoPinner.animateDown();,onContentPlay: perform (containerId, cvpId, occasion) var participantInstance,prevVideoId;/** When the video content material begins enjoying, inject analytics knowledge* for Aspen (if enabled) and the companion advert format* (if it was set when the advert performed) ought to change again to* epic advert format. onContentPlay calls updateCompanionLayout* with the ‘restoreEpicAds’ format to make this change*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘restoreEpicAds’);clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);if (CNN.VideoPlayer.getLibraryName(containerId) === ‘fave’) participantInstance = FAVE.participant.getInstance(containerId) || null; else participantInstance = containerId && window.cnnVideoManager.getPlayerByContainer(containerId).videoInstance.cvp || null;prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 || window.jsmd.v.eVar4)) || ”;if (participantInstance && typeof participantInstance.reportAnalytics === ‘perform’) if (prevVideoId.size === zero && doc.referrer && doc.referrer.search(//movies//) >= zero) prevVideoId = doc.referrer.exchange(/^(?:http|https)://[^/]/movies/(.+.w+)(?:/video/playlists/.*)?$/, ‘/video/$1’);if (prevVideoId === doc.referrer) prevVideoId = ”;participantInstance.reportAnalytics(‘videoPageData’, videoCollection: currentVideoCollectionId,videoBranding: CNN.omniture.branding_content_page,templateType: CNN.omniture.template_type,nextVideo: nextVideoId,previousVideo: prevVideoId,referrerType: ”,referrerUrl: doc.referrer);if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);videoPinner.animateDown();,onContentReplayRequest: perform (containerId, cvpId, content materialId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);var $endSlate = jQuery(doc.getElementById(containerId)).mum or dad().discover(‘.js-video__end-slate’).eq(zero);if ($endSlate.size > zero) $endSlate.removeClass(‘video__end-slate–active’).addClass(‘video__end-slate–inactive’);,onContentBegin: perform (containerId, cvpId, content materialId) CNN.VideoPlayer.mutePlayer(containerId);if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.VideoPlayer.hideSpinner(containerId);clearTimeout(moveToNextTimeout);CNN.VideoSourceUtils.clearSource(containerId);jQuery(doc).triggerVideoContentStarted();,onContentComplete: perform (containerId, cvpId, content materialId) if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘restoreFreewheel’);navigateToNextVideo(content materialId, containerId);,onContentEnd: perform (containerId, cvpId, content materialId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(false);,onCVPVisibilityChange: perform (containerId, cvpId, seen) CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, seen);;if (typeof configObj.context !== ‘string’ || configObj.context.size zero) configObj.adsection = window.ssid;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;CNN.VideoPlayer.getLibrary(configObj, callbackObj, isLivePlayer););/* videodemanddust is a default function of the injector */CNN.INJECTOR.scriptComplete(‘videodemanddust’);

Source link