GCKRemoteMediaClient クラス

コレクションでコンテンツを整理 必要に応じて、コンテンツの保存と分類を行います。
GCKRemoteMediaClient クラス リファレンス

概要

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

このオブジェクトのインスタンスは、プロパティ GCKSession::remoteMediaClient として利用できます。

シンセ
3.0

NSObject を継承します。

インスタンス メソッドの概要

(void) - addListener:
 このオブジェクトのリスナーリストにリスナーを追加します。その他...
 
(void) - removeListener:
 このオブジェクトのリスナーリストから、リスナーを削除します。その他...
 
(GCKRequest *) - loadMediaWithLoadRequestData:
 メディア アイテムまたはリクエスト データのあるメディア アイテムのキューを読み込んで再生を開始します。その他...
 
(GCKRequest *) - loadMedia:
 デフォルトのオプションを使用して、新しいメディア アイテムを読み込んで再生します。その他...
 
(GCKRequest *) - loadMedia:withOptions:
 指定されたオプションで新しいメディア アイテムの読み込みと再生を開始します。その他...
 
(GCKRequest *) - loadMedia:autoplay:
 新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:
 新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:customData:
 新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:
 新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:customData:
 新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - setPlaybackRate:
 現在のメディア セッションの再生速度を設定します。その他...
 
(GCKRequest *) - setPlaybackRate:customData:
 現在のメディア セッションの再生速度を設定します。その他...
 
(GCKRequest *) - setActiveTrackIDs:
 アクティブなトラックを設定します。その他...
 
(GCKRequest *) - setTextTrackStyle:
 テキスト トラックのスタイルを設定します。その他...
 
(GCKRequest *) - pause
 現在のメディア アイテムの再生を一時停止します。その他...
 
(GCKRequest *) - pauseWithCustomData:
 現在のメディア アイテムの再生を一時停止します。その他...
 
(GCKRequest *) - stop
 現在のメディア アイテムの再生を停止します。その他...
 
(GCKRequest *) - stopWithCustomData:
 現在のメディア アイテムの再生を停止します。その他...
 
(GCKRequest *) - play
 現在のメディア アイテムの再生を開始(または再開)します。その他...
 
(GCKRequest *) - playWithCustomData:
 現在のメディア アイテムの再生を開始(または再開)します。その他...
 
(GCKRequest *) - skipAd
 再生中の広告をスキップするリクエストを送信します。その他...
 
(GCKRequest *) - seekWithOptions:
 現在のメディア アイテム内の新しい位置をシークします。その他...
 
(GCKRequest *) - seekToTimeInterval:
 現在のメディア アイテム内の新しい位置をシークします。その他...
 
(GCKRequest *) - seekToTimeInterval:resumeState:
 現在のメディア アイテム内の新しい位置をシークします。その他...
 
(GCKRequest *) - seekToTimeInterval:resumeState:customData:
 現在のメディア アイテム内の新しい位置をシークします。その他...
 
(GCKRequest *) - queueFetchItemIDs
 キューのアイテム ID のリストをリクエストします。その他...
 
(GCKRequest *) - queueFetchItemsForIDs:
 指定されたアイテム ID を持つキューアイテムの詳細情報をリクエストします。その他...
 
(GCKRequest *) - queueLoadItems:startIndex:repeatMode:
 メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - queueLoadItems:startIndex:repeatMode:customData:
 メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - queueLoadItems:startIndex:playPosition:repeatMode:customData:
 メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。その他...
 
(GCKRequest *) - queueLoadItems:withOptions:
 メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。その他...
 
(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:
 キュー内のアイテムを 1 つだけ移動する便利なメソッド。その他...
 
(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
 最後に受信したストリーム情報と、その更新後の経過時間から算出したおおよそのストリーム位置を返します。その他...
 
(NSTimeInterval) - approximateLiveSeekableRangeStart
 最後に受信したストリーム情報と、その更新後の経過時間から計算された、シーク可能な範囲のおおよその開始位置を返します。その他...
 
(NSTimeInterval) - approximateLiveSeekableRangeEnd
 最後に受信したストリーム情報と、その更新後の経過時間から計算された、シーク可能な範囲のおおよその終了位置を返します。その他...
 
(void) - notifyDidStartMediaSession
 サブクラスがメディア セッションを開始するたびに、つまりリモート プレーヤーに新しいメディアが正常に読み込まれた直後に呼び出されます。その他...
 
(void) - notifyDidUpdateMediaStatus
 クライアントの mediaStatus オブジェクトが変更されるたびに、サブクラスによって呼び出されます。その他...
 
(void) - notifyDidUpdateQueue
 クライアントによって管理されるメディアキューが変更されるたびに、サブクラスによって呼び出されます。その他...
 
(void) - notifyDidUpdatePreloadStatus
 クライアントの GCKMediaStatusGCKMediaStatus::preloadedItemID が変更されたときに、サブクラスによって呼び出されます。その他...
 
(void) - notifyDidUpdateMetadata
 メタデータが変更されるたびにサブクラスで呼び出される。その他...
 
(void) - notifyDidReceiveQueueItemIDs:
 メディアキュー アイテム ID のリストを受け取るたびにサブクラスで呼び出されます。その他...
 
(void) - notifyDidInsertQueueItemsWithIDs:beforeItemWithID:
 連続したキュー項目がキューに挿入されるたびに、サブクラスによって呼び出されます。その他...
 
(void) - notifyDidUpdateQueueItemsWithIDs:
 キューで既存のキュー項目が更新されるたびに、サブクラスによって呼び出されます。その他...
 
(void) - notifyDidRemoveQueueItemsWithIDs:
 連続したキュー項目がキューから削除されたときに、サブクラスによって呼び出されます。その他...
 
(void) - notifyDidReceiveQueueItems:
 キュー項目が受信されるたびにサブクラスによって呼び出されます。その他...
 

プロパティの概要

BOOL connected
 このオブジェクトがセッションに接続されているかどうかを示すフラグ。その他...
 
GCKMediaStatusmediaStatus
 メディア コントロール チャネルによって報告された現在のメディアのステータス。その他...
 
GCKMediaQueuemediaQueue
 メディアキュー。その他...
 
NSTimeInterval timeSinceLastMediaStatusUpdate
 前回のメディア ステータスの更新を受信してから経過した時間です。その他...
 
BOOL playingLiveStream
 このクライアントがライブ ストリームを再生しているかどうかを示します。その他...
 
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 *) loadMediaWithLoadRequestData: (GCKMediaLoadRequestData *)  requestData

メディア アイテムまたはリクエスト データのあるメディア アイテムのキューを読み込んで再生を開始します。

Parameters
requestDataDescribes the media load request.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
シンセ
4.4.1
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo

デフォルトのオプションを使用して、新しいメディア アイテムを読み込んで再生します。

代わりに loadMediaWithLoadRequestData: を使用することをおすすめします。これは高度なオプションのコマンドで、1 つのアイテムやキューに他のオプションを読み込む機能をサポートします。

Parameters
mediaInfoDescribes the media item to load.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
withOptions: (GCKMediaLoadOptions *)  options 

指定されたオプションで新しいメディア アイテムの読み込みと再生を開始します。

代わりに loadMediaWithLoadRequestData: を使用することをおすすめします。これは高度なオプションのコマンドで、1 つのアイテムやキューに他のオプションを読み込む機能をサポートします。

Parameters
mediaInfoDescribes the media item to load.
optionsThe load options for this request.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
シンセ
4.0
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay 

新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。

Parameters
mediaInfoDescribes the media item to load.
autoplayWhether playback should start immediately.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition 

新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。

Parameters
mediaInfoDescribes the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
customData: (nullable id)  customData 

新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。

Parameters
mediaInfoDescribes 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 オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (nullable NSArray< NSNumber * > *)  activeTrackIDs 

新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。

Parameters
mediaInfoDescribes 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 オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (nullable NSArray< NSNumber * > *)  activeTrackIDs
customData: (nullable id)  customData 

新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。

Parameters
mediaInfoDescribes 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 オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) setPlaybackRate: (float)  playbackRate

現在のメディア セッションの再生速度を設定します。

Parameters
playbackRateThe new playback rate.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
シンセ
4.0
- (GCKRequest *) setPlaybackRate: (float)  playbackRate
customData: (nullable id)  customData 

現在のメディア セッションの再生速度を設定します。

Parameters
playbackRateThe new playback rate, which must be between GCKMediaLoadOptions::kGCKMediaMinPlaybackRate and GCKMediaLoadOptions::kGCKMediaMaxPlaybackRate.
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 オブジェクト。
シンセ
4.0
- (GCKRequest *) setActiveTrackIDs: (nullable NSArray< NSNumber * > *)  activeTrackIDs

アクティブなトラックを設定します。

現在のメディア ステータスがない場合、リクエストは失敗します。

Parameters
activeTrackIDsAn array of integers specifying the active tracks. May be empty or nil to disable any currently active tracks.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) setTextTrackStyle: (nullable GCKMediaTextTrackStyle *)  textTrackStyle

テキスト トラックのスタイルを設定します。

現在のメディア ステータスがない場合、リクエストは失敗します。

Parameters
textTrackStyleThe text track style. The style will not be changed if this is nil.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) pause

現在のメディア アイテムの再生を一時停止します。

現在のメディア ステータスがない場合、リクエストは失敗します。

戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) pauseWithCustomData: (nullable id)  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: (nullable id)  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: (nullable id)  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 *) skipAd

再生中の広告をスキップするリクエストを送信します。

戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
シンセ
4.3
- (GCKRequest *) seekWithOptions: (GCKMediaSeekOptions *)  options

現在のメディア アイテム内の新しい位置をシークします。

現在のメディア ステータスがない場合、リクエストは失敗します。

Parameters
optionsThe seek options for the request.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
シンセ
4.0
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position

現在のメディア アイテム内の新しい位置をシークします。

現在のメディア ステータスがない場合、リクエストは失敗します。

Parameters
positionThe new position from the beginning of the stream.
戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
Deprecated:
seeWithOptions: を使用します。
- (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 オブジェクト。
Deprecated:
seeWithOptions: を使用します。
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position
resumeState: (GCKMediaResumeState resumeState
customData: (nullable id)  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 オブジェクト。
Deprecated:
seeWithOptions: を使用します。
- (GCKRequest *) queueFetchItemIDs

キューのアイテム ID のリストをリクエストします。

結果は、デリゲート コールバック GCKRemoteMediaClientDelegate::remoteMediaClient:didReceiveQueueItemIDs: に渡されます。

戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
シンセ
4.1
- (GCKRequest *) queueFetchItemsForIDs: (NSArray< NSNumber * > *)  queueItemIDs

指定されたアイテム ID を持つキューアイテムの詳細情報をリクエストします。

結果は、デリゲート コールバック GCKRemoteMediaClientDelegate::remoteMediaClient:didReceiveQueueItems: に渡されます。

戻り値
このリクエストをトラッキングするための GCKRequest オブジェクト。
シンセ
4.1
- (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 オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (nullable id)  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 オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
playPosition: (NSTimeInterval)  playPosition
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (nullable id)  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 オブジェクト。
Deprecated:
loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
withOptions: (GCKMediaQueueLoadOptions *)  options 

メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。

代わりに loadMediaWithLoadRequestData: を使用することをおすすめします。これは高度なオプションのコマンドで、1 つのアイテムやキューに他のオプションを読み込む機能をサポートします。

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
optionsThe load options used to load the queue items, as defined by GCKMediaQueueLoadOptions
シンセ
4.3.1
- (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: (nullable id)  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: (nullable id)  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: (nullable id)  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: (nullable id)  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: (nullable id)  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 

キュー内のアイテムを 1 つだけ移動する便利なメソッド。

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: (nullable id)  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: (nullable id)  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: (nullable id)  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: (nullable id)  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 を返します。

- (NSTimeInterval) approximateLiveSeekableRangeStart

最後に受信したストリーム情報と、その更新後の経過時間から計算された、シーク可能な範囲のおおよその開始位置を返します。

チャネルが接続されていない場合、またはメディアが現在読み込まれていない場合は、0 を返します。ストリームがライブ ストリームでない場合、またはシーク可能な範囲がない場合、kGCKInvalidTimeInterval を返します。

シンセ
4.4.1
- (NSTimeInterval) approximateLiveSeekableRangeEnd

最後に受信したストリーム情報と、その更新後の経過時間から計算された、シーク可能な範囲のおおよその終了位置を返します。

チャネルが接続されていない場合、またはメディアが現在読み込まれていない場合は、0 を返します。ストリームがライブ ストリームでない場合、またはシーク可能な範囲がない場合、kGCKInvalidTimeInterval を返します。

シンセ
4.4.1
- (void) notifyDidStartMediaSession

サブクラスがメディア セッションを開始するたびに、つまりリモート プレーヤーに新しいメディアが正常に読み込まれた直後に呼び出されます。

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidUpdateMediaStatus

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

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidUpdateQueue

クライアントによって管理されるメディアキューが変更されるたびに、サブクラスによって呼び出されます。

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidUpdatePreloadStatus

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

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidUpdateMetadata

メタデータが変更されるたびにサブクラスで呼び出される。

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidReceiveQueueItemIDs: (NSArray< NSNumber * > *)  itemIDs

メディアキュー アイテム ID のリストを受け取るたびにサブクラスで呼び出されます。

Parameters
itemIDsThe list of queue item IDs.
シンセ
4.1

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidInsertQueueItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs
beforeItemWithID: (GCKMediaQueueItemID beforeItemID 

連続したキュー項目がキューに挿入されるたびに、サブクラスによって呼び出されます。

Parameters
itemIDsThe list of queue item IDs identifying the items that were inserted.
beforeItemIDThe 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.
シンセ
4.1

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidUpdateQueueItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs

キューで既存のキュー項目が更新されるたびに、サブクラスによって呼び出されます。

Parameters
itemIDsThe list of queue item IDs identifying the items that were updated.
シンセ
4.1

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidRemoveQueueItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs

連続したキュー項目がキューから削除されたときに、サブクラスによって呼び出されます。

Parameters
itemIDsThe list of queue item IDs identifying the items that were removed.
シンセ
4.1

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

- (void) notifyDidReceiveQueueItems: (NSArray< GCKMediaQueueItem * > *)  items

キュー項目が受信されるたびにサブクラスによって呼び出されます。

Parameters
itemsThe list of queue items.
シンセ
4.1

カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。

プロパティの詳細

- (BOOL) connected
readnonatomicassign

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

- (GCKMediaStatus*) mediaStatus
readnonatomicstrong

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

- (GCKMediaQueue*) mediaQueue
readnonatomicstrong

メディアキュー。

シンセ
4.3.4
- (NSTimeInterval) timeSinceLastMediaStatusUpdate
readnonatomicassign

前回のメディア ステータスの更新を受信してから経過した時間です。

メディア ステータスがまだ受信されていない場合、この値は NAN になります。

- (BOOL) playingLiveStream
readnonatomicassign

このクライアントがライブ ストリームを再生しているかどうかを示します。

シンセ
4.4.1
- (id<GCKRemoteMediaClientAdInfoParserDelegate>) adInfoParserDelegate
readwritenonatomicweak

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

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