Übersicht
Eine Klasse zum Steuern der Medienwiedergabe auf einem Cast-Empfängergerät.
Diese Klasse bietet dieselben Funktionen wie die eingestellte Klasse GCKMediaControlChannel, die sie umschließt, aber mit einer benutzerfreundlicheren API. Die Hauptunterschiede sind:
- Jede Anfrage wird durch ein GCKRequest-Objekt dargestellt, das mit einem dedizierten Delegaten verfolgt werden kann.
- Das GCKRemoteMediaClient unterstützt mehrere Listener anstelle eines einzelnen Delegates.
- Seit
- 3.0
Erbt von NSObject.
Zusammenfassung der Instanzmethoden | |
(void) | - addListener: |
Fügt der Liste der Listener dieses Objekts einen Listener hinzu. Weitere Informationen | |
(void) | - removeListener: |
Entfernt einen Listener aus der Liste der Listener dieses Objekts. Weitere Informationen | |
(GCKRequest *) | - loadMedia: |
Lädt und startet die Wiedergabe eines neuen Media-Elements. Weitere Informationen | |
(GCKRequest *) | - loadMedia:autoplay: |
Lädt ein neues Media-Element und startet optional die Wiedergabe. Weitere Informationen | |
(GCKRequest *) | - loadMedia:autoplay:playPosition: |
Lädt ein neues Media-Element und startet optional die Wiedergabe. Weitere Informationen | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:customData: |
Lädt ein neues Media-Element und startet optional die Wiedergabe. Weitere Informationen | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs: |
Lädt ein neues Media-Element und startet optional die Wiedergabe. Weitere Informationen | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs:customData: |
Lädt ein neues Media-Element und startet optional die Wiedergabe. Weitere Informationen | |
(GCKRequest *) | - setActiveTrackIDs: |
Legt die aktiven Tracks fest. Weitere Informationen | |
(GCKRequest *) | - setTextTrackStyle: |
Legt den Stil des Text-Tracks fest. Weitere Informationen | |
(GCKRequest *) | - pause |
Pausiert die Wiedergabe des aktuellen Medienelements. Weitere Informationen | |
(GCKRequest *) | - pauseWithCustomData: |
Pausiert die Wiedergabe des aktuellen Medienelements. Weitere Informationen | |
(GCKRequest *) | - stop |
Die Wiedergabe des aktuellen Medienelements wird beendet. Weitere Informationen | |
(GCKRequest *) | - stopWithCustomData: |
Die Wiedergabe des aktuellen Medienelements wird beendet. Weitere Informationen | |
(GCKRequest *) | - play |
Startet (oder setzt fort) die Wiedergabe des aktuellen Medienelements. Weitere Informationen | |
(GCKRequest *) | - playWithCustomData: |
Startet (oder setzt fort) die Wiedergabe des aktuellen Medienelements. Weitere Informationen | |
(GCKRequest *) | - seekToTimeInterval: |
Sucht eine neue Position innerhalb des aktuellen Media-Elements. Weitere Informationen | |
(GCKRequest *) | - seekToTimeInterval:resumeState: |
Sucht eine neue Position innerhalb des aktuellen Media-Elements. Weitere Informationen | |
(GCKRequest *) | - seekToTimeInterval:resumeState:customData: |
Sucht eine neue Position innerhalb des aktuellen Media-Elements. Weitere Informationen | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode: |
Lädt und startet optional die Wiedergabe einer neuen Warteschlange mit Media-Elementen. Weitere Informationen | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode:customData: |
Lädt und startet optional die Wiedergabe einer neuen Warteschlange mit Media-Elementen. Weitere Informationen | |
(GCKRequest *) | - queueLoadItems:startIndex:playPosition:repeatMode:customData: |
Lädt und startet optional die Wiedergabe einer neuen Warteschlange mit Media-Elementen. Weitere Informationen | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID: |
Fügt eine Liste neuer Medienelemente in die Warteschlange ein. Weitere Informationen | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID:customData: |
Fügt eine Liste neuer Medienelemente in die Warteschlange ein. Weitere Informationen | |
(GCKRequest *) | - queueInsertItem:beforeItemWithID: |
Eine praktische Methode, mit der ein einzelnes Element in die Warteschlange eingefügt wird. Weitere Informationen | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID: |
Eine praktische Methode, mit der ein einzelnes Element in die Warteschlange eingefügt und zum aktuellen Element gemacht wird. Weitere Informationen | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData: |
Eine praktische Methode, mit der ein einzelnes Element in die Warteschlange eingefügt und zum aktuellen Element gemacht wird. Weitere Informationen | |
(GCKRequest *) | - queueUpdateItems: |
Aktualisiert die Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueUpdateItems:customData: |
Aktualisiert die Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueRemoveItemsWithIDs: |
Entfernt eine Liste von Medienelementen aus der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueRemoveItemsWithIDs:customData: |
Entfernt eine Liste von Medienelementen aus der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueRemoveItemWithID: |
Eine unkomplizierte Methode zum Entfernen eines einzelnen Elements aus der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID: |
Ordnet eine Liste von Medienelementen in der Warteschlange neu an. Weitere Informationen | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID:customData: |
Eine Liste von Medienelementen in der Warteschlange neu anordnen Weitere Informationen | |
(GCKRequest *) | - queueMoveItemWithID:beforeItemWithID: |
Eine praktische Methode zum Verschieben eines einzelnen Elements in der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueJumpToItemWithID: |
Springt zum Element mit der angegebenen ID in der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueJumpToItemWithID:customData: |
Springt zum Element mit der angegebenen ID in der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueJumpToItemWithID:playPosition:customData: |
Springt zum Element mit der angegebenen ID in der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueNextItem |
Zum nächsten Element in der Warteschlange wechseln Weitere Informationen | |
(GCKRequest *) | - queuePreviousItem |
Wechselt zum vorherigen Element in der Warteschlange. Weitere Informationen | |
(GCKRequest *) | - queueSetRepeatMode: |
Legt den Wiederholungsmodus der Warteschlange fest. Weitere Informationen | |
(GCKRequest *) | - setStreamVolume: |
Legt die Lautstärke des Streams fest. Weitere Informationen | |
(GCKRequest *) | - setStreamVolume:customData: |
Legt die Lautstärke des Streams fest. Weitere Informationen | |
(GCKRequest *) | - setStreamMuted: |
Legt fest, ob der Stream stummgeschaltet ist. Weitere Informationen | |
(GCKRequest *) | - setStreamMuted:customData: |
Legt fest, ob der Stream stummgeschaltet ist. Weitere Informationen | |
(GCKRequest *) | - requestStatus |
Fordert aktualisierte Informationen zum Media-Status vom Empfänger an. Weitere Informationen | |
(NSTimeInterval) | - approximateStreamPosition |
Gibt die ungefähre Streamposition zurück, die aus den zuletzt empfangenen Streaminformationen und der seit diesem Update verstrichenen Wanduhrzeit berechnet wurde. Weitere Informationen | |
(void) | - notifyDidStartMediaSession |
Wird von Unterklassen aufgerufen, wenn eine Mediensitzung beginnt, nämlich direkt nachdem neue Medien erfolgreich auf den Remote-Player geladen wurden. Weitere Informationen | |
(void) | - notifyDidUpdateMediaStatus |
Wird von Unterklassen aufgerufen, wenn sich das mediaStatus-Objekt des Clients ändert. Weitere Informationen | |
(void) | - notifyDidUpdateQueue |
Wird von Unterklassen aufgerufen, wenn sich die vom Client verwaltete Media-Warteschlange ändert. Weitere Informationen | |
(void) | - notifyDidUpdatePreloadStatus |
Wird von Unterklassen aufgerufen, wenn sich der GCKMediaStatus::preloadedItemID für den mediaStatus des Clients ändert. Weitere Informationen | |
(void) | - notifyDidUpdateMetadata |
Wird von Unterklassen aufgerufen, wenn sich die Metadaten ändern. Weitere Informationen | |
Zusammenfassung der Property | |
BOOL | connected |
Ein Flag, das angibt, ob dieses Objekt mit einer Sitzung verbunden ist. Weitere Informationen | |
GCKMediaStatus * | mediaStatus |
Der aktuelle Medienstatus, wie vom Media Control Channel gemeldet. Weitere Informationen | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
Die Zeit, die seit dem letzten Update des Media-Status vergangen ist. Weitere Informationen | |
id< GCKRemoteMediaClientAdInfoParserDelegate > | adInfoParserDelegate |
Ein Delegat, der Informationen zu Werbeunterbrechungen aus den benutzerdefinierten Daten in einem GCKMediaStatus-Objekt extrahieren kann. Weitere Informationen | |
Methodendetail
- (void) addListener: | (id< GCKRemoteMediaClientListener >) | listener |
Fügt der Liste der Listener dieses Objekts einen Listener hinzu.
- Parameters
-
listener The listener to add.
- (void) removeListener: | (id< GCKRemoteMediaClientListener >) | listener |
Entfernt einen Listener aus der Liste der Listener dieses Objekts.
- Parameters
-
listener The listener to remove.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo |
Lädt und startet die Wiedergabe eines neuen Media-Elements.
- Parameters
-
mediaInfo An object describing the media item to load.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
Lädt ein neues Media-Element und startet optional die Wiedergabe.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
Lädt ein neues Media-Element und startet optional die Wiedergabe.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Lädt ein neues Media-Element und startet optional die Wiedergabe.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
Lädt ein neues Media-Element und startet optional die Wiedergabe.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
customData: | (id __nullable) | customData | |
Lädt ein neues Media-Element und startet optional die Wiedergabe.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) setActiveTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs |
Legt die aktiven Tracks fest.
Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- Parameters
-
activeTrackIDs An array of integers specifying the active tracks. May be empty or nil
to disable any currently active tracks.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) setTextTrackStyle: | (GCKMediaTextTrackStyle *__nullable) | textTrackStyle |
Legt den Stil des Text-Tracks fest.
Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- Parameters
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) pause |
Pausiert die Wiedergabe des aktuellen Medienelements.
Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) pauseWithCustomData: | (id __nullable) | customData |
Pausiert die Wiedergabe des aktuellen Medienelements.
Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) stop |
Die Wiedergabe des aktuellen Medienelements wird beendet.
Wenn derzeit eine Warteschlange geladen ist, wird sie entfernt. Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) stopWithCustomData: | (id __nullable) | customData |
Die Wiedergabe des aktuellen Medienelements wird beendet.
Wenn derzeit eine Warteschlange geladen ist, wird sie entfernt. Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) play |
Startet (oder setzt fort) die Wiedergabe des aktuellen Medienelements.
Die Wiedergabe beginnt immer am Anfang des Streams. Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) playWithCustomData: | (id __nullable) | customData |
Startet (oder setzt fort) die Wiedergabe des aktuellen Medienelements.
Die Wiedergabe beginnt immer am Anfang des Streams. Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position |
Sucht eine neue Position innerhalb des aktuellen Media-Elements.
Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- Parameters
-
position The new position from the beginning of the stream.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
Sucht eine neue Position innerhalb des aktuellen Media-Elements.
Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
customData: | (id __nullable) | customData | |
Sucht eine neue Position innerhalb des aktuellen Media-Elements.
Die Anfrage schlägt fehl, wenn kein aktueller Media-Status vorhanden ist.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
Lädt und startet optional die Wiedergabe einer neuen Warteschlange mit Media-Elementen.
- 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.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
Lädt und startet optional die Wiedergabe einer neuen Warteschlange mit Media-Elementen.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
Lädt und startet optional die Wiedergabe einer neuen Warteschlange mit Media-Elementen.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Fügt eine Liste neuer Medienelemente in die Warteschlange ein.
- 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.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
Fügt eine Liste neuer Medienelemente in die Warteschlange ein.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Eine praktische Methode, mit der ein einzelnes Element in die Warteschlange eingefügt wird.
- 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.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Eine praktische Methode, mit der ein einzelnes Element in die Warteschlange eingefügt und zum aktuellen Element gemacht wird.
- 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.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Eine praktische Methode, mit der ein einzelnes Element in die Warteschlange eingefügt und zum aktuellen Element gemacht wird.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
Aktualisiert die Warteschlange.
- Parameters
-
queueItems The list of updated items.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (id __nullable) | customData | |
Aktualisiert die Warteschlange.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
Entfernt eine Liste von Medienelementen aus der Warteschlange.
Wenn die Warteschlange dadurch leer wird, wird die aktuelle Mediensitzung beendet.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
customData: | (id __nullable) | customData | |
Entfernt eine Liste von Medienelementen aus der Warteschlange.
Wenn die Warteschlange dadurch leer wird, wird die aktuelle Mediensitzung beendet.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueRemoveItemWithID: | (NSUInteger) | itemID |
Eine unkomplizierte Methode zum Entfernen eines einzelnen Elements aus der Warteschlange.
- Parameters
-
itemID The ID of the item to remove.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
Ordnet eine Liste von Medienelementen in der Warteschlange neu an.
- 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.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
Eine Liste von Medienelementen in der Warteschlange neu anordnen
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Eine praktische Methode zum Verschieben eines einzelnen Elements in der Warteschlange.
- 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.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID |
Springt zum Element mit der angegebenen ID in der Warteschlange.
- Parameters
-
itemID The ID of the item to jump to.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (id __nullable) | customData | |
Springt zum Element mit der angegebenen ID in der Warteschlange.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Springt zum Element mit der angegebenen ID in der Warteschlange.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueNextItem |
Zum nächsten Element in der Warteschlange wechseln
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queuePreviousItem |
Wechselt zum vorherigen Element in der Warteschlange.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
Legt den Wiederholungsmodus der Warteschlange fest.
- Parameters
-
repeatMode The new repeat mode.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) setStreamVolume: | (float) | volume |
Legt die Lautstärke des Streams fest.
Die Anfrage schlägt fehl, wenn keine aktuelle Mediensitzung vorhanden ist.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) setStreamVolume: | (float) | volume | |
customData: | (id __nullable) | customData | |
Legt die Lautstärke des Streams fest.
Die Anfrage schlägt fehl, wenn keine aktuelle Mediensitzung vorhanden ist.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted |
Legt fest, ob der Stream stummgeschaltet ist.
Die Anfrage schlägt fehl, wenn keine aktuelle Mediensitzung vorhanden ist.
- Parameters
-
muted Whether the stream should be muted or unmuted.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted | |
customData: | (id __nullable) | customData | |
Legt fest, ob der Stream stummgeschaltet ist.
Die Anfrage schlägt fehl, wenn keine aktuelle Mediensitzung vorhanden ist.
- 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
.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (GCKRequest *) requestStatus |
Fordert aktualisierte Informationen zum Media-Status vom Empfänger an.
- Ausgabe
- Das GCKRequest-Objekt zum Tracking dieser Anfrage.
- (NSTimeInterval) approximateStreamPosition |
Gibt die ungefähre Streamposition zurück, die aus den zuletzt empfangenen Streaminformationen und der seit diesem Update verstrichenen Wanduhrzeit berechnet wurde.
Gibt 0 zurück, wenn der Channel nicht verbunden ist oder derzeit keine Media geladen sind.
- (void) notifyDidStartMediaSession |
Wird von Unterklassen aufgerufen, wenn eine Mediensitzung beginnt, nämlich direkt nachdem neue Medien erfolgreich auf den Remote-Player geladen wurden.
Bereitgestellt von Kategorie GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateMediaStatus |
Wird von Unterklassen aufgerufen, wenn sich das mediaStatus-Objekt des Clients ändert.
Bereitgestellt von Kategorie GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateQueue |
Wird von Unterklassen aufgerufen, wenn sich die vom Client verwaltete Media-Warteschlange ändert.
Bereitgestellt von Kategorie GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdatePreloadStatus |
Wird von Unterklassen aufgerufen, wenn sich der GCKMediaStatus::preloadedItemID für den mediaStatus des Clients ändert.
Bereitgestellt von Kategorie GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateMetadata |
Wird von Unterklassen aufgerufen, wenn sich die Metadaten ändern.
Bereitgestellt von Kategorie GCKRemoteMediaClient(Protected).
Property-Details
|
readnonatomicassign |
Ein Flag, das angibt, ob dieses Objekt mit einer Sitzung verbunden ist.
|
readnonatomicstrong |
Der aktuelle Medienstatus, wie vom Media Control Channel gemeldet.
|
readnonatomicassign |
Die Zeit, die seit dem letzten Update des Media-Status vergangen ist.
Wenn gerade eine Statusanfrage läuft, ist dieser Wert 0.
|
readwritenonatomicweak |
Ein Delegat, der Informationen zu Werbeunterbrechungen aus den benutzerdefinierten Daten in einem GCKMediaStatus-Objekt extrahieren kann.
- Deprecated:
- Verwenden Sie stattdessen GCKAdBreakStatus.