GCKRemoteMediaClient クラス

GCKRemoteMediaClient クラス リファレンス

概要

キャスト レシーバーでのメディア再生を制御するためのクラス。

このクラスは、非推奨の 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:
 キューから 1 つのアイテムを削除するコンビニエンス メソッド。詳細...
 
(GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:
 キュー内のメディア アイテムのリストの順序を変更します。詳細...
 
(GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:customData:
 キュー内のメディア アイテムのリストを並べ替えます。詳細...
 
(GCKRequest *) - queueMoveItemWithID:beforeItemWithID:
 キュー内の単一のアイテムを移動するコンビニエンス メソッド。詳細...
 
(GCKRequest *) - queueJumpToItemWithID:
 キュー内の指定された ID の項目にジャンプします。詳細...
 
(GCKRequest *) - queueJumpToItemWithID:customData:
 キュー内の指定された ID の項目にジャンプします。詳細...
 
(GCKRequest *) - queueJumpToItemWithID:playPosition:customData:
 キュー内の指定された ID の項目にジャンプします。詳細...
 
(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
 クライアントの mediaStatus の GCKMediaStatus::preloadedItemID が変更されるたびに、サブクラスによって呼び出されます。詳細...
 
(void) - notifyDidUpdateMetadata
 メタデータが変更されるたびにサブクラスによって呼び出されます。詳細...
 

プロパティの概要

BOOL connected
 このオブジェクトがセッションに接続されているかどうかを示すフラグ。詳細...
 
GCKMediaStatusmediaStatus
 メディア コントロール チャネルから報告された現在のメディア ステータス。詳細...
 
NSTimeInterval timeSinceLastMediaStatusUpdate
 最後のメディア ステータス更新を受信してから経過した時間。詳細...
 
id< GCKRemoteMediaClientAdInfoParserDelegateadInfoParserDelegate
 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

キューから 1 つのアイテムを削除するコンビニエンス メソッド。

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

キュー内の指定された ID のアイテムにジャンプします。

Parameters
itemIDThe ID of the item to jump to.
戻り値
このリクエストを追跡するための GCKRequest オブジェクト。
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID
customData: (id __nullable)  customData 

キュー内の指定された ID のアイテムにジャンプします。

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 

キュー内の指定された ID のアイテムにジャンプします。

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

クライアントの mediaStatus の GCKMediaStatus::preloadedItemID が変更されるたびに、サブクラスによって呼び出されます。

カテゴリ GCKRemoteMediaClient(Protected) で提供されます。

- (void) notifyDidUpdateMetadata

メタデータが変更されるたびにサブクラスによって呼び出されます。

カテゴリ GCKRemoteMediaClient(Protected) で提供されます。

プロパティの詳細

- (BOOL) connected
readnonatomicassign

このオブジェクトがセッションに接続されているかどうかを示すフラグ。

- (GCKMediaStatus*) mediaStatus
readnonatomicstrong

メディア コントロール チャネルから報告された現在のメディア ステータス。

- (NSTimeInterval) timeSinceLastMediaStatusUpdate
readnonatomicassign

メディア ステータスの更新が最後に受信されてからの経過時間。

ステータス リクエストが現在進行中の場合は 0 になります。

- (id<GCKRemoteMediaClientAdInfoParserDelegate>) adInfoParserDelegate
readwritenonatomicweak

GCKMediaStatus オブジェクトのカスタムデータから広告ブレーク情報を抽出できるデリゲート。

Deprecated:
代わりに GCKAdBreakStatus を使用してください。