'); $ vidEndSlate.removeClass (' video__end-slate — inactive '). AddClass (' video__end-slate — active ');}}; CNN.autoPlayVideoExist = ( CNN.autoPlayVideoExist === правда)? true: false; var configObj = {thumb: 'none', видео: 'business / 2018/09/26 / первые впечатления от яблок iphone-xs-and-xs-max-orig.cnn-business', ширина: '100%', высота: '100%', раздел: 'международный', профиль: 'расширение', сеть: 'cnn', markupId: 'large-media_0', adsection: 'edition.cnnbusiness_technology_innovate_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 / плотины / активы / 180926121224-новый iphone-средний плюс-169.jpg " "высота": 173}, "малая": { "ширина": 460, "Тип":" JPG », "URI": "// cdn.cnn.com/cnnnext/dam/assets/180926121224-new-iphone-large-169.jpg","height":259},"medium":{"width": 780, "Тип": "JPG", "URI": "// cdn.cnn.com/cnnnext/dam/assets/180926121224-new-iphone-exlarge-169.jpg","height":438}," большой ": {" ширина ": 1100," Тип ":" JPG " "URI":" // cdn.cnn.com/cnnnext/dam/assets/180926121224-new-iphone-super-169.j пг " "высота": 619}, "full16x9": { "ширина": 1600, "тип": "JPG", "URI":" // cdn.cnn.com/cnnnext/dam/assets/180926121224- нового iphone набитый-169.jpg " "высота": 900}, "mini1x1": { "ширина": 120, "Тип": "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, videoEndSlateIEx видео = () = videoVart.VideoTimeTist). () if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false; containerEl = jQuery (document.getElementById (configObj.markupId)); CNN.VideoPlayer.showFlashSlate (containerEl);} еще {CNE. autoPlayVideoExist = true;}}} configObj.autostart = CNN.Features.enableAutoplayBlock? ложь: autoStartVideo; CNN.VideoPlayer.setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId); videoEndSlateImpl = новый CNN.VideoEndSlate ( 'большой media_0'); function findNextVideo (currentVideoId) {var i, vidObj; if (currentVideoId && jQuery.isArray (currentVideoCollection) && currentVideoCollection.length> 0) {для (i = 0; i 0) {videoEndSlateImpl.showEndSlateForContainer ()) (;) mobilePinnedView.disable ();}}}} callbackObj = {onPlayerReady: function (containerId) {var playerInstance, containerClassId = '#' + containerId; CNN.VideoPlayer.handleInitialExpandableVideoState (containerId); CNN.VideoPlayibilityCG 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), включен: false, переход: 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 = новый CNN.VideoPinner (containerClassId); videoPinner.init ();} else {CNN.VideoPlayer.hideThumbnail (containerId);}}}, onContentEntryLoad: функция (containerId, playerId, contentid, isQueue) {CNN.VideoPlayer.showSpinner (containerId);}, onContentPause: function (containerId, playerId, videoId, paused) {if (mobilePinnedView) {CNN.VideoPlayer.handleMobilePinnedPlayerStates (containerId, paused functionMeta onTent) (} one function)}}}} containerId, playerId, метаданные, contentId, длительность, ширина, высота) {var endSlateLen = jQuery (document.getElementById (containerId)). parent (). find ('. js-video__end-slate'). eq (0) .length ; CNN.VideoSourceUtils.updateSource (containerId, метаданные); if (endSlateLen> 0) {videoEndSlateImpl.fetchAndShowRecommendedVideos (metadata);}}, onAdPlay: function (containerId, cvpId, t oken, mode, id, duration, blockId, adType) {/ * Отклонение pinnedPlayer, если другое видео проигрыватель воспроизводит объявление * / CNN.VideoPlayer.dismissMobilePinnedPlayer (containerId); clearTimeout (moveToNextTimeout); CNN.VideoPlayer.hideSpin; if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (true); videoPinner.animateDown () ;}}}, onAdPause: функция (containerId, playerId, токен, режим, идентификатор, продолжительность, blockId, adType, instance, isAdPause) {if (mobilePinnedView) {CNN.VideoPlayer.handleMobilePinnedPlayerStates (containerId, isAdPause);}}, onTrackingFull : 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') CNN); .VideoPlayer.hideSpinner (containerId); if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (video 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.updateCompanELayPayer () , .companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout ('restoreFreewheel');} navigateToNextVideo (contentId, containerId);}, onContentEnd: function (containerId {content ,d), cv (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (false);}}}, onCVPVisibilityChange: function (containerId, cvpId, visible) {CNN.VideoPlayer.handleAdOnCVPVisibilityChange (containerId, видимый);}}; 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');