Classe GCKRemoteMediaClient

Referência da classe GCKRemoteMediaClient

Visão geral

Uma classe para controlar a reprodução de mídia em um receptor do Google Cast.

Essa classe oferece a mesma funcionalidade que a GCKMediaControlChannel descontinuada, que ela envolve, mas com uma API mais conveniente. As principais diferenças são as seguintes:

  • Cada solicitação é representada por um objeto GCKRequest que pode ser rastreado com um delegado dedicado.
  • O GCKRemoteMediaClient é compatível com vários listeners em vez de um único delegado.
Desde
3.0

Herda o NSObject.

Resumo do método de instância

(void) - addListener:
 Adiciona um listener à lista de listeners deste objeto. Mais...
 
(void) - removeListener:
 Remove um listener da lista de listeners deste objeto. Mais...
 
(GCKRequest *) - loadMedia:
 Carrega e inicia a reprodução de um novo item de mídia. Mais...
 
(GCKRequest *) - loadMedia:autoplay:
 Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia. Mais...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:
 Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia. Mais...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:customData:
 Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia. Mais...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:
 Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia. Mais...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:customData:
 Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia. Mais...
 
(GCKRequest *) - setActiveTrackIDs:
 Define as faixas ativas. Mais...
 
(GCKRequest *) - setTextTrackStyle:
 Define o estilo da faixa de texto. Mais...
 
(GCKRequest *) - pause
 Pausa a reprodução do item de mídia atual. Mais...
 
(GCKRequest *) - pauseWithCustomData:
 Pausa a reprodução do item de mídia atual. Mais...
 
(GCKRequest *) - stop
 Interrompe a reprodução do item de mídia atual. Mais...
 
(GCKRequest *) - stopWithCustomData:
 Interrompe a reprodução do item de mídia atual. Mais...
 
(GCKRequest *) - play
 Inicia (ou retoma) a reprodução do item de mídia atual. Mais...
 
(GCKRequest *) - playWithCustomData:
 Inicia (ou retoma) a reprodução do item de mídia atual. Mais...
 
(GCKRequest *) - seekToTimeInterval:
 Procura uma nova posição no item de mídia atual. Mais...
 
(GCKRequest *) - seekToTimeInterval:resumeState:
 Procura uma nova posição no item de mídia atual. Mais...
 
(GCKRequest *) - seekToTimeInterval:resumeState:customData:
 Procura uma nova posição no item de mídia atual. Mais...
 
(GCKRequest *) - queueLoadItems:startIndex:repeatMode:
 Carrega e, opcionalmente, inicia a reprodução de uma nova fila de itens de mídia. Mais...
 
(GCKRequest *) - queueLoadItems:startIndex:repeatMode:customData:
 Carrega e, opcionalmente, inicia a reprodução de uma nova fila de itens de mídia. Mais...
 
(GCKRequest *) - queueLoadItems:startIndex:playPosition:repeatMode:customData:
 Carrega e, opcionalmente, inicia a reprodução de uma nova fila de itens de mídia. Mais...
 
(GCKRequest *) - queueInsertItems:beforeItemWithID:
 Insere uma lista de novos itens de mídia na fila. Mais...
 
(GCKRequest *) - queueInsertItems:beforeItemWithID:customData:
 Insere uma lista de novos itens de mídia na fila. Mais...
 
(GCKRequest *) - queueInsertItem:beforeItemWithID:
 Um método prático que insere um único item na fila. Mais...
 
(GCKRequest *) - queueInsertAndPlayItem:beforeItemWithID:
 Um método de conveniência que insere um único item na fila e o torna o item atual. Mais...
 
(GCKRequest *) - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData:
 Um método de conveniência que insere um único item na fila e o torna o item atual. Mais...
 
(GCKRequest *) - queueUpdateItems:
 Atualiza a fila. Mais...
 
(GCKRequest *) - queueUpdateItems:customData:
 Atualiza a fila. Mais...
 
(GCKRequest *) - queueRemoveItemsWithIDs:
 Remove uma lista de itens de mídia da fila. Mais...
 
(GCKRequest *) - queueRemoveItemsWithIDs:customData:
 Remove uma lista de itens de mídia da fila. Mais...
 
(GCKRequest *) - queueRemoveItemWithID:
 Um método prático que remove um único item da fila. Mais...
 
(GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:
 Reordena uma lista de itens de mídia na fila. Mais...
 
(GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:customData:
 Reordena uma lista de itens de mídia na fila. Mais...
 
(GCKRequest *) - queueMoveItemWithID:beforeItemWithID:
 Um método prático que move um único item na fila. Mais...
 
(GCKRequest *) - queueJumpToItemWithID:
 Pula para o item com o ID especificado na fila. Mais...
 
(GCKRequest *) - queueJumpToItemWithID:customData:
 Pula para o item com o ID especificado na fila. Mais...
 
(GCKRequest *) - queueJumpToItemWithID:playPosition:customData:
 Pula para o item com o ID especificado na fila. Mais...
 
(GCKRequest *) - queueNextItem
 Passa para o próximo item na fila. Mais...
 
(GCKRequest *) - queuePreviousItem
 Vai para o item anterior na fila. Mais...
 
(GCKRequest *) - queueSetRepeatMode:
 Define o modo de repetição da fila. Mais...
 
(GCKRequest *) - setStreamVolume:
 Define o volume da transmissão. Mais...
 
(GCKRequest *) - setStreamVolume:customData:
 Define o volume da transmissão. Mais...
 
(GCKRequest *) - setStreamMuted:
 Define se o stream está sem som. Mais...
 
(GCKRequest *) - setStreamMuted:customData:
 Define se o stream está sem som. Mais...
 
(GCKRequest *) - requestStatus
 Solicita informações atualizadas sobre o status da mídia do receptor. Mais...
 
(NSTimeInterval) - approximateStreamPosition
 Retorna a posição aproximada da transmissão, calculada com base nas últimas informações recebidas e no tempo decorrido desde a atualização. Mais...
 
(void) - notifyDidStartMediaSession
 Será chamado por subclasses sempre que uma sessão de mídia começar, ou seja, logo depois que uma nova mídia for carregada com sucesso no player remoto. Mais...
 
(void) - notifyDidUpdateMediaStatus
 Para ser chamado por subclasses sempre que o objeto mediaStatus do cliente mudar. Mais...
 
(void) - notifyDidUpdateQueue
 Para ser chamado por subclasses sempre que a fila de mídia gerenciada pelo cliente mudar. Mais...
 
(void) - notifyDidUpdatePreloadStatus
 Ser chamado por subclasses sempre que o GCKMediaStatus::preloadedItemID do mediaStatus do cliente mudar. Mais...
 
(void) - notifyDidUpdateMetadata
 Para ser chamado por subclasses sempre que os metadados mudarem. Mais...
 

Resumo da propriedade

BOOL connected
 Uma flag que indica se este objeto está conectado a uma sessão. Mais...
 
GCKMediaStatusmediaStatus
 O status atual da mídia, conforme informado pelo canal de controle de mídia. Mais...
 
NSTimeInterval timeSinceLastMediaStatusUpdate
 A quantidade de tempo que passou desde que a última atualização do status da mídia foi recebida. Mais...
 
id< GCKRemoteMediaClientAdInfoParserDelegateadInfoParserDelegate
 Um delegado capaz de extrair informações de um intervalo de publicidade dos dados personalizados em um objeto GCKMediaStatus. Mais...
 

Detalhes do método

- (void) addListener: (id< GCKRemoteMediaClientListener >)  listener

Adiciona um listener à lista de listeners deste objeto.

Parameters
listenerThe listener to add.
- (void) removeListener: (id< GCKRemoteMediaClientListener >)  listener

Remove um listener da lista de listeners deste objeto.

Parameters
listenerThe listener to remove.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo

Carrega e inicia a reprodução de um novo item de mídia.

Parameters
mediaInfoAn object describing the media item to load.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay 

Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition 

Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs 

Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
activeTrackIDsAn array of integers specifying the active tracks. May be nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs
customData: (id __nullable)  customData 

Carrega e, opcionalmente, inicia a reprodução de um novo item de mídia.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
activeTrackIDsAn array of integers specifying the active tracks. May be nil.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) setActiveTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs

Define as faixas ativas.

A solicitação vai falhar se não houver um status de mídia atual.

Parameters
activeTrackIDsAn array of integers specifying the active tracks. May be empty or nil to disable any currently active tracks.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) setTextTrackStyle: (GCKMediaTextTrackStyle *__nullable)  textTrackStyle

Define o estilo da faixa de texto.

A solicitação vai falhar se não houver um status de mídia atual.

Parameters
textTrackStyleThe text track style. The style will not be changed if this is nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) pause

Pausa a reprodução do item de mídia atual.

A solicitação vai falhar se não houver um status de mídia atual.

Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) pauseWithCustomData: (id __nullable)  customData

Pausa a reprodução do item de mídia atual.

A solicitação vai falhar se não houver um status de mídia atual.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) stop

Interrompe a reprodução do item de mídia atual.

Se uma fila estiver carregada, ela será removida. A solicitação vai falhar se não houver um status de mídia atual.

Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) stopWithCustomData: (id __nullable)  customData

Interrompe a reprodução do item de mídia atual.

Se uma fila estiver carregada, ela será removida. A solicitação vai falhar se não houver um status de mídia atual.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) play

Inicia (ou retoma) a reprodução do item de mídia atual.

A reprodução sempre começa no início da transmissão. A solicitação vai falhar se não houver um status de mídia atual.

Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) playWithCustomData: (id __nullable)  customData

Inicia (ou retoma) a reprodução do item de mídia atual.

A reprodução sempre começa no início da transmissão. A solicitação vai falhar se não houver um status de mídia atual.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position

Procura uma nova posição no item de mídia atual.

A solicitação vai falhar se não houver um status de mídia atual.

Parameters
positionThe new position from the beginning of the stream.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position
resumeState: (GCKMediaResumeState resumeState 

Procura uma nova posição no item de mídia atual.

A solicitação vai falhar se não houver um status de mídia atual.

Parameters
positionThe new position interval from the beginning of the stream.
resumeStateThe action to take after the seek operation has finished.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position
resumeState: (GCKMediaResumeState resumeState
customData: (id __nullable)  customData 

Procura uma nova posição no item de mídia atual.

A solicitação vai falhar se não houver um status de mídia atual.

Parameters
positionThe new position from the beginning of the stream.
resumeStateThe action to take after the seek operation has finished.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: (GCKMediaRepeatMode repeatMode 

Carrega e, opcionalmente, inicia a reprodução de uma nova fila de itens de mídia.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
repeatModeThe repeat mode for playing the queue.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData 

Carrega e, opcionalmente, inicia a reprodução de uma nova fila de itens de mídia.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
repeatModeThe repeat mode for playing the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
playPosition: (NSTimeInterval)  playPosition
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData 

Carrega e, opcionalmente, inicia a reprodução de uma nova fila de itens de mídia.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used.
repeatModeThe repeat mode for playing the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID 

Insere uma lista de novos itens de mídia na fila.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to insert. Must not be nil or empty.
beforeItemIDThe ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData 

Insere uma lista de novos itens de mídia na fila.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to insert. Must not be nil or empty.
beforeItemIDID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueInsertItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID 

Um método prático que insere um único item na fila.

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueInsertAndPlayItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID 

Um método de conveniência que insere um único item na fila e o torna o item atual.

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueInsertAndPlayItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

Um método de conveniência que insere um único item na fila e o torna o item atual.

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems

Atualiza a fila.

Parameters
queueItemsThe list of updated items.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
customData: (id __nullable)  customData 

Atualiza a fila.

Parameters
queueItemsThe list of updated items.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs

Remove uma lista de itens de mídia da fila.

Se a fila ficar vazia como resultado, a sessão de mídia atual será encerrada.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs
customData: (id __nullable)  customData 

Remove uma lista de itens de mídia da fila.

Se a fila ficar vazia como resultado, a sessão de mídia atual será encerrada.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueRemoveItemWithID: (NSUInteger)  itemID

Um método prático que remove um único item da fila.

Parameters
itemIDThe ID of the item to remove.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID 

Reordena uma lista de itens de mídia na fila.

Parameters
queueItemIDsAn array of media item IDs identifying the items to reorder. Must not be nil or empty.
beforeItemIDID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be appended at the end of the queue.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData 

Reordena uma lista de itens de mídia na fila.

Parameters
queueItemIDsAn array of media item IDs identifying the items to reorder. Must not be nil or empty.
beforeItemIDThe ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be moved to the end of the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueMoveItemWithID: (NSUInteger)  itemID
beforeItemWithID: (NSUInteger)  beforeItemID 

Um método prático que move um único item na fila.

Parameters
itemIDThe ID of the item to move.
beforeItemIDThe ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the item will be moved to the end of the queue.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID

Pula para o item com o ID especificado na fila.

Parameters
itemIDThe ID of the item to jump to.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID
customData: (id __nullable)  customData 

Pula para o item com o ID especificado na fila.

Parameters
itemIDThe ID of the item to jump to.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

Pula para o item com o ID especificado na fila.

Parameters
itemIDThe ID of the item to jump to.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueNextItem

Passa para o próximo item na fila.

Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queuePreviousItem

Vai para o item anterior na fila.

Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) queueSetRepeatMode: (GCKMediaRepeatMode repeatMode

Define o modo de repetição da fila.

Parameters
repeatModeThe new repeat mode.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) setStreamVolume: (float)  volume

Define o volume da transmissão.

A solicitação vai falhar se não houver uma sessão de mídia atual.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) setStreamVolume: (float)  volume
customData: (id __nullable)  customData 

Define o volume da transmissão.

A solicitação vai falhar se não houver uma sessão de mídia atual.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) setStreamMuted: (BOOL)  muted

Define se o stream está sem som.

A solicitação vai falhar se não houver uma sessão de mídia atual.

Parameters
mutedWhether the stream should be muted or unmuted.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) setStreamMuted: (BOOL)  muted
customData: (id __nullable)  customData 

Define se o stream está sem som.

A solicitação vai falhar se não houver uma sessão de mídia atual.

Parameters
mutedWhether the stream should be muted or unmuted.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (GCKRequest *) requestStatus

Solicita informações atualizadas sobre o status da mídia do receptor.

Retorna
O objeto GCKRequest para rastrear esta solicitação.
- (NSTimeInterval) approximateStreamPosition

Retorna a posição aproximada da transmissão, calculada com base nas últimas informações recebidas e no tempo decorrido desde a atualização.

Retorna 0 se o canal não estiver conectado ou se nenhuma mídia estiver carregada no momento.

- (void) notifyDidStartMediaSession

Será chamado por subclasses sempre que uma sessão de mídia começar, ou seja, logo depois que uma nova mídia for carregada com sucesso no player remoto.

Fornecido pela categoria GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdateMediaStatus

Para ser chamado por subclasses sempre que o objeto mediaStatus do cliente mudar.

Fornecido pela categoria GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdateQueue

Para ser chamado por subclasses sempre que a fila de mídia gerenciada pelo cliente mudar.

Fornecido pela categoria GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdatePreloadStatus

Ser chamado por subclasses sempre que o GCKMediaStatus::preloadedItemID do mediaStatus do cliente mudar.

Fornecido pela categoria GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdateMetadata

Para ser chamado por subclasses sempre que os metadados mudarem.

Fornecido pela categoria GCKRemoteMediaClient(Protected).

Detalhes da propriedade

- (BOOL) connected
readnonatomicassign

Uma flag que indica se este objeto está conectado a uma sessão.

- (GCKMediaStatus*) mediaStatus
readnonatomicstrong

O status atual da mídia, conforme informado pelo canal de controle de mídia.

- (NSTimeInterval) timeSinceLastMediaStatusUpdate
readnonatomicassign

A quantidade de tempo que passou desde que a última atualização do status da mídia foi recebida.

Se uma solicitação de status estiver em andamento, esse valor será 0.

- (id<GCKRemoteMediaClientAdInfoParserDelegate>) adInfoParserDelegate
readwritenonatomicweak

Um delegado capaz de extrair informações de um intervalo de publicidade dos dados personalizados em um objeto GCKMediaStatus.

Deprecated:
Use GCKAdBreakStatus.