GCKMediaQueueLoadOptions 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用 GCKRemoteMediaClient 加载媒体队列项的选项。
- 开始时间
- 4.3
继承 NSObject、<NSCopy> 和 <NSSecureCoding>。
- (NSUInteger) startIndex |
|
readwritenonatomicassign |
- (NSTimeInterval) playPosition |
|
readwritenonatomicassign |
队列项目数组中第一个项目首次播放时的初始播放位置(相对于流的开头)。
当再次播放同一项时(例如,当队列重复播放或稍后将该项跳到时),系统会忽略此值。在这种情况下,将使用相应项的 startTime。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eGCKMediaQueueLoadOptions\u003c/code\u003e provides options for loading media queue items using \u003ccode\u003eGCKRemoteMediaClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt allows you to specify the starting index, initial playback position, and repeat mode for the media queue.\u003c/p\u003e\n"],["\u003cp\u003eYou can also include custom application-specific data with the request.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eNSObject\u003c/code\u003e, \u003ccode\u003eNSCopying\u003c/code\u003e, and \u003ccode\u003eNSSecureCoding\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAn initialized \u003ccode\u003eGCKMediaQueueLoadOptions\u003c/code\u003e object contains default values for all its properties.\u003c/p\u003e\n"]]],[],null,["# GCKMediaQueueLoadOptions Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKMediaQueueLoadOptions Class Reference \n\nOverview\n--------\n\nOptions for loading media queue items with [GCKRemoteMediaClient](/cast/docs/reference/ios/interface_g_c_k_remote_media_client \"A class for controlling media playback on a Cast receiver. \").\n\nSince\n: 4.3\n\nInherits NSObject, \\\u003cNSCopying\\\u003e, and \\\u003cNSSecureCoding\\\u003e.\n\n|----------------|---------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - [init](/cast/docs/reference/ios/interface_g_c_k_media_queue_load_options#a5d77d969b4d06bfed6846e15053c531c) |\n| | Designated initializer. [More...](#a5d77d969b4d06bfed6846e15053c531c) |\n| ||\n\n|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSUInteger | [startIndex](/cast/docs/reference/ios/interface_g_c_k_media_queue_load_options#a5eb6ef7f3d3af41dea5870ce4a1e3ad4) |\n| | The index of the item in the queue items array that should be played first. [More...](#a5eb6ef7f3d3af41dea5870ce4a1e3ad4) |\n| ||\n| NSTimeInterval | [playPosition](/cast/docs/reference/ios/interface_g_c_k_media_queue_load_options#a0ceb653bbd2d8ad8586b23d7ab7ed383) |\n| | The initial playback position for the first item in the queue items array when it is first played, relative to the beginning of the stream. [More...](#a0ceb653bbd2d8ad8586b23d7ab7ed383) |\n| ||\n| [GCKMediaRepeatMode](/cast/docs/reference/ios/g_c_k_media_common_8h#aad72b610da8ac7e1785975bd5f251406) | [repeatMode](/cast/docs/reference/ios/interface_g_c_k_media_queue_load_options#aee30969b09b5d08bbd882c55163c43a1) |\n| | The repeat mode for playing the queue. [More...](#aee30969b09b5d08bbd882c55163c43a1) |\n| ||\n| id | [customData](/cast/docs/reference/ios/interface_g_c_k_media_queue_load_options#a082d80574820ded01cd226feca05cef8) |\n| | Custom application-specific data to pass along with the request. [More...](#a082d80574820ded01cd226feca05cef8) |\n| ||\n\nMethod Detail\n-------------\n\n|-----------------------|---|---|---|\n| - (instancetype) init | | | |\n\nDesignated initializer.\n\nInitializes a [GCKMediaLoadOptions](/cast/docs/reference/ios/interface_g_c_k_media_load_options \"Options for loading media with GCKRemoteMediaClient. \") with default values for all properties.\n\nProperty Detail\n---------------\n\n|-------------------------------------------------------------|--------------------------|\n| |---------------------------| | - (NSUInteger) startIndex | | readwritenonatomicassign |\n\nThe index of the item in the queue items array that should be played first. \n\n|-------------------------------------------------------------------------|--------------------------|\n| |---------------------------------| | - (NSTimeInterval) playPosition | | readwritenonatomicassign |\n\nThe initial playback position for the first item in the queue items array when it is first played, relative to the beginning of the stream.\n\nThis value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. \n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------|\n| |-----------------------------------------------------------------------------------------------------------------------| | - ([GCKMediaRepeatMode](/cast/docs/reference/ios/g_c_k_media_common_8h#aad72b610da8ac7e1785975bd5f251406)) repeatMode | | readwritenonatomicassign |\n\nThe repeat mode for playing the queue. \n\n|---------------------------------------------|--------------------------|\n| |-------------------| | - (id) customData | | readwritenonatomicstrong |\n\nCustom application-specific data to pass along with the request.\n\nMust either be an object that can be serialized to JSON using [**NSJSONSerialization**](https://goo.gl/0vd4Q2), or `nil`."]]