מחלקה GCKMediaQueueLoadOptions
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אפשרויות לטעינת פריטים ברשימת 'הבאים בתור' באמצעות GCKRemoteMediaClient.
- מאז
- 4.3
ירש את NSObject, <NS Copy> ו-<NSSecureCoding>.
- (NSUInteger) startIndex |
|
readwritenonatomicassign |
האינדקס של הפריט במערך הפריטים בתור שיש להפעיל קודם.
- (NSTimeInterval) playPosition |
|
readwritenonatomicassign |
מיקום ההפעלה הראשוני של הפריט הראשון במערך הפריטים בתור כשהוא מופעל לראשונה, ביחס להתחלת השידור.
המערכת מתעלמת מהערך הזה כשאותו פריט מופעל שוב, למשל כשחוזרים על התור או כשעוברים לפריט מאוחר יותר. במקרים כאלה, המערכת תשתמש ב-startTime של הפריט.
נתונים ספציפיים ליישום מותאמים אישית להעברה יחד עם הבקשה.
חייב להיות אובייקט שניתן לבצע בו סריאליזציה ל-JSON באמצעות NSJSONSerialization, או באמצעות nil
.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\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`."]]