'); $ vidEndSlate.removeClass (' video__end-slate — inactive '). AddClass (' video__end-slate — active ');}}; CNN.autoPlayVideoExist = ( CNN.autoPlayVideoExist === правда)? true: false; var configObj = {thumb: 'none', video: 'business / 2018/09/26 / first-impression-of-apples-iphone-xs-and-xs-max-orig.cnn-business', ширина: '100%', высота: '100%', раздел: 'международный', профиль: 'расширение', сеть: 'cnn', markupId: 'large-media_0', adsection: 'edition.cnnbusiness_tech_t1', frameWidth: '100%', frameHeight: '100%', posterImageOverride: {"mini": {"width": 220, "type": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam /assets/180926121224-new-iphone-small-169.jpg","height":124},"xsmall":{"width":307,"type":"jpg","uri":"//cdn .cnn.com / cnnnext / dam / assets / 180926121224-new-iphone-medium-plus-169.jpg "," height ": 173}," small ": {" width ": 460," type ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/180926121224-new-iphone-large-169.jpg","height":259},"medium":{"width ": 780, "type": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/180926121224-new-iphone-exlarge-169.jpg","height":438}," large ": {" width ": 1100," type ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/180926121224-new-iphone-super-169.jpg ", «высота»: 61 9}, "full16x9": {"width": 1600, "type": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/180926121224-new-iphone-full-169 .jpg "," height ": 900}," mini1x1 ": {" width ": 120," type ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/180926121224 -new-iphone-small-11.jpg "," height ": 120}}}, autoStartVideo = false, isVideoReplayClicked = false, callbackObj, containerEl, currentVideoCollection = []currentVideoCollectionId = '', isLivePlayer = false, mediaMetadataCallbacks, mobilePinnedView = null, moveToNextTimeout, mutePlayerEnabled = false, nextVideoId = '', nextVideoUrl = '', turnOnFlashMessaging = false, videoPinner, videoEndSlateImpl; if (CNN.autoPlayVideoExist === false) {autoStartVideoCopy ==== == 'функция'? CNN.isLoggedInVideoCheck (autoStartVideo): autoStartVideo; if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false; containerEl = jQuery (document.getElementById (configObj.markupIsholash.Video); CNN. (containerEl);} еще {CNN.autoPlayVideoExist = true;}}} configObj.autostart = CNN.Features.enableAutoplayBlock? false: autoStartVideo; CNN.VideoPlayer.setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection; функция findNextVideo (currentVideoId) {var i, vidObj; if (currentVideoId && jQuery.isArray (currentVideoCollection) && currentVideoCollection.length> 0) {for (i = 0; i 0) {videoEndSlateImpl.showEndSlatenedForContainer (mobile) mobilePinnedView.disable ();}}}} callbackObj = {onPlayerReady: функция (containerId) {var playerInstance, containerClassId = '#' + containerId; CNN.VideoPlayer.handleInitialExpandableVideoState (containerId); CNN.VideoPlayerChangePlayer. pageVis.isDocumentVisible ()); if (CNN.Features.enableMobileWebFloatingPlayer && Modernizr && (Modernizr.phone || Modernizr.mobile || Modernizr.tablet) && CNN.VideoPlayer.getLibraryName (containerId) === 'fave' && jQuery (containerClassId) .parents ('. js-pg-rail-tall__head'). length> 0 && CNN.contentModel.pageType === 'article') {playerInstance = FAVE.player.getInstance (containerId); mobilePinnedView = новый CNN.MobilePinnedView ({element: jQuery (containerClassId), enabled: false, transition: CNN.MobileWebFloatingPlayer.transition, onPin: function () {playerInstance.hideUI ();}, onUnpin: function () {playerInstance.showUI ( );}, onPlayerClick: function () {if (mobilePinnedView) {playerInstance.enterFullscreen (); playerInstance.showUI ();}}, onDismiss: function () {CNN.Videx.mobile.pinnedPlayer.disable (); playerInstance. pause ();}}); / * Сохранение закрепленного представления на CNN.Videx.mobile.pinnedPlayer Чтобы все игроки могли видеть одного закрепленного игрока * / CNN.Videx = CNN.Videx || {}; CNN.Videx.mobile = CNN.Videx.mobile || {}; CNN.Videx.mobile.pinnedPlayer = mobilePinnedView;} if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (jQuery (containerClassId) .parents ('. Js-pg-rail -tall__head '). length) {videoPinner = new CNN.VideoPinner (containerClassId); videoPinner.init ();} else {CNN.VideoPlayer.hideThumbnail (containerId);}}}, onContentEntryLoad: function (containerId, playerId, contentid, isQueue) {CNN.VideoPlayer.showSpinner (containerId);}, onContentPause: function (containerId, playerId, videoId, paused) {if (mobilePinnedView) {CNN.VideoPlayer.handleMobilePinnedPlayerStates (containerId, pausedContent);}} containerId, playerId, metadata, contentId, duration, width, height) {var endSlateLen = jQuery (document.getElementById (containerId)). parent (). find ('. js-video__end-slate'). eq (0) .length ; CNN.VideoSourceUtils.updateSource (containerId, metadata); if (endSlateLen> 0) {videoEndSlateImpl.fetchAndShowRecommendedVideos (metadata);}}, onAdPlay: function (containerId, cvpId, t oken, mode, id, duration, blockId, adType) {/ * Отклонение pinnedPlayer, если другой видеоплеер воспроизводит Ad * / CNN.VideoPlayer.dismissMobilePinnedPlayer (containerId); clearTimeout (moveToNextTimeout); CNN.VideoPlayer.IdideoPlayer.hideSpinner; (container.hideSpinner); if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (true); videoPinner.animateDown () ;}}}, onAdPause: function (containerId, playerId, token, mode, id, duration, blockId, adType, instance, isAdPause) {if (mobilePinnedView) {CNN.VideoPlayer.handleMobilePinnedPlayerStates (containerId, isAdPause);}}, onTrackingFullFull : function (containerId, PlayerId, dataObj) {CNN.VideoPlayer.handleFullscreenChange (containerId, dataObj); if (mobilePinnedView && typeof dataObj === 'object' && FAVE.Utils.os === 'iOS' &&! dataObj.fullscreen) { jQuery (документ) .scrollTop (mobilePinnedView.getScrollPosition ()); playerInstance.hideUI ();}}, onContentPlay: function (co ntainerId, cvpId, event) {var playerInstance, prevVideoId; if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout ('restoreEpicAds');} clearTimeout (moveToNextNimeToNext) .VideoPlayer.hideSpinner (containerId); if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying ( true); videoPinner.animateDown ();}}}, onContentReplayRequest: function (containerId, cvpId, contentId) {if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! = = 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (true); var $ endSlate = jQuery (document.getElementById (containerId)). parent (). find ('. js-video__end-slate'). eq (0); if ($ endSlate.length> 0) {$ endSlate.removeClass ('video__end-slate — active'). AddClass ('video__end-slate — inactive');}}}}, onContentBegin: function ( containerId, cvpId, contentId) {if (mo bilePinnedView) {mobilePinnedView.enable ();} / * Отклонение pinnedPlayer, если другой видеопроигрыватель воспроизводит видео. * / CNN.VideoPlayer.dismissMobilePinnedPlayer (containerId); CNN.VideoPlayer.mutePlayer (containerId); if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout ('removeCompanionLayout (') ;} CNN.VideoPlayer.hideSpinner (containerId); clearTimeout (moveToNextTimeout); CNN.VideoSourceUtils.clearSource (containerId); jQuery (документ) .triggerVideoContentStarted ();}, onContentComplete: function (containerId, cIvdId, content .companion && typeof CNN.companion.updateCompanionLayout === 'функция') {CNN.companion.updateCompanionLayout ('restoreFreewheel');} navigateToNextVideo (contentId, containerId);}, onContentEnd: function (containerId, cIvpId, cIvpId, if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (false);}}}, onCVPVisibilityChange: функция (containerId, cvpId, visible) {CNN.VideoPlayer.handleAdOnCVPVisibilityChange (containerId, visible);}}; if (typeof configObj.context! == 'string' || configObj.context.length 0) {configObj.adsection = window.ssid;} CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true)? true: false; CNN.VideoPlayer.getLibrary (configObj, callbackObj, isLivePlayer);}); CNN.INJECTOR.scriptComplete ('videodemanddust');