Panoramica
Una classe per controllare la riproduzione di contenuti multimediali su un ricevitore di trasmissione.
Un'istanza di questo oggetto è disponibile come proprietà GCKSession::remoteMediaClient.
- Dal
- 3,0
Eredita l'oggetto NSObject.
Riepilogo metodo istanza | |
(void) | - addListener: |
Aggiunge un listener all'elenco di listener di questo oggetto. Altro... | |
(void) | - removeListener: |
Rimuove un listener dall'elenco di listener di questo oggetto. Altro... | |
(GCKRequest *) | - loadMediaWithLoadRequestData: |
Consente di caricare e avviare la riproduzione di un elemento multimediale o di una coda di elementi multimediali con dati di richiesta. Altro... | |
(GCKRequest *) | - loadMedia: |
Carica e avvia la riproduzione di un nuovo elemento multimediale con opzioni predefinite. Altro... | |
(GCKRequest *) | - loadMedia:withOptions: |
Carica e avvia la riproduzione di un nuovo elemento multimediale con le opzioni specificate. Altro... | |
(GCKRequest *) | - loadMedia:autoplay: |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale. Altro... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition: |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale. Altro... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:customData: |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale. Altro... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs: |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale. Altro... | |
(GCKRequest *) | - loadMedia:autoplay:playPosition:activeTrackIDs:customData: |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale. Altro... | |
(GCKRequest *) | - setPlaybackRate: |
Imposta la velocità di riproduzione per la sessione multimediale corrente. Altro... | |
(GCKRequest *) | - setPlaybackRate:customData: |
Imposta la velocità di riproduzione per la sessione multimediale corrente. 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 |
Consente di avviare (o riprendere) la riproduzione dell'elemento multimediale corrente. Altro... | |
(GCKRequest *) | - playWithCustomData: |
Consente di avviare (o riprendere) la riproduzione dell'elemento multimediale corrente. Altro... | |
(GCKRequest *) | - skipAd |
Invia una richiesta per saltare l'annuncio in riproduzione. Altro... | |
(GCKRequest *) | - seekWithOptions: |
Cerca una nuova posizione all'interno 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 *) | - queueFetchItemIDs |
Richiedi l'elenco di ID elemento per la coda. Altro... | |
(GCKRequest *) | - queueFetchItemsForIDs: |
Richiedi informazioni complete per gli elementi della coda con gli ID elemento specificati. Altro... | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode: |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi multimediali. Altro... | |
(GCKRequest *) | - queueLoadItems:startIndex:repeatMode:customData: |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi multimediali. Altro... | |
(GCKRequest *) | - queueLoadItems:startIndex:playPosition:repeatMode:customData: |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi multimediali. Altro... | |
(GCKRequest *) | - queueLoadItems:withOptions: |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi multimediali. Altro... | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID: |
Consente di inserire un elenco di nuovi elementi multimediali nella coda. Altro... | |
(GCKRequest *) | - queueInsertItems:beforeItemWithID:customData: |
Consente di inserire un elenco di nuovi elementi multimediali nella coda. Altro... | |
(GCKRequest *) | - queueInsertItem:beforeItemWithID: |
Metodo di convenienza che inserisce un singolo elemento nella coda. Altro... | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID: |
Metodo pratico che inserisce un singolo elemento in coda e lo trasforma in elemento corrente. Altro... | |
(GCKRequest *) | - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData: |
Metodo pratico che inserisce un singolo elemento in coda e lo trasforma in 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 per rimuovere un singolo elemento dalla coda. Altro... | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID: |
Riordina un elenco di elementi multimediali in coda. Altro... | |
(GCKRequest *) | - queueReorderItemsWithIDs:insertBeforeItemWithID:customData: |
Riordina un elenco di elementi multimediali in coda. Altro... | |
(GCKRequest *) | - queueMoveItemWithID:beforeItemWithID: |
Un metodo pratico per spostare un singolo elemento in coda. Altro... | |
(GCKRequest *) | - queueJumpToItemWithID: |
Passa all'elemento con l'ID specificato nella coda. Altro... | |
(GCKRequest *) | - queueJumpToItemWithID:customData: |
Passa all'elemento con l'ID specificato nella coda. Altro... | |
(GCKRequest *) | - queueJumpToItemWithID:playPosition:customData: |
Passa all'elemento con l'ID specificato nella coda. Altro... | |
(GCKRequest *) | - queueNextItem |
Passa all'elemento successivo in coda. Altro... | |
(GCKRequest *) | - queuePreviousItem |
Passa all'elemento precedente in 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 l'audio dello stream è disattivato. Altro... | |
(GCKRequest *) | - setStreamMuted:customData: |
Imposta se l'audio dello stream è disattivato. Altro... | |
(GCKRequest *) | - requestStatus |
Richiedi informazioni aggiornate sullo stato dei contenuti multimediali al destinatario. Altro... | |
(NSTimeInterval) | - approximateStreamPosition |
Restituisce la posizione approssimativa dello stream calcolata in base alle informazioni sull'ultimo stream ricevuto e il tempo di parete trascorso dall'aggiornamento. Altro... | |
(NSTimeInterval) | - approximateLiveSeekableRangeStart |
Restituisce la posizione iniziale approssimativa dell'intervallo disponibile, calcolata in base alle informazioni relative all'ultimo stream ricevuto e al tempo di parete trascorso dall'aggiornamento. Altro... | |
(NSTimeInterval) | - approximateLiveSeekableRangeEnd |
Restituisce la posizione finale approssimativa dell'intervallo disponibile in base alle informazioni dell'ultimo stream ricevuto e al tempo di parete trascorso dall'aggiornamento. Altro... | |
(void) | - notifyDidStartMediaSession |
Per essere chiamati 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 |
Per essere chiamato dalle sottoclassi ogni volta che l'oggetto mediaStatus cambia del client. Altro... | |
(void) | - notifyDidUpdateQueue |
Per essere chiamato dalle sottoclassi ogni volta che la coda multimediale gestita dal client cambia. Altro... | |
(void) | - notifyDidUpdatePreloadStatus |
Per essere chiamato dalle sottoclassi ogni volta che GCKMediaStatus::preloadedItemID delle GCKMediaStatus del client cambia. Altro... | |
(void) | - notifyDidUpdateMetadata |
Per essere chiamati dalle sottoclassi ogni volta che i metadati cambiano. Altro... | |
(void) | - notifyDidReceiveQueueItemIDs: |
Per essere chiamato dalle sottoclassi ogni volta che viene ricevuto l'elenco degli ID elemento della coda multimediale. Altro... | |
(void) | - notifyDidInsertQueueItemsWithIDs:beforeItemWithID: |
Per essere chiamato dalle sottoclassi ogni volta che una coda contigue di elementi della coda è stata inserita in coda. Altro... | |
(void) | - notifyDidUpdateQueueItemsWithIDs: |
Per essere chiamati dalle sottoclassi ogni volta che nella coda sono stati aggiornati elementi di coda esistenti. Altro... | |
(void) | - notifyDidRemoveQueueItemsWithIDs: |
Per essere chiamati dalle sottoclassi ogni volta che una coda contigue di elementi della coda è stata rimossa dalla coda. Altro... | |
(void) | - notifyDidReceiveQueueItems: |
Per essere chiamato da una sottoclasse ogni volta che vengono ricevuti elementi di coda. Altro... | |
Riepilogo 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... | |
GCKMediaQueue * | mediaQueue |
La coda multimediale. Altro... | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
Il tempo trascorso dall'ultimo aggiornamento dello stato dei contenuti multimediali. Altro... | |
BOOL | playingLiveStream |
Un flag che indica se il client sta riproducendo un live streaming. Altro... | |
id < GCKRemoteMediaClientAdInfoParserDelegate > | adInfoParserDelegate |
Un delegato in grado di estrarre informazioni sulle interruzioni pubblicitarie dai dati personalizzati in un oggetto GCKMediaStatus. Altro... | |
Dettaglio metodo
- (void) addListener: | (id< GCKRemoteMediaClientListener >) | listener |
Aggiunge un listener all'elenco di listener di questo oggetto.
Il listener aggiunto viene mantenuto in modalità debole e deve essere conservato per evitare località di deal impreviste.
- Parameters
-
listener The listener to add.
- (void) removeListener: | (id< GCKRemoteMediaClientListener >) | listener |
Rimuove un listener dall'elenco di listener di questo oggetto.
- Parameters
-
listener The listener to remove.
- (GCKRequest *) loadMediaWithLoadRequestData: | (GCKMediaLoadRequestData *) | requestData |
Consente di caricare e avviare la riproduzione di un elemento multimediale o di una coda di elementi multimediali con dati di richiesta.
- Parameters
-
requestData Describes the media load request.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4.4.1
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo |
Carica e avvia la riproduzione di un nuovo elemento multimediale con opzioni predefinite.
È consigliabile utilizzare invece loadMediaWithLoadRequestData:, un comando di caricamento avanzato che supporta il caricamento di un singolo elemento o di una coda con opzioni aggiuntive.
- Parameters
-
mediaInfo Describes the media item to load.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
withOptions: | (GCKMediaLoadOptions *) | options | |
Carica e avvia la riproduzione di un nuovo elemento multimediale con le opzioni specificate.
È consigliabile utilizzare invece loadMediaWithLoadRequestData:, un comando di caricamento avanzato che supporta il caricamento di un singolo elemento o di una coda con opzioni aggiuntive.
- Parameters
-
mediaInfo Describes the media item to load. options The load options for this request.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4,0
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo Describes 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo Describes 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
customData: | (nullable id) | customData | |
Carica e, facoltativamente, avvia la riproduzione di un nuovo elemento multimediale.
- Parameters
-
mediaInfo Describes 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate |
Imposta la velocità di riproduzione per la sessione multimediale corrente.
- Parameters
-
playbackRate The new playback rate.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4,0
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate | |
customData: | (nullable id) | customData | |
Imposta la velocità di riproduzione per la sessione multimediale corrente.
- Parameters
-
playbackRate The new playback rate, which must be between GCKMediaLoadOptions::kGCKMediaMinPlaybackRate and GCKMediaLoadOptions::kGCKMediaMaxPlaybackRate. 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4,0
- (GCKRequest *) setActiveTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs |
Imposta le tracce attive.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Parameters
-
activeTrackIDs An array of integers specifying the active tracks. May be empty or nil
to disable any currently active tracks.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) setTextTrackStyle: | (nullable GCKMediaTextTrackStyle *) | textTrackStyle |
Imposta lo stile della traccia di testo.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Parameters
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) pause |
Mette in pausa la riproduzione dell'elemento multimediale corrente.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) pauseWithCustomData: | (nullable id) | customData |
Mette in pausa la riproduzione dell'elemento multimediale corrente.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) stop |
Interrompe la riproduzione dell'elemento multimediale corrente.
Se una coda è attualmente caricata, verrà rimossa. Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) stopWithCustomData: | (nullable id) | customData |
Interrompe la riproduzione dell'elemento multimediale corrente.
Se una coda è attualmente caricata, verrà rimossa. Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) play |
Consente di avviare (o riprendere) la riproduzione dell'elemento multimediale corrente.
La riproduzione inizia sempre all'inizio dello stream. Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) playWithCustomData: | (nullable id) | customData |
Consente di avviare (o riprendere) la riproduzione dell'elemento multimediale corrente.
La riproduzione inizia sempre all'inizio dello stream. Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) skipAd |
Invia una richiesta per saltare l'annuncio in riproduzione.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4,3
- (GCKRequest *) seekWithOptions: | (GCKMediaSeekOptions *) | options |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Parameters
-
options The seek options for the request.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4,0
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Parameters
-
position The new position from the beginning of the stream.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza il valore cercareWithOptions:.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza il valore cercareWithOptions:.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
customData: | (nullable id) | customData | |
Cerca una nuova posizione all'interno dell'elemento multimediale corrente.
Se lo stato multimediale corrente non è disponibile, la richiesta avrà esito negativo.
- 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza il valore cercareWithOptions:.
- (GCKRequest *) queueFetchItemIDs |
Richiedi l'elenco di ID elemento per la coda.
I risultati vengono passati al callback GCKRemoteMediaClientDelegate::remoteMediaClient:didRicezioneQueueItemIDs:.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4.1
- (GCKRequest *) queueFetchItemsForIDs: | (NSArray< NSNumber * > *) | queueItemIDs |
Richiedi informazioni complete per gli elementi della coda con gli ID elemento specificati.
I risultati vengono passati al callback GCKRemoteMediaClientDelegate::remoteMediaClient:didRicezioneQueueItem:
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Dal
- 4.1
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi 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.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- Deprecated:
- Utilizza loadMediaWithLoadRequestData:.
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
withOptions: | (GCKMediaQueueLoadOptions *) | options | |
Viene caricata e, facoltativamente, viene avviata la riproduzione di una nuova coda di elementi multimediali.
È consigliabile utilizzare invece loadMediaWithLoadRequestData:, un comando di caricamento avanzato che supporta il caricamento di un singolo elemento o di una coda con opzioni aggiuntive.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.options The load options used to load the queue items, as defined by GCKMediaQueueLoadOptions
- Dal
- 4.3.1
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Consente di inserire un elenco di nuovi elementi 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.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
Consente di inserire un elenco di nuovi elementi 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Metodo di convenienza 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.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Metodo pratico che inserisce un singolo elemento in coda e lo trasforma in 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.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
Metodo pratico che inserisce un singolo elemento in coda e lo trasforma in 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
Aggiorna la coda.
- Parameters
-
queueItems The list of updated items.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (nullable id) | 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
Rimuove un elenco di elementi multimediali dalla coda.
Di conseguenza, se la coda risulta vuota, la sessione multimediale corrente viene terminata.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
customData: | (nullable id) | customData | |
Rimuove un elenco di elementi multimediali dalla coda.
Di conseguenza, se la coda risulta vuota, la sessione multimediale corrente viene terminata.
- 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueRemoveItemWithID: | (NSUInteger) | itemID |
Un metodo pratico per rimuovere un singolo elemento dalla coda.
- Parameters
-
itemID The ID of the item to remove.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
Riordina un elenco di elementi multimediali in 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.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
Riordina un elenco di elementi multimediali in 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Un metodo pratico per spostare un singolo elemento in 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.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID |
Passa all'elemento con l'ID specificato nella coda.
- Parameters
-
itemID The ID of the item to jump to.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (nullable id) | customData | |
Passa 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
Passa 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueNextItem |
Passa all'elemento successivo in coda.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queuePreviousItem |
Passa all'elemento precedente in coda.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
Imposta la modalità di ripetizione della coda.
- Parameters
-
repeatMode The new repeat mode.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) setStreamVolume: | (float) | volume |
Imposta il volume dello stream.
Se non è presente una sessione multimediale corrente, la richiesta avrà esito negativo.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) setStreamVolume: | (float) | volume | |
customData: | (nullable id) | customData | |
Imposta il volume dello stream.
Se non è presente una sessione multimediale corrente, la richiesta avrà esito negativo.
- 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted |
Imposta se l'audio dello stream è disattivato.
Se non è presente una sessione multimediale corrente, la richiesta avrà esito negativo.
- Parameters
-
muted Whether the stream should be muted or unmuted.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) setStreamMuted: | (BOOL) | muted | |
customData: | (nullable id) | customData | |
Imposta se l'audio dello stream è disattivato.
Se non è presente una sessione multimediale corrente, la richiesta avrà esito negativo.
- 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
.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (GCKRequest *) requestStatus |
Richiedi informazioni aggiornate sullo stato dei contenuti multimediali al destinatario.
- Valori restituiti
- L'oggetto GCKRequest per monitorare questa richiesta.
- (NSTimeInterval) approximateStreamPosition |
Restituisce la posizione approssimativa dello stream calcolata in base alle informazioni sull'ultimo stream ricevuto e il tempo di parete trascorso dall'aggiornamento.
Restituisce 0 se il canale non è connesso o se al momento non sono caricati contenuti multimediali.
- (NSTimeInterval) approximateLiveSeekableRangeStart |
Restituisce la posizione iniziale approssimativa dell'intervallo disponibile, calcolata in base alle informazioni relative all'ultimo stream ricevuto e al tempo di parete trascorso dall'aggiornamento.
Restituisce 0 se il canale non è connesso o se al momento non sono caricati contenuti multimediali. Restituisce kGCKInvalidTimeInterval
se lo stream non è un live streaming o non c'è nessun intervallo disponibile.
- Dal
- 4.4.1
- (NSTimeInterval) approximateLiveSeekableRangeEnd |
Restituisce la posizione finale approssimativa dell'intervallo disponibile in base alle informazioni dell'ultimo stream ricevuto e al tempo di parete trascorso dall'aggiornamento.
Restituisce 0 se il canale non è connesso o se al momento non sono caricati contenuti multimediali. Restituisce kGCKInvalidTimeInterval
se lo stream non è un live streaming o non c'è nessun intervallo disponibile.
- Dal
- 4.4.1
- (void) notifyDidStartMediaSession |
Per essere chiamati 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 |
Per essere chiamato dalle sottoclassi ogni volta che l'oggetto mediaStatus cambia del client.
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 |
Per essere chiamato dalle sottoclassi ogni volta che GCKMediaStatus::preloadedItemID delle GCKMediaStatus del client cambia.
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateMetadata |
Per essere chiamati dalle sottoclassi ogni volta che i metadati cambiano.
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidReceiveQueueItemIDs: | (NSArray< NSNumber * > *) | itemIDs |
Per essere chiamato dalle sottoclassi ogni volta che viene ricevuto l'elenco degli ID elemento della coda multimediale.
- Parameters
-
itemIDs The list of queue item IDs.
- Dal
- 4.1
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidInsertQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
beforeItemWithID: | (GCKMediaQueueItemID) | beforeItemID | |
Per essere chiamato dalle sottoclassi ogni volta che una coda contigue di elementi della coda è stata inserita in coda.
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were inserted. beforeItemID The ID of the queue item in front of which the new items were inserted, or kGCKInvalidQueueItemID if the items were appended to the end of the queue.
- Dal
- 4.1
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidUpdateQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
Per essere chiamati dalle sottoclassi ogni volta che nella coda sono stati aggiornati elementi di coda esistenti.
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were updated.
- Dal
- 4.1
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidRemoveQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
Per essere chiamati dalle sottoclassi ogni volta che una coda contigue di elementi della coda è stata rimossa dalla coda.
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were removed.
- Dal
- 4.1
Fornito dalla categoria GCKRemoteMediaClient(Protected).
- (void) notifyDidReceiveQueueItems: | (NSArray< GCKMediaQueueItem * > *) | items |
Per essere chiamato da una sottoclasse ogni volta che vengono ricevuti elementi di coda.
- Parameters
-
items The list of queue items.
- Dal
- 4.1
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.
|
readnonatomicstrong |
La coda multimediale.
- Dal
- 4.3.4
|
readnonatomicassign |
Il tempo trascorso dall'ultimo aggiornamento dello stato dei contenuti multimediali.
Se lo stato dei contenuti multimediali non è stato ancora ricevuto, questo valore sarà NAN.
|
readnonatomicassign |
Un flag che indica se il client sta riproducendo un live streaming.
- Dal
- 4.4.1
|
readwritenonatomicweak |
Un delegato in grado di estrarre informazioni sulle interruzioni pubblicitarie dai dati personalizzati in un oggetto GCKMediaStatus.
- Deprecated:
- Usa invece GCKAdBreakStatus.