खास जानकारी
यह क्लास, कास्ट किए जाने वाले डिवाइस पर मीडिया प्लेबैक को कंट्रोल करने के लिए होती है.
यह क्लास, बंद किए गए GCKMediaControlChannel की तरह ही काम करती है. हालांकि, इसमें ज़्यादा सुविधाजनक एपीआई होता है. इनके बीच मुख्य अंतर ये हैं:
- हर अनुरोध को GCKRequest ऑब्जेक्ट के तौर पर दिखाया जाता है. इसे किसी खास डेलिगेट की मदद से ट्रैक किया जा सकता है.
- GCKRemoteMediaClient में, एक डेलिगेट के बजाय कई लिसनर इस्तेमाल किए जा सकते हैं.
- से
- 3.0
यह NSObject से इनहेरिट करता है.
इंस्टेंस के तरीके की खास जानकारी | |
(void) | - addListener: |
यह तरीका, इस ऑब्जेक्ट के लिसनर की सूची में एक लिसनर जोड़ता है. ज़्यादा... | |
(void) | - removeListener: |
इस ऑब्जेक्ट के लिसनर की सूची से किसी लिसनर को हटाता है. ज़्यादा... | |
(GCKRequest *) | - loadMedia: |
यह फ़ंक्शन, नए मीडिया आइटम को लोड करता है और उसे चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - loadMedia:autoplay: |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition: |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:customData: |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs: |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs:customData: |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - setActiveTrackIDs: |
इस कुकी का इस्तेमाल, चालू ट्रैक सेट करने के लिए किया जाता है. ज़्यादा... | |
(GCKRequest *) | - setTextTrackStyle: |
इस विकल्प से, टेक्स्ट ट्रैक की स्टाइल सेट की जाती है. ज़्यादा... | |
(GCKRequest *) | - pause |
इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है. ज़्यादा... | |
(GCKRequest *) | - pauseWithCustomData: |
इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है. ज़्यादा... | |
(GCKRequest *) | - stop |
मौजूदा मीडिया आइटम का प्लेबैक बंद करता है. ज़्यादा... | |
(GCKRequest *) | - stopWithCustomData: |
मौजूदा मीडिया आइटम का प्लेबैक बंद करता है. ज़्यादा... | |
(GCKRequest *) | - play |
इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है. ज़्यादा... | |
(GCKRequest *) | - playWithCustomData: |
इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है. ज़्यादा... | |
(GCKRequest *) | - seekToTimeInterval: |
मौजूदा मीडिया आइटम में नई जगह पर जाता है. ज़्यादा... | |
(GCKRequest *) | - seekToTimeInterval:resumeState: |
मौजूदा मीडिया आइटम में नई जगह पर जाता है. ज़्यादा... | |
(GCKRequest *) | - seekToTimeInterval:resumeState:customData: |
मौजूदा मीडिया आइटम में नई जगह पर जाता है. ज़्यादा... | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode: |
मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode:customData: |
मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - queueLoadItems:startIndex:playPosition:repeatMode:customData: |
मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है. ज़्यादा... | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID: |
यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है. ज़्यादा... | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID:customData: |
यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है. ज़्यादा... | |
(GCKRequest *) | - queueInsertItem:beforeItemWithID: |
यह एक ऐसा तरीका है जिससे सूची में सिर्फ़ एक आइटम डाला जा सकता है. ज़्यादा... | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID: |
यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है. ज़्यादा... | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData: |
यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है. ज़्यादा... | |
(GCKRequest *) | - queueUpdateItems: |
यह कुकी, कतार को अपडेट करती है. ज़्यादा... | |
(GCKRequest *) | - queueUpdateItems:customData: |
यह कुकी, कतार को अपडेट करती है. ज़्यादा... | |
(GCKRequest *) | - queueRemoveItemsWithIDs: |
यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है. ज़्यादा... | |
(GCKRequest *) | - queueRemoveItemsWithIDs:customData: |
यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है. ज़्यादा... | |
(GCKRequest *) | - queueRemoveItemWithID: |
यह एक ऐसा तरीका है जिससे सूची से एक आइटम हटाया जा सकता है. ज़्यादा... | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID: |
यह अनुरोध, मीडिया आइटम की सूची को फिर से क्रम में लगाता है. ज़्यादा... | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID:customData: |
कतार में मौजूद मीडिया आइटम की सूची का क्रम बदलें. ज़्यादा... | |
(GCKRequest *) | - queueMoveItemWithID:beforeItemWithID: |
यह एक आसान तरीका है, जिससे सूची में मौजूद किसी आइटम को दूसरी जगह ले जाया जा सकता है. ज़्यादा... | |
(GCKRequest *) | - queueJumpToItemWithID: |
इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है. ज़्यादा... | |
(GCKRequest *) | - queueJumpToItemWithID:customData: |
इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है. ज़्यादा... | |
(GCKRequest *) | - queueJumpToItemWithID:playPosition:customData: |
इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है. ज़्यादा... | |
(GCKRequest *) | - queueNextItem |
यह कमांड, कतार में मौजूद अगले आइटम पर ले जाती है. ज़्यादा... | |
(GCKRequest *) | - queuePreviousItem |
इस बटन से, कतार में मौजूद पिछले आइटम पर जाया जा सकता है. ज़्यादा... | |
(GCKRequest *) | - queueSetRepeatMode: |
यह विकल्प, कतार में मौजूद आइटम को दोहराने का मोड सेट करता है. ज़्यादा... | |
(GCKRequest *) | - setStreamVolume: |
इससे स्ट्रीम का वॉल्यूम सेट किया जाता है. ज़्यादा... | |
(GCKRequest *) | - setStreamVolume:customData: |
इससे स्ट्रीम का वॉल्यूम सेट किया जाता है. ज़्यादा... | |
(GCKRequest *) | - setStreamMuted: |
इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं. ज़्यादा... | |
(GCKRequest *) | - setStreamMuted:customData: |
इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं. ज़्यादा... | |
(GCKRequest *) | - requestStatus |
यह कुकी, रिसीवर से मीडिया के अपडेट किए गए स्टेटस की जानकारी का अनुरोध करती है. ज़्यादा... | |
(NSTimeInterval) | - approximateStreamPosition |
यह फ़ंक्शन, स्ट्रीम की अनुमानित पोज़िशन दिखाता है. इसका हिसाब, स्ट्रीम से मिली पिछली जानकारी और उस अपडेट के बाद से बीते समय के आधार पर लगाया जाता है. ज़्यादा... | |
(void) | - notifyDidStartMediaSession |
जब भी मीडिया सेशन शुरू होता है, तब सबक्लास को कॉल किया जाता है. जैसे, रिमोट प्लेयर पर नया मीडिया लोड होने के तुरंत बाद. ज़्यादा... | |
(void) | - notifyDidUpdateMediaStatus |
जब क्लाइंट के mediaStatus ऑब्जेक्ट में बदलाव होता है, तब इस तरीके को सबक्लास कभी भी कॉल कर सकते हैं. ज़्यादा... | |
(void) | - notifyDidUpdateQueue |
जब क्लाइंट मैनेज की जा रही मीडिया क्यू में बदलाव होता है, तब इस तरीके को सबक्लास कभी भी कॉल कर सकते हैं. ज़्यादा... | |
(void) | - notifyDidUpdatePreloadStatus |
जब क्लाइंट के mediaStatus के लिए GCKMediaStatus::preloadedItemID बदलता है, तब सबक्लास को कॉल किया जाता है. ज़्यादा... | |
(void) | - notifyDidUpdateMetadata |
मेटाडेटा में बदलाव होने पर, सबक्लास को कभी भी कॉल किया जा सकता है. ज़्यादा... | |
प्रॉपर्टी की खास जानकारी | |
BOOL | connected |
इस फ़्लैग से यह जानकारी मिलती है कि यह ऑब्जेक्ट किसी सेशन से कनेक्ट है या नहीं. ज़्यादा... | |
GCKMediaStatus * | mediaStatus |
मीडिया कंट्रोल चैनल के ज़रिए रिपोर्ट किया गया मीडिया का मौजूदा स्टेटस. ज़्यादा... | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
मीडिया के स्टेटस को आखिरी बार अपडेट किए जाने के बाद से बीता हुआ समय. ज़्यादा... | |
id< GCKRemoteMediaClientAdInfoParserDelegate > | adInfoParserDelegate |
यह एक डेलिगेट है, जो GCKMediaStatus ऑब्जेक्ट में मौजूद कस्टम डेटा से विज्ञापन ब्रेक की जानकारी निकाल सकता है. ज़्यादा... | |
तरीके की जानकारी
- (void) addListener: | (id< GCKRemoteMediaClientListener >) | listener |
यह तरीका, इस ऑब्जेक्ट के लिसनर की सूची में एक लिसनर जोड़ता है.
- Parameters
-
listener The listener to add.
- (void) removeListener: | (id< GCKRemoteMediaClientListener >) | listener |
इस ऑब्जेक्ट के लिसनर की सूची से किसी लिसनर को हटाता है.
- Parameters
-
listener The listener to remove.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo |
यह फ़ंक्शन, नए मीडिया आइटम को लोड करता है और उसे चलाना शुरू करता है.
- Parameters
-
mediaInfo An object describing the media item to load.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
customData: | (id __nullable) | customData | |
यह फ़ंक्शन, एक नई मीडिया आइटम को लोड करता है और ज़रूरत पड़ने पर उसे चलाना शुरू करता है.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) setActiveTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs |
इस कुकी का इस्तेमाल, चालू ट्रैक सेट करने के लिए किया जाता है.
अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
activeTrackIDs An array of integers specifying the active tracks. May be empty or nil
to disable any currently active tracks.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) setTextTrackStyle: | (GCKMediaTextTrackStyle *__nullable) | textTrackStyle |
इस विकल्प से, टेक्स्ट ट्रैक की स्टाइल सेट की जाती है.
अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) pause |
इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है.
अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) pauseWithCustomData: | (id __nullable) | customData |
इससे मौजूदा मीडिया आइटम का प्लेबैक रुक जाता है.
अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) stop |
मौजूदा मीडिया आइटम का प्लेबैक बंद करता है.
अगर फ़िलहाल कोई कतार लोड है, तो उसे हटा दिया जाएगा. अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) stopWithCustomData: | (id __nullable) | customData |
मौजूदा मीडिया आइटम का प्लेबैक बंद करता है.
अगर फ़िलहाल कोई कतार लोड है, तो उसे हटा दिया जाएगा. अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) play |
इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है.
प्लेबैक हमेशा स्ट्रीम की शुरुआत से शुरू होता है. अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) playWithCustomData: | (id __nullable) | customData |
इससे मौजूदा मीडिया आइटम का प्लेबैक शुरू होता है या फिर से शुरू होता है.
प्लेबैक हमेशा स्ट्रीम की शुरुआत से शुरू होता है. अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position |
मौजूदा मीडिया आइटम में नई जगह पर जाता है.
अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
position The new position from the beginning of the stream.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
मौजूदा मीडिया आइटम में नई जगह पर जाता है.
अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
customData: | (id __nullable) | customData | |
मौजूदा मीडिया आइटम में नई जगह पर जाता है.
अगर मीडिया की मौजूदा स्थिति मौजूद नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
position The new position from the beginning of the stream. resumeState The action to take after the seek operation has finished. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
मीडिया आइटम की नई सूची लोड करता है और ज़रूरत पड़ने पर उन्हें चलाना शुरू करता है.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. playPosition The 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. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID The 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.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
यह फ़ंक्शन, नई मीडिया आइटम की सूची को कतार में जोड़ता है.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
यह एक ऐसा तरीका है जिससे सूची में सिर्फ़ एक आइटम डाला जा सकता है.
- Parameters
-
item The item to insert. beforeItemID The 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.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है.
- Parameters
-
item The item to insert. beforeItemID The 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.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
यह एक आसान तरीका है. इससे सूची में एक आइटम डाला जाता है और उसे मौजूदा आइटम के तौर पर सेट किया जाता है.
- Parameters
-
item The item to insert. beforeItemID The 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. playPosition The 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
यह कुकी, कतार को अपडेट करती है.
- Parameters
-
queueItems The list of updated items.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (id __nullable) | customData | |
यह कुकी, कतार को अपडेट करती है.
- Parameters
-
queueItems The list of updated items. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है.
अगर ऐसा करने से, कतार खाली हो जाती है, तो मौजूदा मीडिया सेशन बंद हो जाएगा.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
customData: | (id __nullable) | customData | |
यह कार्रवाई, मीडिया आइटम की सूची को कतार से हटाती है.
अगर ऐसा करने से, कतार खाली हो जाती है, तो मौजूदा मीडिया सेशन बंद हो जाएगा.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueRemoveItemWithID: | (NSUInteger) | itemID |
यह एक ऐसा तरीका है जिससे सूची से एक आइटम हटाया जा सकता है.
- Parameters
-
itemID The ID of the item to remove.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
यह अनुरोध, मीडिया आइटम की सूची को फिर से क्रम में लगाता है.
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID 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 appended at the end of the queue.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
कतार में मौजूद मीडिया आइटम की सूची का क्रम बदलें.
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID The 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
यह एक आसान तरीका है, जिससे सूची में मौजूद किसी आइटम को दूसरी जगह ले जाया जा सकता है.
- Parameters
-
itemID The ID of the item to move. beforeItemID The 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.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID |
इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है.
- Parameters
-
itemID The ID of the item to jump to.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (id __nullable) | customData | |
इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है.
- Parameters
-
itemID The ID of the item to jump to. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
इस कमांड से, सूची में मौजूद उस आइटम पर जाया जाता है जिसका आईडी बताया गया है.
- Parameters
-
itemID The ID of the item to jump to. playPosition The 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueNextItem |
यह कमांड, कतार में मौजूद अगले आइटम पर ले जाती है.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queuePreviousItem |
इस बटन से, कतार में मौजूद पिछले आइटम पर जाया जा सकता है.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
यह विकल्प, कतार में मौजूद आइटम को दोहराने का मोड सेट करता है.
- Parameters
-
repeatMode The new repeat mode.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) setStreamVolume: | (float) | volume |
इससे स्ट्रीम का वॉल्यूम सेट किया जाता है.
अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) setStreamVolume: | (float) | volume | |
customData: | (id __nullable) | customData | |
इससे स्ट्रीम का वॉल्यूम सेट किया जाता है.
अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0]. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted |
इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं.
अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
muted Whether the stream should be muted or unmuted.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted | |
customData: | (id __nullable) | customData | |
इससे यह सेट किया जाता है कि स्ट्रीम म्यूट है या नहीं.
अगर कोई मौजूदा मीडिया सेशन नहीं है, तो अनुरोध पूरा नहीं किया जा सकेगा.
- Parameters
-
muted Whether the stream should be muted or unmuted. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (GCKRequest *) requestStatus |
यह कुकी, रिसीवर से मीडिया के अपडेट किए गए स्टेटस की जानकारी का अनुरोध करती है.
- रिटर्न
- इस अनुरोध को ट्रैक करने के लिए GCKRequest ऑब्जेक्ट.
- (NSTimeInterval) approximateStreamPosition |
यह फ़ंक्शन, स्ट्रीम की अनुमानित पोज़िशन दिखाता है. इसका हिसाब, स्ट्रीम से मिली पिछली जानकारी और उस अपडेट के बाद से बीते समय के आधार पर लगाया जाता है.
अगर चैनल कनेक्ट नहीं है या फ़िलहाल कोई मीडिया लोड नहीं किया गया है, तो यह फ़ंक्शन 0 दिखाता है.
- (void) notifyDidStartMediaSession |
जब भी मीडिया सेशन शुरू होता है, तब सबक्लास को कॉल किया जाता है. जैसे, रिमोट प्लेयर पर नया मीडिया लोड होने के तुरंत बाद.
इसे कैटगरी GCKRemoteMediaClient(Protected) ने उपलब्ध कराया है.
- (void) notifyDidUpdateMediaStatus |
जब क्लाइंट के mediaStatus ऑब्जेक्ट में बदलाव होता है, तब इस तरीके को सबक्लास कभी भी कॉल कर सकते हैं.
इसे कैटगरी GCKRemoteMediaClient(Protected) ने उपलब्ध कराया है.
- (void) notifyDidUpdateQueue |
जब क्लाइंट मैनेज की जा रही मीडिया क्यू में बदलाव होता है, तब इस तरीके को सबक्लास कभी भी कॉल कर सकते हैं.
इसे कैटगरी GCKRemoteMediaClient(Protected) ने उपलब्ध कराया है.
- (void) notifyDidUpdatePreloadStatus |
जब क्लाइंट के mediaStatus के लिए GCKMediaStatus::preloadedItemID बदलता है, तब सबक्लास को कॉल किया जाता है.
इसे कैटगरी GCKRemoteMediaClient(Protected) ने उपलब्ध कराया है.
- (void) notifyDidUpdateMetadata |
मेटाडेटा में बदलाव होने पर, सबक्लास को कभी भी कॉल किया जा सकता है.
इसे कैटगरी GCKRemoteMediaClient(Protected) ने उपलब्ध कराया है.
प्रॉपर्टी की जानकारी
|
readnonatomicassign |
इस फ़्लैग से यह जानकारी मिलती है कि यह ऑब्जेक्ट किसी सेशन से कनेक्ट है या नहीं.
|
readnonatomicstrong |
मीडिया कंट्रोल चैनल के ज़रिए रिपोर्ट किया गया मीडिया का मौजूदा स्टेटस.
|
readnonatomicassign |
मीडिया के स्टेटस को आखिरी बार अपडेट किए जाने के बाद से बीता हुआ समय.
अगर स्थिति के बारे में जानने के लिए अनुरोध किया गया है, तो इसकी वैल्यू 0 होगी.
|
readwritenonatomicweak |
यह एक डेलिगेट है, जो GCKMediaStatus ऑब्जेक्ट में मौजूद कस्टम डेटा से विज्ञापन ब्रेक की जानकारी निकाल सकता है.
- Deprecated:
- इसके बजाय, GCKAdBreakStatus का इस्तेमाल करें.