Chrome 53 및 iOS 10부터 Android와 iPhone은 인라인 동영상 재생과
음소거 상태로 자동재생됩니다. 이 가이드에서는
간단한 샘플
필요합니다.
건너뛸 수 있는 광고를 사용하려면 동영상 플레이어가 (전체 화면이 아닌) 콘텐츠를 인라인으로 재생해야 합니다.
iPhone에서
맞춤 재생을 사용 중지했다는 사실을 알 수 있습니다 맞춤 재생이 항상 사용 중지됨
를 참조하세요. 간단한 샘플의 HTML과 자바스크립트를 다음과 같이 수정합니다.
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true);
adDisplayContainer =
new google.ima.AdDisplayContainer(containerElement, contentVideoElement);
adsLoader = new google.ima.AdsLoader(adDisplayContainer);
HTML을 변경하면 콘텐츠가 다음 기기에서 인라인 동영상 플레이어에서 재생됩니다.
iPhone의 기본 전체화면 플레이어가 아닌 iPhone에서 음소거 상태로 시작합니다.
JavaScript 변경으로 인해 IMA SDK는 자체 동영상 플레이어를 사용하여 광고를 재생하지만,
재사용하는 것이 좋습니다.
[null,null,["최종 업데이트: 2024-10-15(UTC)"],[[["Starting with Chrome 53 and iOS 10, inline video playback and muted autoplay are supported on Android and iPhone."],["This guide provides modifications for the simple sample to enable this functionality, requiring inline video player use for skippable ads and disabling custom playback on iPhones."],["Updates include adding `playsinline` attribute to the video element in HTML and calling `google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true)` in JavaScript."],["These changes ensure content plays inline on iPhone, preventing default fullscreen and utilizing IMA SDK's video player for ad playback instead of the content player."],["Note that fullscreen implementations relying on `videoPlayer.requestFullscreen()` will break with this change as fullscreen with skippable ads on iPhone is currently unsupported by IMA SDK."]]],[]]