HTML5용 IMA SDK를 사용하면
합니다. 이
setContinuousPlayback()
메서드가 플레이어가 콘텐츠 동영상을 계속 재생할 것인지 여부를 SDK에 알립니다.
연이어 반복됩니다. true로 설정하면
요청은 연속재생에 적합하다고 광고 서버에서 지정한 요청이어야 합니다. 비
이 메서드를 호출할 때
설정을 알 수 없는 상태로 둡니다
다음 샘플은 광고 요청에서 연속 재생을 설정하는 방법을 보여줍니다.
HTML5용 IMA SDK에서는 플레이어의 재생 시작 여부도 설정할 수 있습니다.
사용자 액션이 재생을 시작할 때까지
기다릴 수 있습니다 이 작업은
setAdWillAutoPlay()
메서드를 사용하여 축소하도록 요청합니다. true로 설정하면 광고에서 지정한 광고가 반환됩니다.
서버를 선택해야 합니다.
이 표에는 동영상 콘텐츠를 기준으로 연속 재생 및 자동재생을 위한 광고를 요청해야 하는 상황이 자세히 설명되어 있습니다.
광고가 쌍을 이루고 있습니다.
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eThe IMA SDK for HTML5 allows publishers to set the continuous play context for ad requests, signaling whether content videos will play continuously, influencing the ads served.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetContinuousPlayback()\u003c/code\u003e method indicates if videos will autoplay sequentially, similar to a TV broadcast, while \u003ccode\u003esetAdWillAutoPlay()\u003c/code\u003e specifies if ads themselves will autoplay.\u003c/p\u003e\n"],["\u003cp\u003eThis distinction is crucial as continuous play impacts ad selection from the ad server, ensuring ads suitable for continuous content are delivered, while autoplay dictates ad playback behavior.\u003c/p\u003e\n"],["\u003cp\u003ePublishers should align these settings with their content strategy: single videos with user interaction require neither, single autoplaying videos need \u003ccode\u003esetAdWillAutoPlay(true)\u003c/code\u003e, playlists with autoplay after the first video use \u003ccode\u003esetContinuousPlayback(true)\u003c/code\u003e, and fully autoplaying playlists utilize both.\u003c/p\u003e\n"]]],[],null,["# Report continuous play\n\nThe IMA SDK for HTML5 allows for setting the continuous play context for an ads request. The `\n`[setContinuousPlayback()](/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#setContinuousPlayback) method notifies the SDK whether the player intends to continuously play the content videos one after another, similar to a TV broadcast. When set to `true`, the ads returned from the request are those designated by the ads server as suitable for continuous play. Not calling this method leaves the setting as unknown. **Note:** Changing this setting has no impact on ad playback.\nThe following sample demonstrates how to set continuous play in an ads request. \n\n```gdscript\nvar adsRequest = new google.ima.AdsRequest();\nadsRequest.adTagUrl(adTagUrl);\nadsRequest.setContinuousPlayback(true);\nadsLoader.requestAds(adsRequest);\n```\n\nHow continuous play differs from ad auto-play\n---------------------------------------------\n\nThe IMA SDK for HTML5 also allows for setting whether the player will start playing automatically or wait for user action to begin playing. This is done using the `\n`[setAdWillAutoPlay()](/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#setAdWillAutoPlay) method. When set to `true`, the ads returned are those designated by the ads server as suitable for an auto-play environment.\n\n\nThis table details when to request ads for continuous play and auto-play, based on the video content\nthe ads are paired with.\n\n| Video Content | Parameter for setContinuousPlayback() | Parameter for setAdWillAutoPlay() |\n|------------------------------------------------------------------------------------------------------|---------------------------------------|-----------------------------------|\n| A single content video that plays upon user interaction | `false` | `false` |\n| A single content video that autoplays | `false` | `true` |\n| A video playlist that plays the first video upon user interaction but autoplays the following videos | `true` | `false` |\n| A video playlist that autoplays the first video and autoplays the following videos | `true` | `true` |"]]