P.when('A', 'Airy', 'ready').execute(function(A, Airy) { setTimeout(setupAiry(A,Airy), 3000); function setupAiry(A, Airy) { var airyAssetConfig = {}; airyAssetConfig["parentId"] = "1b629bbe-a7ac-4d6a-b84d-05fd79359e4b"; airyAssetConfig["desiredMode"] = "html"; airyAssetConfig["swfUrl"] = "https://m.media-amazon.com/images/G/01/vap/video/airy2/prod/2.0.1460.0/flash/AiryBasicRenderer._CB485925577_.swf" airyAssetConfig["htmlVideoAttributes"] = { "preload": "none", }; if("Install Flash Player".length > 0) { airyAssetConfig["installFlashButtonText"] = "Install Flash Player"; } if("Adobe Flash Player is required to watch this video.".length > 0) { airyAssetConfig["installFlashPrompt"] = "Adobe Flash Player is required to watch this video."; } if("Sorry, an error has occurred while attempting video playback. Please try again later.".length > 0) { airyAssetConfig["playbackErrorPrompt"] = "Sorry, an error has occurred while attempting video playback. Please try again later."; } if("Sorry, this video is unsupported on this browser.".length > 0) { airyAssetConfig["videoUnsupportedPrompt"] = "Sorry, this video is unsupported on this browser."; } var requestId, sessionId, marketplaceId, contentId; requestId = "GMC5VVK2AGW137D46QB9"; sessionId = "138-2385451-8948325"; marketplaceId = "ATVPDKIKX0DER"; contentId = " "; airyAssetConfig["contentId"] = contentId; if(false){ airyAssetConfig["ignoreBundledSkin"] = true; } airyAssetConfig["mediaSourceInfo"] = [ "https://m.media-amazon.com/images/S/aplus-media/sota/327834a0-a20d-4f8d-bdf1-070b3174e8eb.mp4", ]; if("https://m.media-amazon.com/images/S/aplus-media/sota/4de65c51-b9e6-470f-b9da-ec6e45d0f71d.__CR0,0,1464,600_PT0_SX1464_V1___.jpg".length > 0 || "https://m.media-amazon.com/images/S/aplus-media/sota/4de65c51-b9e6-470f-b9da-ec6e45d0f71d.__CR0,0,1464,600_PT0_SX1464_V1___.jpg".length > 0){ airyAssetConfig["slateImages"] = {}; } if("https://m.media-amazon.com/images/S/aplus-media/sota/4de65c51-b9e6-470f-b9da-ec6e45d0f71d.__CR0,0,1464,600_PT0_SX1464_V1___.jpg".length > 0){ airyAssetConfig["slateImages"]["preloadSlate"] = "https://m.media-amazon.com/images/S/aplus-media/sota/4de65c51-b9e6-470f-b9da-ec6e45d0f71d.__CR0,0,1464,600_PT0_SX1464_V1___.jpg"; } if("https://m.media-amazon.com/images/S/aplus-media/sota/4de65c51-b9e6-470f-b9da-ec6e45d0f71d.__CR0,0,1464,600_PT0_SX1464_V1___.jpg".length > 0){ airyAssetConfig["slateImages"]["postMediaSlate"] = "https://m.media-amazon.com/images/S/aplus-media/sota/4de65c51-b9e6-470f-b9da-ec6e45d0f71d.__CR0,0,1464,600_PT0_SX1464_V1___.jpg"; } airyAssetConfig["backgroundColor"] = "#000000"; var gifLike = (false || false || false); var videoHeight, videoWidth; airyAssetConfig["bindings"] = { canplay: function() { if(!Airy.isMobilePlatform() && gifLike){ aplusAiryInstance.audioOff(); aplusAiryInstance.play(); } }, play : function() { if (Airy.isMobilePlatform()){ aplusAiryInstance.enterFullScreen(); } }, ended: function(){ if(!Airy.isMobilePlatform() && gifLike){ aplusAiryInstance.replay(); } }, loadedmetadata: function(e, f) { videoWidth = f.videoWidth; videoHeight = f.videoHeight; } }; var metricsMethod = Airy.isMobilePlatform() ? "MobileDetailPage" : "DetailPage"; if (gifLike) { airyAssetConfig["isForesterTrackingDisabled"] = true; } airyAssetConfig["foresterMetadataParams"] = { client : "AplusEmc", method : metricsMethod, marketplaceId : marketplaceId, requestId : requestId, session : sessionId }; var aplusAiryInstance = Airy.embed(airyAssetConfig); A.on("aplus:1b629bbe-a7ac-4d6a-b84d-05fd79359e4b:play", function(){ aplusAiryInstance.play(); }); A.on("aplus:1b629bbe-a7ac-4d6a-b84d-05fd79359e4b:pause", function(){ aplusAiryInstance.pause(); }); A.on("aplus:1b629bbe-a7ac-4d6a-b84d-05fd79359e4b:loadMedia", function(media){ aplusAiryInstance.loadMedia(media); }); A.on("aplus:1b629bbe-a7ac-4d6a-b84d-05fd79359e4b:mediaMetadata", function(cb){ cb(videoWidth, videoHeight); }); } });