GCKMediaControlChannel क्लास

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

खास जानकारी

मीडिया कंट्रोल से जुड़ी कार्रवाइयों के लिए, GCKCastChannel सबक्लास.

किसी स्ट्रीम के चालू होने पर, उस पर लागू होने वाली कार्रवाइयों (जैसे, चलाना, रोकना, ढूंढना, बंद करना वगैरह) के लिए, मीडिया की मान्य स्थिति (यानी कि शून्य नहीं) की ज़रूरत होती है. ऐसा न होने पर, वे kGCKInvalidRequestID दिखाएंगे और अनुरोध नहीं भेजेंगे. चैनल कनेक्ट होने पर, मीडिया की स्थिति का अनुरोध अपने-आप हो जाता है. यह अनुरोध, लोड होने की प्रोसेस पूरी होने के बाद मिलने वाले जवाब में शामिल होता है. साथ ही, इसे कभी भी अपडेट किया जा सकता है. मीडिया का स्टेटस कभी भी शून्य हो सकता है. ऐसा तब होता है, जब चैनल को कुछ समय के लिए डिसकनेक्ट कर दिया जाता है. इस चैनल का इस्तेमाल करते समय, मीडिया की स्थिति में होने वाले बदलावों को mediaControlChannelDidUpdateStatus: (GCKMediaControlChannelDelegate-p) कॉलबैक के ज़रिए मॉनिटर किया जाना चाहिए. साथ ही, स्ट्रीम पर काम करने वाले तरीकों को सिर्फ़ तब कॉल किया जाना चाहिए, जब मीडिया की स्थिति non-nil हो.

अगर अनुरोध को सफलतापूर्वक शुरू किया जाता है, तो उससे जुड़ा तरीका, अनुरोध को असाइन किया गया अनुरोध आईडी दिखाता है. अगर अनुरोध शुरू नहीं हो पाता है, तो यह तरीका kGCKInvalidRequestID दिखाता है. साथ ही, lastError प्रॉपर्टी को सेट करके, अनुरोध शुरू न होने की वजह बताता है. अगर कोई अनुरोध शुरू हो जाता है, लेकिन पूरा नहीं होता है, तो mediaControlChannel:requestDidFailWithID:error: (GCKMediaControlChannelDelegate-p) कॉलबैक को कॉल किया जाएगा. इससे अनुरोध पूरा न होने की जानकारी मिलेगी.

डेलिगेट प्रोटोकॉल के लिए, GCKMediaControlChannelDelegate देखें.

Deprecated:
मीडिया प्लेबैक को कंट्रोल करने के लिए, GCKCastSession की GCKRemoteMediaClient प्रॉपर्टी का इस्तेमाल करें.

GCKCastChannel को इनहेरिट करता है.

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

(instancetype) - init
 डेज़िग्नेटेड इनिशियलाइज़र. ज़्यादा...
 
(NSInteger) - loadMedia:
 यह फ़ंक्शन, नए मीडिया आइटम को लोड करता है और उसे चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - loadMedia:autoplay:
 यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - loadMedia:autoplay:playPosition:
 यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - loadMedia:autoplay:playPosition:customData:
 यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - loadMedia:autoplay:playPosition:activeTrackIDs:
 यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - loadMedia:autoplay:playPosition:activeTrackIDs:customData:
 यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - setActiveTrackIDs:
 इस कुकी का इस्तेमाल, चालू ट्रैक सेट करने के लिए किया जाता है. ज़्यादा...
 
(NSInteger) - setTextTrackStyle:
 इस विकल्प से, टेक्स्ट ट्रैक की स्टाइल सेट की जाती है. ज़्यादा...
 
(NSInteger) - pause
 इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है. ज़्यादा...
 
(NSInteger) - pauseWithCustomData:
 इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है. ज़्यादा...
 
(NSInteger) - stop
 मौजूदा मीडिया आइटम का प्लेबैक बंद करता है. ज़्यादा...
 
(NSInteger) - stopWithCustomData:
 मौजूदा मीडिया आइटम का प्लेबैक बंद करता है. ज़्यादा...
 
(NSInteger) - play
 इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है. ज़्यादा...
 
(NSInteger) - playWithCustomData:
 इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है. ज़्यादा...
 
(NSInteger) - seekToTimeInterval:
 मौजूदा मीडिया आइटम में नई जगह पर जाता है. ज़्यादा...
 
(NSInteger) - seekToTimeInterval:resumeState:
 मौजूदा मीडिया आइटम में नई जगह पर जाता है. ज़्यादा...
 
(NSInteger) - seekToTimeInterval:resumeState:customData:
 मौजूदा मीडिया आइटम में नई जगह पर जाता है. ज़्यादा...
 
(NSInteger) - queueLoadItems:startIndex:repeatMode:
 मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - queueLoadItems:startIndex:repeatMode:customData:
 मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - queueLoadItems:startIndex:playPosition:repeatMode:customData:
 मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है. ज़्यादा...
 
(NSInteger) - queueInsertItems:beforeItemWithID:
 यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है. ज़्यादा...
 
(NSInteger) - queueInsertItems:beforeItemWithID:customData:
 यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है. ज़्यादा...
 
(NSInteger) - queueInsertItem:beforeItemWithID:
 यह एक ऐसा तरीका है जिससे सूची में सिर्फ़ एक आइटम डाला जा सकता है. ज़्यादा...
 
(NSInteger) - queueInsertAndPlayItem:beforeItemWithID:
 यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है. ज़्यादा...
 
(NSInteger) - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData:
 यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है. ज़्यादा...
 
(NSInteger) - queueUpdateItems:
 यह कुकी, कतार को अपडेट करती है. ज़्यादा...
 
(NSInteger) - queueUpdateItems:customData:
 यह कुकी, कतार को अपडेट करती है. ज़्यादा...
 
(NSInteger) - queueRemoveItemsWithIDs:
 यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है. ज़्यादा...
 
(NSInteger) - queueRemoveItemsWithIDs:customData:
 यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है. ज़्यादा...
 
(NSInteger) - queueRemoveItemWithID:
 यह एक ऐसा तरीका है जिससे सूची से एक आइटम हटाया जा सकता है. ज़्यादा...
 
(NSInteger) - queueReorderItemsWithIDs:insertBeforeItemWithID:
 यह अनुरोध, मीडिया आइटम की सूची को फिर से क्रम में लगाता है. ज़्यादा...
 
(NSInteger) - queueReorderItemsWithIDs:insertBeforeItemWithID:customData:
 कतार में मौजूद मीडिया आइटम की सूची का क्रम बदलें. ज़्यादा...
 
(NSInteger) - queueMoveItemWithID:beforeItemWithID:
 यह एक आसान तरीका है, जिससे सूची में मौजूद किसी आइटम को दूसरी जगह ले जाया जा सकता है. ज़्यादा...
 
(NSInteger) - queueJumpToItemWithID:
 इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है. ज़्यादा...
 
(NSInteger) - queueJumpToItemWithID:customData:
 इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है. ज़्यादा...
 
(NSInteger) - queueJumpToItemWithID:playPosition:customData:
 इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है. ज़्यादा...
 
(NSInteger) - queueNextItem
 यह कमांड, कतार में मौजूद अगले आइटम पर ले जाती है. ज़्यादा...
 
(NSInteger) - queuePreviousItem
 इस बटन से, कतार में मौजूद पिछले आइटम पर जाया जा सकता है. ज़्यादा...
 
(NSInteger) - queueSetRepeatMode:
 यह विकल्प, कतार में मौजूद आइटम को दोहराने का मोड सेट करता है. ज़्यादा...
 
(NSInteger) - setStreamVolume:
 इससे स्ट्रीम का वॉल्यूम सेट किया जाता है. ज़्यादा...
 
(NSInteger) - setStreamVolume:customData:
 इससे स्ट्रीम का वॉल्यूम सेट किया जाता है. ज़्यादा...
 
(NSInteger) - setStreamMuted:
 इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं. ज़्यादा...
 
(NSInteger) - setStreamMuted:customData:
 इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं. ज़्यादा...
 
(NSInteger) - requestStatus
 यह कुकी, रिसीवर से मीडिया के अपडेट किए गए स्टेटस की जानकारी का अनुरोध करती है. ज़्यादा...
 
(NSTimeInterval) - approximateStreamPosition
 यह फ़ंक्शन, स्ट्रीम की अनुमानित पोज़िशन दिखाता है. इसका हिसाब, स्ट्रीम से मिली पिछली जानकारी और उस अपडेट के बाद से बीते समय के आधार पर लगाया जाता है. ज़्यादा...
 
(BOOL) - cancelRequestWithID:
 यह फ़ंक्शन, प्रोसेस किए जा रहे अनुरोध को रद्द करता है. ज़्यादा...
 
(instancetype) - initWithNamespace:
 डेज़िग्नेटेड इनिशियलाइज़र. ज़्यादा...
 
(void) - didReceiveTextMessage:
 इस चैनल पर कोई मैसेज मिलने पर इसे कॉल किया जाता है. ज़्यादा...
 
(BOOL) - sendTextMessage:
 इस चैनल पर एक मैसेज भेजता है. ज़्यादा...
 
(BOOL) - sendTextMessage:error:
 इस चैनल पर एक मैसेज भेजता है. ज़्यादा...
 
(NSInteger) - generateRequestID
 यह कुकी, नए मैसेज के लिए अनुरोध आईडी जनरेट करती है. ज़्यादा...
 
(NSNumber *__nullable) - generateRequestNumber
 यह एक आसान तरीका है, जो generateRequestID के नतीजे को NSNumber में रैप करता है. ज़्यादा...
 
(void) - didConnect
 इस चैनल के कनेक्ट होने पर कॉल किया जाता है. इससे पता चलता है कि अब इस चैनल पर, Cast डिवाइस के साथ मैसेज भेजे और पाए जा सकते हैं. ज़्यादा...
 
(void) - didDisconnect
 इस चैनल के डिसकनेक्ट होने पर कॉल किया जाता है. इससे पता चलता है कि अब इस चैनल पर, Cast डिवाइस के साथ मैसेज नहीं भेजे जा सकते. ज़्यादा...
 

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

GCKMediaStatusmediaStatus
 मौजूदा समय में लोड किए गए मीडिया का स्टेटस. अगर कोई मीडिया लोड नहीं किया गया है, तो nil. ज़्यादा...
 
NSTimeInterval timeSinceLastMediaStatusUpdate
 मीडिया के स्टेटस को आखिरी बार अपडेट किए जाने के बाद से बीता हुआ समय. ज़्यादा...
 
GCKErrorlastError
 पिछले अनुरोध में हुई गड़बड़ी की जानकारी. अगर कोई गड़बड़ी नहीं हुई थी, तो nil दिखेगा. ज़्यादा...
 
id< GCKMediaControlChannelDelegatedelegate
 चैनल की स्थिति में होने वाले बदलावों के बारे में सूचनाएं पाने के लिए डेलिगेट. ज़्यादा...
 
NSString * protocolNamespace
 चैनल का नेमस्पेस. ज़्यादा...
 
BOOL isConnected
 इस फ़्लैग से पता चलता है कि यह चैनल अभी कनेक्ट है या नहीं. ज़्यादा...
 
GCKDeviceManagerdeviceManager
 अगर इस चैनल को किसी डिवाइस मैनेजर के साथ रजिस्टर किया गया है, तो उस डिवाइस मैनेजर का नाम. ज़्यादा...
 

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

- (instancetype) init

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

GCKCastChannel को लागू करता है.

- (NSInteger) loadMedia: (GCKMediaInformation *)  mediaInfo

यह फ़ंक्शन, नए मीडिया आइटम को लोड करता है और उसे चलाना शुरू करता है.

Parameters
mediaInfoAn object describing the media item to load.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay 

यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition 

यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs 

यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
activeTrackIDsAn array of integers specifying the active tracks. May be nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs
customData: (id __nullable)  customData 

यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
activeTrackIDsAn array of integers specifying the active tracks. May be nil.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) setActiveTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs

इस कुकी का इस्तेमाल, चालू ट्रैक सेट करने के लिए किया जाता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
activeTrackIDsAn array of integers specifying the active tracks.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका. चालू ट्रैक को खाली सूची पर सेट करने के लिए, nil या खाली कलेक्शन हो सकता है.
- (NSInteger) setTextTrackStyle: (GCKMediaTextTrackStyle *__nullable)  textTrackStyle

इस विकल्प से, टेक्स्ट ट्रैक की स्टाइल सेट की जाती है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
textTrackStyleThe text track style. The style will not be changed if this is nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) pause

इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) pauseWithCustomData: (id __nullable)  customData

इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) stop

मौजूदा मीडिया आइटम का प्लेबैक बंद करता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा. अगर फ़िलहाल कोई सूची लोड है, तो उसे हटा दिया जाता है.

रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) stopWithCustomData: (id __nullable)  customData

मौजूदा मीडिया आइटम का प्लेबैक बंद करता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा. अगर फ़िलहाल कोई सूची लोड है, तो उसे हटा दिया जाता है.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) play

इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है.

प्लेबैक हमेशा स्ट्रीम की शुरुआत से शुरू होता है. अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) playWithCustomData: (id __nullable)  customData

इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है.

प्लेबैक हमेशा स्ट्रीम की शुरुआत से शुरू होता है. अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) seekToTimeInterval: (NSTimeInterval)  position

मौजूदा मीडिया आइटम में नई जगह पर जाता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
positionThe new position from the beginning of the stream.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) seekToTimeInterval: (NSTimeInterval)  position
resumeState: (GCKMediaControlChannelResumeState resumeState 

मौजूदा मीडिया आइटम में नई जगह पर जाता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
positionThe new position interval from the beginning of the stream.
resumeStateThe action to take after the seek operation has finished.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) seekToTimeInterval: (NSTimeInterval)  position
resumeState: (GCKMediaControlChannelResumeState resumeState
customData: (id __nullable)  customData 

मौजूदा मीडिया आइटम में नई जगह पर जाता है.

अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
positionThe new position from the beginning of the stream.
resumeStateThe action to take after the seek operation has finished.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: (GCKMediaRepeatMode repeatMode 

मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
repeatModeThe repeat mode for playing the queue.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData 

मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
repeatModeThe repeat mode for playing the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
playPosition: (NSTimeInterval)  playPosition
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData 

मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This 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.
repeatModeThe repeat mode for playing the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID 

यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to insert. Must not be nil or empty.
beforeItemIDThe ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData 

यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to insert. Must not be nil or empty.
beforeItemIDID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueInsertItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID 

यह एक ऐसा तरीका है जिससे सूची में सिर्फ़ एक आइटम डाला जा सकता है.

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueInsertAndPlayItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID 

यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है.

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueInsertAndPlayItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है.

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This 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.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems

यह कुकी, कतार को अपडेट करती है.

Parameters
queueItemsThe list of updated items.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
customData: (id __nullable)  customData 

यह कुकी, कतार को अपडेट करती है.

Parameters
queueItemsThe list of updated items.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs

यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है.

अगर ऐसा करने से, कतार खाली हो जाती है, तो मौजूदा मीडिया सेशन बंद हो जाएगा.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs
customData: (id __nullable)  customData 

यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है.

अगर ऐसा करने से, कतार खाली हो जाती है, तो मौजूदा मीडिया सेशन बंद हो जाएगा.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueRemoveItemWithID: (NSUInteger)  itemID

यह एक ऐसा तरीका है जिससे सूची से एक आइटम हटाया जा सकता है.

Parameters
itemIDThe ID of the item to remove.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID 

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

Parameters
queueItemIDsAn array of media item IDs identifying the items to reorder. Must not be nil or empty.
beforeItemIDID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be appended at the end of the queue.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData 

कतार में मौजूद मीडिया आइटम की सूची का क्रम बदलें.

Parameters
queueItemIDsAn array of media item IDs identifying the items to reorder. Must not be nil or empty.
beforeItemIDThe ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be moved to the end of the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueMoveItemWithID: (NSUInteger)  itemID
beforeItemWithID: (NSUInteger)  beforeItemID 

यह एक आसान तरीका है, जिससे सूची में मौजूद किसी आइटम को दूसरी जगह ले जाया जा सकता है.

Parameters
itemIDThe ID of the item to move.
beforeItemIDThe ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the item will be moved to the end of the queue.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) queueJumpToItemWithID: (NSUInteger)  itemID

इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है.

Parameters
itemIDThe ID of the item to jump to.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) queueJumpToItemWithID: (NSUInteger)  itemID
customData: (id __nullable)  customData 

इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है.

Parameters
itemIDThe ID of the item to jump to.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) queueJumpToItemWithID: (NSUInteger)  itemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है.

Parameters
itemIDThe ID of the item to jump to.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This 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.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) queueNextItem

यह कमांड, कतार में मौजूद अगले आइटम पर ले जाती है.

रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) queuePreviousItem

इस बटन से, कतार में मौजूद पिछले आइटम पर जाया जा सकता है.

रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) queueSetRepeatMode: (GCKMediaRepeatMode repeatMode

यह विकल्प, कतार में मौजूद आइटम को दोहराने का मोड सेट करता है.

Parameters
repeatModeThe new repeat mode.
रिटर्न
इस अनुरोध के लिए अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका या कोई पैरामीटर अमान्य है.
- (NSInteger) setStreamVolume: (float)  volume

इससे स्ट्रीम का वॉल्यूम सेट किया जाता है.

अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) setStreamVolume: (float)  volume
customData: (id __nullable)  customData 

इससे स्ट्रीम का वॉल्यूम सेट किया जाता है.

अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) setStreamMuted: (BOOL)  muted

इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं.

अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
mutedWhether the stream should be muted or unmuted.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) setStreamMuted: (BOOL)  muted
customData: (id __nullable)  customData 

इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं.

अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.

Parameters
mutedWhether the stream should be muted or unmuted.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSInteger) requestStatus

यह कुकी, रिसीवर से मीडिया के अपडेट किए गए स्टेटस की जानकारी का अनुरोध करती है.

रिटर्न
अनुरोध आईडी या kGCKInvalidRequestID, अगर मैसेज नहीं भेजा जा सका.
- (NSTimeInterval) approximateStreamPosition

यह फ़ंक्शन, स्ट्रीम की अनुमानित पोज़िशन दिखाता है. इसका हिसाब, स्ट्रीम से मिली पिछली जानकारी और उस अपडेट के बाद से बीते समय के आधार पर लगाया जाता है.

अगर चैनल कनेक्ट नहीं है या फ़िलहाल कोई मीडिया लोड नहीं किया गया है, तो यह फ़ंक्शन 0 दिखाता है.

- (BOOL) cancelRequestWithID: (NSInteger)  requestID

यह फ़ंक्शन, प्रोसेस किए जा रहे अनुरोध को रद्द करता है.

अनुरोध रद्द करने से, उसे पूरा होने से नहीं रोका जा सकता. इससे सिर्फ़ यह पता चलता है कि अनुरोध करने वाला ऐप्लिकेशन, अब अनुरोध के नतीजों में दिलचस्पी नहीं रखता. इसलिए, अनुरोध को ट्रैक करने से जुड़ी कोई भी स्थिति मिटा दी जाएगी.

Parameters
requestIDThe ID of the request to cancel.
रिटर्न
अगर अनुरोध रद्द कर दिया गया है, तो
YES या अगर दिए गए आईडी से कोई अनुरोध ट्रैक नहीं किया जा रहा है, तो NO.
- (instancetype) initWithNamespace: (NSString *)  protocolNamespace

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

यह दिए गए नेमस्पेस के साथ एक नया GCKCastChannel बनाता है.

Parameters
protocolNamespaceThe namespace.

GCKGenericChannel में लागू किया गया.

- (void) didReceiveTextMessage: (NSString *)  message

इस चैनल पर कोई मैसेज मिलने पर इसे कॉल किया जाता है.

डिफ़ॉल्ट तौर पर लागू करने पर, कोई कार्रवाई नहीं होती है.

Parameters
messageThe message.
- (BOOL) sendTextMessage: (NSString *)  message

इस चैनल पर एक मैसेज भेजता है.

Parameters
messageThe message.
रिटर्न
YES अगर मैसेज भेजा जा सका, तो NO अगर मैसेज नहीं भेजा जा सका (चैनल कनेक्ट न होने या मैसेज भेजने के लिए बफ़र बहुत ज़्यादा भरा होने की वजह से).
Deprecated:
sendTextMessage:error: का इस्तेमाल करें. इससे गड़बड़ी के बारे में पूरी जानकारी मिलती है.
- (BOOL) sendTextMessage: (NSString *)  message
error: (GCKError *__nullable *__nullable)  error 

इस चैनल पर एक मैसेज भेजता है.

Parameters
messageThe message.
errorA pointer at which to store the error result. May be nil.
रिटर्न
मैसेज भेजने पर
YES या मैसेज न भेजे जाने पर NO.
- (NSInteger) generateRequestID

यह कुकी, नए मैसेज के लिए अनुरोध आईडी जनरेट करती है.

रिटर्न
जनरेट किया गया आईडी या kGCKInvalidRequestID, अगर चैनल फ़िलहाल कनेक्ट नहीं है.
- (NSNumber * __nullable) generateRequestNumber

यह एक आसान तरीका है, जो generateRequestID के नतीजे को NSNumber में रैप करता है.

रिटर्न
जनरेट किया गया आईडी या nil, अगर चैनल फ़िलहाल कनेक्ट नहीं है.
- (void) didConnect

इस चैनल के कनेक्ट होने पर कॉल किया जाता है. इससे पता चलता है कि अब इस चैनल पर, Cast डिवाइस के साथ मैसेज भेजे और पाए जा सकते हैं.

डिफ़ॉल्ट तौर पर लागू करने पर, कोई कार्रवाई नहीं होती है.

- (void) didDisconnect

इस चैनल के डिसकनेक्ट होने पर कॉल किया जाता है. इससे पता चलता है कि अब इस चैनल पर, Cast डिवाइस के साथ मैसेज नहीं भेजे जा सकते.

डिफ़ॉल्ट तौर पर लागू करने पर, कोई कार्रवाई नहीं होती है.

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

- (GCKMediaStatus*) mediaStatus
readnonatomicstrong

मौजूदा समय में लोड किए गए मीडिया का स्टेटस. अगर कोई मीडिया लोड नहीं किया गया है, तो nil.

- (NSTimeInterval) timeSinceLastMediaStatusUpdate
readnonatomicassign

मीडिया के स्टेटस को आखिरी बार अपडेट किए जाने के बाद से बीता हुआ समय.

अगर स्थिति के बारे में जानने के लिए अनुरोध किया गया है, तो इसकी वैल्यू 0 होगी.

- (GCKError*) lastError
readnonatomiccopy

पिछले अनुरोध में हुई गड़बड़ी की जानकारी. अगर कोई गड़बड़ी नहीं हुई थी, तो nil दिखेगा.

- (id<GCKMediaControlChannelDelegate>) delegate
readwritenonatomicweak

चैनल की स्थिति में होने वाले बदलावों के बारे में सूचनाएं पाने के लिए डेलिगेट.

- (NSString*) protocolNamespace
readnonatomiccopyinherited

चैनल का नेमस्पेस.

- (BOOL) isConnected
readnonatomicassigninherited

इस फ़्लैग से पता चलता है कि यह चैनल अभी कनेक्ट है या नहीं.

- (GCKDeviceManager*) deviceManager
readnonatomicweakinherited

अगर इस चैनल को किसी डिवाइस मैनेजर के साथ रजिस्टर किया गया है, तो उस डिवाइस मैनेजर का नाम.

Deprecated:
अगर इस चैनल को बंद हो चुकी GCKDeviceManager क्लास के साथ रजिस्टर नहीं किया गया था, तो यह nil होगा.