GCKMediaQueueसूची आइटम की श्रेणी

GCKMediaQueueItem क्लास का रेफ़रंस

खास जानकारी

यह क्लास, मीडिया क्यू आइटम को दिखाती है.

इस ऑब्जेक्ट के इंस्टेंस में बदलाव नहीं किया जा सकता.

इस क्लास का इस्तेमाल, भेजने वाले ऐप्लिकेशन और पाने वाले ऐप्लिकेशन के बीच दोनों तरफ़ से बातचीत करने के लिए किया जाता है. भेजने वाला व्यक्ति, इन मैसेज को इसलिए बनाता है, ताकि पाने वाले व्यक्ति के ऐप्लिकेशन पर मीडिया आइटम की सूची लोड की जा सके या डाली जा सके. GCKMediaStatus में, इस क्लास के इंस्टेंस के तौर पर दिखाए गए आइटम की सूची भी शामिल होती है.

लोड होने के बाद, पैसे पाने वाला व्यक्ति हर GCKMediaQueueItem को एक यूनीक आइटम आईडी असाइन करेगा. भले ही, एक ही मीडिया को कई बार लोड किया गया हो.

यह NSObject से इनहेरिट करता है. यह <NSCopying> को लागू करता है.

इंस्टेंस के तरीके की खास जानकारी

(instancetype) - initWithMediaInformation:autoplay:startTime:preloadTime:activeTrackIDs:customData:
 यह दिए गए एट्रिब्यूट के साथ एक नया GCKMediaQueueItem बनाता है. ज़्यादा...
 
(instancetype) - initWithMediaInformation:autoplay:startTime:playbackDuration:preloadTime:activeTrackIDs:customData:
 डेज़िग्नेटेड इनिशियलाइज़र. ज़्यादा...
 
(void) - clearItemID
 यह आइटम आईडी को मिटाता है (अनअसाइन करता है). ज़्यादा...
 
(instancetype) - mediaQueueItemModifiedWithBlock:
 यह फ़ंक्शन, इस GCKMediaQueueItem की एक ऐसी कॉपी दिखाता है जिसमें दिए गए ब्लॉक के हिसाब से बदलाव किया गया है. ज़्यादा...
 

प्रॉपर्टी की खास जानकारी

GCKMediaInformationmediaInformation
 इस आइटम से जुड़ी मीडिया जानकारी. ज़्यादा...
 
NSUInteger itemID
 आइटम आईडी या kGCKMediaQueueInvalidItemID, अगर इसे अभी तक असाइन नहीं किया गया है. ज़्यादा...
 
BOOL autoplay
 क्या आइटम को अपने-आप चलना शुरू हो जाना चाहिए, जब वह कतार में मौजूद मौजूदा आइटम बन जाता है. ज़्यादा...
 
NSTimeInterval startTime
 आइटम के शुरू होने का समय, सेकंड में. ज़्यादा...
 
NSTimeInterval playbackDuration
 आइटम को चलाने की अवधि, सेकंड में. अगर स्ट्रीम की असल अवधि का इस्तेमाल करना है, तो INFINITY का इस्तेमाल करें. ज़्यादा...
 
NSTimeInterval preloadTime
 पिछले आइटम के खत्म होने से कितने सेकंड पहले, रिसीवर को इस आइटम को प्रीलोड करना शुरू करना चाहिए. ज़्यादा...
 
NSArray< NSNumber * > * activeTrackIDs
 इस आइटम के लिए, चालू ट्रैक आईडी. ज़्यादा...
 
id customData
 इस आइटम से जुड़ा कस्टम डेटा, अगर कोई है. ज़्यादा...
 

तरीके की जानकारी

- (instancetype) initWithMediaInformation: (GCKMediaInformation *)  mediaInformation
autoplay: (BOOL)  autoplay
startTime: (NSTimeInterval)  startTime
preloadTime: (NSTimeInterval)  preloadTime
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs
customData: (id __nullable)  customData 

यह दिए गए एट्रिब्यूट के साथ एक नया GCKMediaQueueItem बनाता है.

ज़्यादा जानकारी के लिए, इससे जुड़ी प्रॉपर्टी का दस्तावेज़ देखें.

Parameters
mediaInformationThe media information for the item.
autoplayThe autoplay state for this item.
startTimeThe start time of the item, in seconds. May be kGCKInvalidTimeInterval if this item refers to a live stream or if the default start time should be used.
preloadTimeThe preload time for the item, in seconds. May be kGCKInvalidTimeInterval to indicate no preload time.
activeTrackIDsThe active track IDs for the item. May be nil.
customDataAny custom data to associate with the item. May be nil.
- (instancetype) initWithMediaInformation: (GCKMediaInformation *)  mediaInformation
autoplay: (BOOL)  autoplay
startTime: (NSTimeInterval)  startTime
playbackDuration: (NSTimeInterval)  playbackDuration
preloadTime: (NSTimeInterval)  preloadTime
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs
customData: (id __nullable)  customData 

डेज़िग्नेटेड इनिशियलाइज़र.

यह दिए गए एट्रिब्यूट के साथ एक नया GCKMediaQueueItem बनाता है. ज़्यादा जानकारी के लिए, इससे जुड़ी प्रॉपर्टी का दस्तावेज़ देखें.

Parameters
mediaInformationThe media information for the item.
autoplayThe autoplay state for this item.
startTimeThe start time of the item, in seconds. May be kGCKInvalidTimeInterval if this item refers to a live stream or if the default start time should be used.
playbackDurationThe playback duration of the item, in seconds. May be kGCKInvalidTimeInterval to indicate no preload time.
preloadTimeThe preload time for the item, in seconds.
activeTrackIDsThe active track IDs for the item. May be nil.
customDataAny custom data to associate with the item. May be nil.
- (void) clearItemID

यह आइटम आईडी को मिटाता है (अनअसाइन करता है).

मौजूदा इंस्टेंस का फिर से इस्तेमाल करने के लिए, इस फ़ंक्शन को कॉल किया जाना चाहिए. उदाहरण के लिए, इसे वापस किसी कतार में जोड़ने के लिए.

- (instancetype) mediaQueueItemModifiedWithBlock: (void(^)(GCKMediaQueueItemBuilder *builder))  block

यह फ़ंक्शन, इस GCKMediaQueueItem की एक ऐसी कॉपी दिखाता है जिसमें दिए गए ब्लॉक के हिसाब से बदलाव किया गया है.

Parameters
blockA block that receives a GCKMediaQueueItemBuilder which can be used to modify attributes of the copy. It is not necessary to call the builder's build (GCKMediaQueueItemBuilder) method within the block, as this method will do that automatically when the block completes.
रिटर्न
इस आइटम की बदली गई कॉपी.

प्रॉपर्टी की जानकारी

- (GCKMediaInformation*) mediaInformation
readnonatomicstrong

इस आइटम से जुड़ी मीडिया जानकारी.

- (NSUInteger) itemID
readnonatomicassign

आइटम आईडी या kGCKMediaQueueInvalidItemID, अगर इसे अभी तक असाइन नहीं किया गया है.

- (BOOL) autoplay
readnonatomicassign

क्या आइटम को अपने-आप चलना शुरू हो जाना चाहिए, जब वह कतार में मौजूद मौजूदा आइटम बन जाता है.

अगर NO, तो इस आइटम पर पहुँचने के बाद कतार रुक जाएगी. डिफ़ॉल्ट वैल्यू YES है.

- (NSTimeInterval) startTime
readnonatomicassign

आइटम के शुरू होने का समय, सेकंड में.

डिफ़ॉल्ट वैल्यू kGCKInvalidTimeInterval है. इसका मतलब है कि शुरुआत का समय सेट नहीं किया गया है.

- (NSTimeInterval) playbackDuration
readnonatomicassign

आइटम को चलाने की अवधि, सेकंड में. अगर स्ट्रीम की असल अवधि का इस्तेमाल करना है, तो INFINITY का इस्तेमाल करें.

- (NSTimeInterval) preloadTime
readnonatomicassign

पिछले आइटम के खत्म होने से कितने सेकंड पहले, रिसीवर को इस आइटम को प्रीलोड करना शुरू करना चाहिए.

डिफ़ॉल्ट वैल्यू kGCKInvalidTimeInterval है. इसका मतलब है कि प्रीलोड का समय सेट नहीं किया गया है.

- (NSArray<NSNumber *>*) activeTrackIDs
readnonatomicstrong

इस आइटम के लिए, चालू ट्रैक आईडी.

- (id) customData
readnonatomicstrong

इस आइटम से जुड़ा कस्टम डेटा, अगर कोई है.