iOS용 IMA SDK를 사용하면 광고 요청에 대한 연속 재생 컨텍스트를 설정할 수 있습니다. 이
continuousPlayback
속성이 플레이어가 콘텐츠 동영상을 계속 재생할 것인지 여부를 SDK에 알립니다.
연이어 반복됩니다. true로 설정하면 요청에서 반환된 광고가 광고 서버에서 연속 재생에 적합하다고 지정한 광고입니다. 비
포드의 값을 지정하는
이 숙박 시설
설정을 알 수 없는 상태로 둡니다
다음 샘플은 광고 요청에서 연속 재생을 설정하는 방법을 보여줍니다.
iOS용 IMA SDK를 사용하면 플레이어가 자동으로 재생되도록 할지 아니면 재생을 시작하기 위해 사용자 작업을 기다릴지 설정할 수도 있습니다. 이 작업은
adWillAutoPlay
속성 true로 설정하면 광고 서버에서 자동 재생 환경에 적합하다고 지정한 광고가 반환됩니다.
이 표에는 동영상 콘텐츠를 기준으로 연속 재생 및 자동재생을 위한 광고를 요청해야 하는 상황이 자세히 설명되어 있습니다.
광고가 페어링됩니다
동영상 콘텐츠
연속재생 값
adWillAutoPlay의 값
사용자 상호작용 시 재생되는 단일 콘텐츠 동영상
false
false
자동재생되는 단일 콘텐츠 동영상
false
true
사용자 상호작용 시 첫 번째 동영상을 재생하지만 다음 동영상은 자동재생하는 동영상 재생목록
[null,null,["최종 업데이트: 2025-08-01(UTC)"],[[["\u003cp\u003eThe IMA SDK for iOS allows you to specify whether your content videos will play continuously, influencing the types of ads returned by the ad server.\u003c/p\u003e\n"],["\u003cp\u003eSetting \u003ccode\u003econtinuousPlayback\u003c/code\u003e to \u003ccode\u003etrue\u003c/code\u003e signals that videos will play one after another, like a TV broadcast, and is suitable for video playlists with autoplay.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003econtinuousPlayback\u003c/code\u003e impacts ad selection, it does not affect ad playback; \u003ccode\u003eadWillAutoPlay\u003c/code\u003e controls whether ads start playing automatically.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eadWillAutoPlay\u003c/code\u003e set to \u003ccode\u003etrue\u003c/code\u003e when your single content video or video playlist starts playing automatically without user interaction.\u003c/p\u003e\n"],["\u003cp\u003eConsult the provided table to determine the appropriate settings for \u003ccode\u003econtinuousPlayback\u003c/code\u003e and \u003ccode\u003eadWillAutoPlay\u003c/code\u003e based on your specific video content behavior.\u003c/p\u003e\n"]]],[],null,["# Report continuous play\n\nThe IMA SDK for iOS allows for setting the continuous play context for an ads request. The `\n`[continuousPlayback](/interactive-media-ads/docs/sdks/ios/client-side/reference/Classes/IMAAdsRequest#continuousplayback) property 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 specifying a value for this property 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### Objective-C\n\n```objective-c\nIMAAdsRequest *request = [[IMAAdsRequest alloc]\n initWithAdTagUrl:adTagUrl\n adDisplayContainer:[self createAdDisplayContainer]\n avPlayerVideoDisplay:[[IMAAVPlayerVideoDisplay alloc] initWithAVPlayer:self.contentPlayer]\n pictureInPictureProxy:self.pictureInPictureProxy\n userContext:nil];\n request.continuousPlayback = true;\n [self.adsLoader requestAdsWithRequest:request];\n```\n\n### Swift\n\n```swift\nlet request = IMAAdsRequest(\n adTagUrl: adTagUrl,\n adDisplayContainer: createAdDisplayContainer(),\n avPlayerVideoDisplay: IMAAVPlayerVideoDisplay(avPlayer: contentPlayer),\n pictureInPictureProxy: pictureInPictureProxy,\n userContext: nil)\nrequest.continuousPlayback = true;\nadsLoader!.requestAds(with: request)\n```\n\nHow continuous play differs from ad auto-play\n---------------------------------------------\n\nThe IMA SDK for iOS 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`[adWillAutoPlay](/interactive-media-ads/docs/sdks/ios/client-side/reference/Classes/IMAAdsRequest#adwillautoplay) property. 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 | Value for continuousPlayback | Value for adWillAutoPlay |\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` |"]]