Класс GCKRemoteMediaClient

Справочник по классу GCKRemoteMediaClient

Обзор

Класс для управления воспроизведением мультимедиа на приемнике Cast.

Этот класс предоставляет ту же функциональность, что и устаревший GCKMediaControlChannel , который он обертывает, но с более удобным API. Основные отличия:

  • Каждый запрос представлен объектом GCKRequest , который можно отслеживать с помощью выделенного делегата.
  • GCKRemoteMediaClient поддерживает несколько слушателей, а не одного делегата.
С
3.0

Наследует NSObject.

Резюме метода экземпляра

(void) - addListener:
Добавляет слушателя в список слушателей этого объекта. Более...
(void) - removeListener:
Удаляет слушателя из списка слушателей этого объекта. Более...
( GCKRequest *) - loadMedia:
Загружает и запускает воспроизведение нового элемента мультимедиа. Более...
( GCKRequest *) - loadMedia:autoplay:
Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа. Более...
( GCKRequest *) - loadMedia:autoplay:playPosition:
Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа. Более...
( GCKRequest *) - loadMedia:autoplay:playPosition:customData:
Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа. Более...
( GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:
Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа. Более...
( GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:customData:
Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа. Более...
( GCKRequest *) - setActiveTrackIDs:
Устанавливает активные дорожки. Более...
( GCKRequest *) - setTextTrackStyle:
Устанавливает стиль текстовой дорожки. Более...
( GCKRequest *) - pause
Приостанавливает воспроизведение текущего элемента мультимедиа. Более...
( GCKRequest *) - pauseWithCustomData:
Приостанавливает воспроизведение текущего элемента мультимедиа. Более...
( GCKRequest *) - stop
Останавливает воспроизведение текущего элемента мультимедиа. Более...
( GCKRequest *) - stopWithCustomData:
Останавливает воспроизведение текущего элемента мультимедиа. Более...
( GCKRequest *) - play
Начинает (или возобновляет) воспроизведение текущего элемента мультимедиа. Более...
( GCKRequest *) - playWithCustomData:
Начинает (или возобновляет) воспроизведение текущего элемента мультимедиа. Более...
( GCKRequest *) - seekToTimeInterval:
Переход на новую позицию в текущем элементе мультимедиа. Более...
( GCKRequest *) - seekToTimeInterval:resumeState:
Переход на новую позицию в текущем элементе мультимедиа. Более...
( GCKRequest *) - seekToTimeInterval:resumeState:customData:
Переход на новую позицию в текущем элементе мультимедиа. Более...
( GCKRequest *) - queueLoadItems:startIndex:repeatMode:
Загружает и при необходимости запускает воспроизведение новой очереди элементов мультимедиа. Более...
( GCKRequest *) - queueLoadItems:startIndex:repeatMode:customData:
Загружает и при необходимости запускает воспроизведение новой очереди элементов мультимедиа. Более...
( GCKRequest *) - queueLoadItems:startIndex:playPosition:repeatMode:customData:
Загружает и при необходимости запускает воспроизведение новой очереди элементов мультимедиа. Более...
( GCKRequest *) - queueInsertItems:beforeItemWithID:
Вставляет список новых элементов мультимедиа в очередь. Более...
( GCKRequest *) - queueInsertItems:beforeItemWithID:customData:
Вставляет список новых элементов мультимедиа в очередь. Более...
( GCKRequest *) - queueInsertItem:beforeItemWithID:
Удобный метод, который вставляет один элемент в очередь. Более...
( GCKRequest *) - queueInsertAndPlayItem:beforeItemWithID:
Удобный метод, который вставляет один элемент в очередь и делает его текущим элементом. Более...
( GCKRequest *) - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData:
Удобный метод, который вставляет один элемент в очередь и делает его текущим элементом. Более...
( GCKRequest *) - queueUpdateItems:
Обновляет очередь. Более...
( GCKRequest *) - queueUpdateItems:customData:
Обновляет очередь. Более...
( GCKRequest *) - queueRemoveItemsWithIDs:
Удаляет список элементов мультимедиа из очереди. Более...
( GCKRequest *) - queueRemoveItemsWithIDs:customData:
Удаляет список элементов мультимедиа из очереди. Более...
( GCKRequest *) - queueRemoveItemWithID:
Удобный метод, который удаляет один элемент из очереди. Более...
( GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:
Переупорядочивает список элементов мультимедиа в очереди. Более...
( GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:customData:
Переупорядочить список элементов мультимедиа в очереди. Более...
( GCKRequest *) - queueMoveItemWithID:beforeItemWithID:
Удобный метод, который перемещает один элемент в очереди. Более...
( GCKRequest *) - queueJumpToItemWithID:
Переходит к элементу с указанным идентификатором в очереди. Более...
( GCKRequest *) - queueJumpToItemWithID:customData:
Переходит к элементу с указанным идентификатором в очереди. Более...
( GCKRequest *) - queueJumpToItemWithID:playPosition:customData:
Переходит к элементу с указанным идентификатором в очереди. Более...
( GCKRequest *) - queueNextItem
Переходит к следующему элементу в очереди. Более...
( GCKRequest *) - queuePreviousItem
Переход к предыдущему элементу в очереди. Более...
( GCKRequest *) - queueSetRepeatMode:
Устанавливает режим повторения очереди. Более...
( GCKRequest *) - setStreamVolume:
Устанавливает громкость потока. Более...
( GCKRequest *) - setStreamVolume:customData:
Устанавливает громкость потока. Более...
( GCKRequest *) - setStreamMuted:
Устанавливает, отключен ли поток. Более...
( GCKRequest *) - setStreamMuted:customData:
Устанавливает, отключен ли поток. Более...
( GCKRequest *) - requestStatus
Запрашивает обновленную информацию о состоянии мультимедиа у получателя. Более...
(NSTimeInterval) - approximateStreamPosition
Возвращает приблизительное положение потока, рассчитанное на основе последней полученной информации о потоке и времени, прошедшем с момента обновления. Более...
(void) - notifyDidStartMediaSession
Вызывается подклассами всякий раз, когда начинается сеанс мультимедиа, а именно сразу после того, как новый мультимедиа был успешно загружен на удаленный проигрыватель. Более...
(void) - notifyDidUpdateMediaStatus
Вызывается подклассами каждый раз, когда изменяется объект mediaStatus клиента. Более...
(void) - notifyDidUpdateQueue
Вызывается подклассами каждый раз, когда очередь мультимедиа, управляемая клиентом, изменяется. Более...
(void) - notifyDidUpdatePreloadStatus
Вызывается подклассами всякий раз, когда GCKMediaStatus::preloadedItemID для клиента mediaStatus. Более...
(void) - notifyDidUpdateMetadata
Вызывается подклассами в любое время при изменении метаданных. Более...

Сводка свойств

BOOL  connected
Флаг, указывающий, подключен ли этот объект к сеансу. Более...
GCKMediaStatus mediaStatus
Текущий статус мультимедиа, сообщаемый каналом управления мультимедиа. Более...
NSTimeInterval  timeSinceLastMediaStatusUpdate
Время, прошедшее с момента получения последнего обновления статуса носителя. Более...
id< GCKRemoteMediaClientAdInfoParserDelegate adInfoParserDelegate
Делегат, способный извлекать информацию о рекламной паузе из пользовательских данных в объекте GCKMediaStatus . Более...

Сведения о методе

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

Добавляет слушателя в список слушателей этого объекта.

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

Удаляет слушателя из списка слушателей этого объекта.

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

Загружает и запускает воспроизведение нового элемента мультимедиа.

Parameters
mediaInfoAn object describing the media item to load.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) loadMedia: ( GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay  

Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) loadMedia: ( GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition  

Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа.

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) loadMedia: ( GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData  

Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) loadMedia: ( GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs  

Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) loadMedia: ( GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs
customData: (id __nullable)  customData  

Загружает и при необходимости запускает воспроизведение нового элемента мультимедиа.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) setActiveTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs

Устанавливает активные дорожки.

Запрос завершится ошибкой, если текущий статус носителя отсутствует.

Parameters
activeTrackIDsAn array of integers specifying the active tracks. May be empty or nil to disable any currently active tracks.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) setTextTrackStyle: ( GCKMediaTextTrackStyle *__nullable)  textTrackStyle

Устанавливает стиль текстовой дорожки.

Запрос завершится ошибкой, если текущий статус носителя отсутствует.

Parameters
textTrackStyleThe text track style. The style will not be changed if this is nil .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) pause

Приостанавливает воспроизведение текущего элемента мультимедиа.

Запрос завершится ошибкой, если текущий статус носителя отсутствует.

Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) pauseWithCustomData: (id __nullable)  customData

Приостанавливает воспроизведение текущего элемента мультимедиа.

Запрос завершится ошибкой, если текущий статус носителя отсутствует.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) stop

Останавливает воспроизведение текущего элемента мультимедиа.

Если очередь в данный момент загружена, она будет удалена. Запрос завершится ошибкой, если текущий статус носителя отсутствует.

Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) stopWithCustomData: (id __nullable)  customData

Останавливает воспроизведение текущего элемента мультимедиа.

Если очередь в данный момент загружена, она будет удалена. Запрос завершится ошибкой, если текущий статус носителя отсутствует.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) play

Начинает (или возобновляет) воспроизведение текущего элемента мультимедиа.

Воспроизведение всегда начинается с начала потока. Запрос завершится ошибкой, если текущий статус носителя отсутствует.

Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) playWithCustomData: (id __nullable)  customData

Начинает (или возобновляет) воспроизведение текущего элемента мультимедиа.

Воспроизведение всегда начинается с начала потока. Запрос завершится ошибкой, если текущий статус носителя отсутствует.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position

Переход на новую позицию в текущем элементе мультимедиа.

Запрос завершится ошибкой, если текущий статус носителя отсутствует.

Parameters
positionThe new position from the beginning of the stream.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position
resumeState: ( GCKMediaResumeState resumeState  

Переход на новую позицию в текущем элементе мультимедиа.

Запрос завершится ошибкой, если текущий статус носителя отсутствует.

Parameters
positionThe new position interval from the beginning of the stream.
resumeStateThe action to take after the seek operation has finished.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position
resumeState: ( GCKMediaResumeState resumeState
customData: (id __nullable)  customData  

Переход на новую позицию в текущем элементе мультимедиа.

Запрос завершится ошибкой, если текущий статус носителя отсутствует.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: ( GCKMediaRepeatMode repeatMode  

Загружает и при необходимости запускает воспроизведение новой очереди элементов мультимедиа.

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.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: ( GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData  

Загружает и при необходимости запускает воспроизведение новой очереди элементов мультимедиа.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
playPosition: (NSTimeInterval)  playPosition
repeatMode: ( GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData  

Загружает и при необходимости запускает воспроизведение новой очереди элементов мультимедиа.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID  

Вставляет список новых элементов мультимедиа в очередь.

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.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData  

Вставляет список новых элементов мультимедиа в очередь.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueInsertItem: ( GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID  

Удобный метод, который вставляет один элемент в очередь.

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.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueInsertAndPlayItem: ( GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID  

Удобный метод, который вставляет один элемент в очередь и делает его текущим элементом.

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.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueInsertAndPlayItem: ( GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData  

Удобный метод, который вставляет один элемент в очередь и делает его текущим элементом.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems

Обновляет очередь.

Parameters
queueItemsThe list of updated items.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
customData: (id __nullable)  customData  

Обновляет очередь.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs

Удаляет список элементов мультимедиа из очереди.

Если в результате очередь станет пустой, текущий медиа-сеанс будет прерван.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs
customData: (id __nullable)  customData  

Удаляет список элементов мультимедиа из очереди.

Если в результате очередь станет пустой, текущий медиа-сеанс будет прерван.

Parameters
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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueRemoveItemWithID: (NSUInteger)  itemID

Удобный метод, который удаляет один элемент из очереди.

Parameters
itemIDThe ID of the item to remove.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID  

Переупорядочивает список элементов мультимедиа в очереди.

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.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData  

Переупорядочить список элементов мультимедиа в очереди.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueMoveItemWithID: (NSUInteger)  itemID
beforeItemWithID: (NSUInteger)  beforeItemID  

Удобный метод, который перемещает один элемент в очереди.

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.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID

Переходит к элементу с указанным идентификатором в очереди.

Parameters
itemIDThe ID of the item to jump to.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID
customData: (id __nullable)  customData  

Переходит к элементу с указанным идентификатором в очереди.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData  

Переходит к элементу с указанным идентификатором в очереди.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueNextItem

Переходит к следующему элементу в очереди.

Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queuePreviousItem

Переход к предыдущему элементу в очереди.

Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) queueSetRepeatMode: ( GCKMediaRepeatMode repeatMode

Устанавливает режим повторения очереди.

Parameters
repeatModeThe new repeat mode.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) setStreamVolume: (float)  volume

Устанавливает громкость потока.

Запрос завершится ошибкой, если текущий медиа-сеанс отсутствует.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) setStreamVolume: (float)  volume
customData: (id __nullable)  customData  

Устанавливает громкость потока.

Запрос завершится ошибкой, если текущий медиа-сеанс отсутствует.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) setStreamMuted: (BOOL)  muted

Устанавливает, отключен ли поток.

Запрос завершится ошибкой, если текущий медиа-сеанс отсутствует.

Parameters
mutedWhether the stream should be muted or unmuted.
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) setStreamMuted: (BOOL)  muted
customData: (id __nullable)  customData  

Устанавливает, отключен ли поток.

Запрос завершится ошибкой, если текущий медиа-сеанс отсутствует.

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 .
Возвращает
Объект GCKRequest для отслеживания этого запроса.
- ( GCKRequest *) requestStatus

Запрашивает обновленную информацию о состоянии мультимедиа у получателя.

Возвращает
Объект GCKRequest для отслеживания этого запроса.
- (NSTimeInterval) approximateStreamPosition

Возвращает приблизительное положение потока, рассчитанное на основе последней полученной информации о потоке и времени, прошедшем с момента обновления.

Возвращает 0, если канал не подключен или в данный момент не загружен носитель.

- (void) notifyDidStartMediaSession

Вызывается подклассами всякий раз, когда начинается сеанс мультимедиа, а именно сразу после того, как новый мультимедиа был успешно загружен на удаленный проигрыватель.

Предоставляется категорией GCKRemoteMediaClient(Protected) .

- (void) notifyDidUpdateMediaStatus

Вызывается подклассами каждый раз, когда изменяется объект mediaStatus клиента.

Предоставляется категорией GCKRemoteMediaClient(Protected) .

- (void) notifyDidUpdateQueue

Вызывается подклассами каждый раз, когда очередь мультимедиа, управляемая клиентом, изменяется.

Предоставляется категорией GCKRemoteMediaClient(Protected) .

- (void) notifyDidUpdatePreloadStatus

Вызывается подклассами всякий раз, когда GCKMediaStatus::preloadedItemID для клиента mediaStatus.

Предоставляется категорией GCKRemoteMediaClient(Protected) .

- (void) notifyDidUpdateMetadata

Вызывается подклассами в любое время при изменении метаданных.

Предоставляется категорией GCKRemoteMediaClient(Protected) .

Сведения о собственности

- (BOOL) connected
read nonatomic assign

Флаг, указывающий, подключен ли этот объект к сеансу.

- ( GCKMediaStatus *) mediaStatus
read nonatomic strong

Текущий статус мультимедиа, сообщаемый каналом управления мультимедиа.

- (NSTimeInterval) timeSinceLastMediaStatusUpdate
read nonatomic assign

Время, прошедшее с момента получения последнего обновления статуса носителя.

Если в данный момент выполняется запрос состояния, это будет 0.

- (id< GCKRemoteMediaClientAdInfoParserDelegate >) adInfoParserDelegate
read write nonatomic weak

Делегат, способный извлекать информацию о рекламной паузе из пользовательских данных в объекте GCKMediaStatus .

Deprecated:
Вместо этого используйте GCKAdBreakStatus .