Panoramica
Una classe per controllare la riproduzione dei contenuti multimediali su un ricevitore Cast.
Questa classe fornisce le stesse funzionalità della classe GCKMediaControlChannel di cui esegue il wrapping, ma con un'API più comoda. Le differenze principali sono:
- Ogni richiesta è rappresentata da un oggetto GCKRequest che può essere monitorato con un delegato dedicato.
- GCKRemoteMediaClient supporta più ascoltatori anziché un singolo delegato.
- Dal
- 3.0
Eredita NSObject.
Riepilogo del metodo dell'istanza | |
(void) | - addListener: |
Aggiunge un listener all'elenco di listener di questo oggetto. Altro… | |
(void) | - removeListener: |
Rimuove un listener dall'elenco dei listener di questo oggetto. Altro… | |
(GCKRequest *) | - loadMedia: |
Carica e avvia la riproduzione di un nuovo elemento multimediale. Altro… | |
(GCKRequest *) | - loadMedia:autoplay: |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale. Altro… | |
(GCKRequest *) | - loadMedia:autoplay:playPosition: |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale. Altro… | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:customData: |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale. Altro… | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs: |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale. Altro… | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs:customData: |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale. Altro… | |
(GCKRequest *) | - setActiveTrackIDs: |
Imposta le tracce attive. Altro… | |
(GCKRequest *) | - setTextTrackStyle: |
Imposta lo stile della traccia di testo. Altro… | |
(GCKRequest *) | - pause |
Mette in pausa la riproduzione dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - pauseWithCustomData: |
Mette in pausa la riproduzione dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - stop |
Interrompe la riproduzione dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - stopWithCustomData: |
Interrompe la riproduzione dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - play |
Avvia (o riprende) la riproduzione dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - playWithCustomData: |
Avvia (o riprende) la riproduzione dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - seekToTimeInterval: |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - seekToTimeInterval:resumeState: |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - seekToTimeInterval:resumeState:customData: |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente. Altro… | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode: |
Carica e avvia facoltativamente la riproduzione di una nuova coda di contenuti multimediali. Altro… | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode:customData: |
Carica e avvia facoltativamente la riproduzione di una nuova coda di contenuti multimediali. Altro… | |
(GCKRequest *) | - queueLoadItems:startIndex:playPosition:repeatMode:customData: |
Carica e avvia facoltativamente la riproduzione di una nuova coda di contenuti multimediali. Altro… | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID: |
Inserisce un elenco di nuovi contenuti multimediali nella coda. Altro… | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID:customData: |
Inserisce un elenco di nuovi contenuti multimediali nella coda. Altro… | |
(GCKRequest *) | - queueInsertItem:beforeItemWithID: |
Un metodo pratico che inserisce un singolo elemento nella coda. Altro… | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID: |
Un metodo pratico che inserisce un singolo elemento nella coda e lo rende l'elemento corrente. Altro… | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData: |
Un metodo pratico che inserisce un singolo elemento nella coda e lo rende l'elemento corrente. Altro… | |
(GCKRequest *) | - queueUpdateItems: |
Aggiorna la coda. Altro… | |
(GCKRequest *) | - queueUpdateItems:customData: |
Aggiorna la coda. Altro… | |
(GCKRequest *) | - queueRemoveItemsWithIDs: |
Rimuove un elenco di elementi multimediali dalla coda. Altro… | |
(GCKRequest *) | - queueRemoveItemsWithIDs:customData: |
Rimuove un elenco di elementi multimediali dalla coda. Altro… | |
(GCKRequest *) | - queueRemoveItemWithID: |
Un metodo pratico che rimuove un singolo elemento dalla coda. Altro… | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID: |
Riordina un elenco di elementi multimediali nella coda. Altro… | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID:customData: |
Riordina un elenco di elementi multimediali nella coda. Altro… | |
(GCKRequest *) | - queueMoveItemWithID:beforeItemWithID: |
Un metodo pratico che sposta un singolo elemento nella coda. Altro… | |
(GCKRequest *) | - queueJumpToItemWithID: |
Salta all'elemento con l'ID specificato nella coda. Altro… | |
(GCKRequest *) | - queueJumpToItemWithID:customData: |
Salta all'elemento con l'ID specificato nella coda. Altro… | |
(GCKRequest *) | - queueJumpToItemWithID:playPosition:customData: |
Salta all'elemento con l'ID specificato nella coda. Altro… | |
(GCKRequest *) | - queueNextItem |
Passa all'elemento successivo nella coda. Altro… | |
(GCKRequest *) | - queuePreviousItem |
Passa all'elemento precedente della coda. Altro… | |
(GCKRequest *) | - queueSetRepeatMode: |
Imposta la modalità di ripetizione della coda. Altro… | |
(GCKRequest *) | - setStreamVolume: |
Imposta il volume dello stream. Altro… | |
(GCKRequest *) | - setStreamVolume:customData: |
Imposta il volume dello stream. Altro… | |
(GCKRequest *) | - setStreamMuted: |
Imposta se lo stream è disattivato. Altro… | |
(GCKRequest *) | - setStreamMuted:customData: |
Imposta se lo stream è disattivato. Altro… | |
(GCKRequest *) | - requestStatus |
Richiede al destinatario informazioni aggiornate sullo stato dei contenuti multimediali. Altro… | |
(NSTimeInterval) | - approximateStreamPosition |
Restituisce la posizione approssimativa dello stream calcolata in base alle ultime informazioni sullo stream ricevute e al tempo reale trascorso dall'aggiornamento. Altro… | |
(void) | - notifyDidStartMediaSession |
Da chiamare dalle sottoclassi ogni volta che inizia una sessione multimediale, ovvero subito dopo che i nuovi contenuti multimediali sono stati caricati correttamente sul lettore remoto. Altro… | |
(void) | - notifyDidUpdateMediaStatus |
Da chiamare dalle sottoclassi ogni volta che l'oggetto mediaStatus del client cambia. Altro… | |
(void) | - notifyDidUpdateQueue |
Per essere chiamato dalle sottoclassi ogni volta che la coda multimediale gestita dal client cambia. Altro… | |
(void) | - notifyDidUpdatePreloadStatus |
Da chiamare dalle sottoclassi ogni volta che cambia GCKMediaStatus::preloadedItemID per mediaStatus del client. Altro… | |
(void) | - notifyDidUpdateMetadata |
Da chiamare dalle sottoclassi ogni volta che i metadati cambiano. Altro… | |
Riepilogo della proprietà | |
BOOL | connected |
Un flag che indica se questo oggetto è connesso a una sessione. Altro… | |
GCKMediaStatus * | mediaStatus |
Lo stato attuale dei contenuti multimediali, come riportato dal canale di controllo dei contenuti multimediali. Altro… | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
Il tempo trascorso dall'ultimo aggiornamento dello stato dei contenuti multimediali ricevuto. Altro… | |
id< GCKRemoteMediaClientAdInfoParserDelegate > | adInfoParserDelegate |
Un delegato in grado di estrarre le informazioni sull'interruzione pubblicitaria dai dati personalizzati in un oggetto GCKMediaStatus. Altro… | |
Dettagli metodo
- (void) addListener: | (id< GCKRemoteMediaClientListener >) | listener |
Aggiunge un listener all'elenco di listener di questo oggetto.
- Parameters
-
listener The listener to add.
- (void) removeListener: | (id< GCKRemoteMediaClientListener >) | listener |
Rimuove un listener dall'elenco dei listener di questo oggetto.
- Parameters
-
listener The listener to remove.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo |
Carica e avvia la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo An object describing the media item to load.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
customData: | (id __nullable) | customData | |
Carica e avvia facoltativamente la riproduzione di un nuovo elemento multimediale.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) setActiveTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs |
Imposta le tracce attive.
La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- Parameters
-
activeTrackIDs An array of integers specifying the active tracks. May be empty or nil
to disable any currently active tracks.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) setTextTrackStyle: | (GCKMediaTextTrackStyle *__nullable) | textTrackStyle |
Imposta lo stile della traccia di testo.
La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- Parameters
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) pause |
Mette in pausa la riproduzione dell'elemento multimediale corrente.
La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) pauseWithCustomData: | (id __nullable) | customData |
Mette in pausa la riproduzione dell'elemento multimediale corrente.
La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) stop |
Interrompe la riproduzione dell'elemento multimediale corrente.
Se è attualmente caricata una coda, verrà rimossa. La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) stopWithCustomData: | (id __nullable) | customData |
Interrompe la riproduzione dell'elemento multimediale corrente.
Se è attualmente caricata una coda, verrà rimossa. La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) play |
Avvia (o riprende) la riproduzione dell'elemento multimediale corrente.
La riproduzione inizia sempre dall'inizio dello stream. La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) playWithCustomData: | (id __nullable) | customData |
Avvia (o riprende) la riproduzione dell'elemento multimediale corrente.
La riproduzione inizia sempre dall'inizio dello stream. La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente.
La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- Parameters
-
position The new position from the beginning of the stream.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente.
La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
customData: | (id __nullable) | customData | |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente.
La richiesta non andrà a buon fine se non è presente uno stato multimediale corrente.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
Carica e avvia facoltativamente la riproduzione di una nuova coda di contenuti multimediali.
- 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.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
Carica e avvia facoltativamente la riproduzione di una nuova coda di contenuti multimediali.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
Carica e avvia facoltativamente la riproduzione di una nuova coda di contenuti multimediali.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Inserisce un elenco di nuovi contenuti multimediali nella coda.
- 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.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
Inserisce un elenco di nuovi contenuti multimediali nella coda.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Un metodo pratico che inserisce un singolo elemento nella coda.
- 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.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Un metodo pratico che inserisce un singolo elemento nella coda e lo rende l'elemento corrente.
- 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.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Un metodo pratico che inserisce un singolo elemento nella coda e lo rende l'elemento corrente.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
Aggiorna la coda.
- Parameters
-
queueItems The list of updated items.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (id __nullable) | customData | |
Aggiorna la coda.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
Rimuove un elenco di elementi multimediali dalla coda.
Se la coda si svuota, la sessione multimediale corrente verrà interrotta.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
customData: | (id __nullable) | customData | |
Rimuove un elenco di elementi multimediali dalla coda.
Se la coda si svuota, la sessione multimediale corrente verrà interrotta.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueRemoveItemWithID: | (NSUInteger) | itemID |
Un metodo pratico che rimuove un singolo elemento dalla coda.
- Parameters
-
itemID The ID of the item to remove.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
Riordina un elenco di elementi multimediali nella coda.
- 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.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
Riordina un elenco di elementi multimediali nella coda.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Un metodo pratico che sposta un singolo elemento nella coda.
- 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.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID |
Salta all'elemento con l'ID specificato nella coda.
- Parameters
-
itemID The ID of the item to jump to.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (id __nullable) | customData | |
Salta all'elemento con l'ID specificato nella coda.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Salta all'elemento con l'ID specificato nella coda.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueNextItem |
Passa all'elemento successivo nella coda.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queuePreviousItem |
Passa all'elemento precedente della coda.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
Imposta la modalità di ripetizione della coda.
- Parameters
-
repeatMode The new repeat mode.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) setStreamVolume: | (float) | volume |
Imposta il volume dello stream.
La richiesta non andrà a buon fine se non è presente una sessione multimediale corrente.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) setStreamVolume: | (float) | volume | |
customData: | (id __nullable) | customData | |
Imposta il volume dello stream.
La richiesta non andrà a buon fine se non è presente una sessione multimediale corrente.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted |
Imposta se lo stream è disattivato.
La richiesta non andrà a buon fine se non è presente una sessione multimediale corrente.
- Parameters
-
muted Whether the stream should be muted or unmuted.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted | |
customData: | (id __nullable) | customData | |
Imposta se lo stream è disattivato.
La richiesta non andrà a buon fine se non è presente una sessione multimediale corrente.
- 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
.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (GCKRequest *) requestStatus |
Richiede al destinatario informazioni aggiornate sullo stato dei contenuti multimediali.
- Resi
- L'oggetto GCKRequest per il monitoraggio di questa richiesta.
- (NSTimeInterval) approximateStreamPosition |
Restituisce la posizione approssimativa dello stream calcolata in base alle ultime informazioni sullo stream ricevute e al tempo reale trascorso dall'aggiornamento.
Restituisce 0 se il canale non è connesso o se al momento non sono caricati contenuti multimediali.
- (void) notifyDidStartMediaSession |
Da chiamare dalle sottoclassi ogni volta che inizia una sessione multimediale, ovvero subito dopo che i nuovi contenuti multimediali sono stati caricati correttamente sul lettore remoto.
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateMediaStatus |
Da chiamare dalle sottoclassi ogni volta che l'oggetto mediaStatus del client cambia.
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateQueue |
Per essere chiamato dalle sottoclassi ogni volta che la coda multimediale gestita dal client cambia.
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdatePreloadStatus |
Da chiamare dalle sottoclassi ogni volta che cambia GCKMediaStatus::preloadedItemID per mediaStatus del client.
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateMetadata |
Da chiamare dalle sottoclassi ogni volta che i metadati cambiano.
Fornito dalla categoria GCKRemoteMediaClient(Protected).
Dettaglio proprietà
|
readnonatomicassign |
Un flag che indica se questo oggetto è connesso a una sessione.
|
readnonatomicstrong |
Lo stato attuale dei contenuti multimediali, come riportato dal canale di controllo dei contenuti multimediali.
|
readnonatomicassign |
Il tempo trascorso dall'ultimo aggiornamento dello stato dei contenuti multimediali ricevuto.
Se è in corso una richiesta di stato, questo valore sarà 0.
|
readwritenonatomicweak |
Un delegato in grado di estrarre le informazioni sull'interruzione pubblicitaria dai dati personalizzati in un oggetto GCKMediaStatus.
- Deprecated:
- Utilizza invece GCKAdBreakStatus.