Untuk mendiskusikan dan memberikan masukan tentang produk kami, bergabunglah ke channel Discord Ad Manager resmi di server Komunitas Iklan dan Pengukuran Google.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
IMA SDK untuk tvOS memungkinkan pengaturan konteks pemutaran berkelanjutan untuk
permintaan iklan. Tujuan
continuousPlayback
akan memberi tahu SDK apakah pemutar bermaksud untuk terus memutar video konten
satu per satu, mirip dengan siaran TV. Jika ditetapkan ke true, iklan yang ditampilkan dari
permintaan ditetapkan oleh server iklan sebagai cocok untuk pemutaran berkelanjutan. Bukan
yang menentukan nilai untuk
properti ini
membiarkan setelan sebagai tidak diketahui.
Contoh berikut menunjukkan cara menetapkan pemutaran berkelanjutan dalam permintaan iklan.
Perbedaan pemutaran berkelanjutan dengan pemutaran otomatis iklan
IMA SDK untuk tvOS juga memungkinkan setelan apakah pemutar akan mulai diputar atau tidak
secara otomatis atau menunggu
tindakan pengguna untuk mulai diputar. Hal ini dilakukan dengan menggunakan
adWillAutoPlay
saat ini. Jika ditetapkan ke true, iklan yang ditampilkan adalah iklan yang ditetapkan oleh iklan
server yang cocok untuk lingkungan putar otomatis.
Tabel ini menjelaskan kapan harus meminta iklan untuk pemutaran berkelanjutan dan pemutaran otomatis, berdasarkan konten video
dipasangkan dengan iklan.
Konten Video
Nilai untuk continuousPlayback
Nilai untuk adwillAutoPlay
Satu video konten yang diputar setelah interaksi pengguna
false
false
Satu video konten yang diputar otomatis
false
true
Playlist video yang memutar video pertama setelah interaksi pengguna tetapi otomatis memutar
video berikut
true
false
Playlist video yang memutar video pertama secara otomatis dan memutar video berikutnya secara otomatis
[null,null,["Terakhir diperbarui pada 2025-08-01 UTC."],[[["\u003cp\u003eThe IMA SDK for tvOS allows you to set the \u003ccode\u003econtinuousPlayback\u003c/code\u003e property on ad requests to indicate if content videos will play continuously, influencing the types of ads returned.\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, similar to a TV broadcast, and retrieves ads designated for continuous play.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadWillAutoPlay\u003c/code\u003e property determines whether ads will start playing automatically or require user interaction to begin.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided table to align \u003ccode\u003econtinuousPlayback\u003c/code\u003e and \u003ccode\u003eadWillAutoPlay\u003c/code\u003e settings with your specific video content behavior, such as single videos or playlists with autoplay functionality.\u003c/p\u003e\n"]]],[],null,["# Report continuous play\n\nThe IMA SDK for tvOS allows for setting the continuous play context for an ads request. The `\n`[continuousPlayback](/interactive-media-ads/docs/sdks/tvos/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 tvOS 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/tvos/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` |"]]