概要
キャスト レシーバーでのメディア再生を制御するためのクラス。
このオブジェクトのインスタンスは、プロパティ GCKSession::remoteMediaClient として利用できます。
- シンセ
- 3.0
NSObject を継承します。
プロパティの概要 | |
BOOL | connected |
このオブジェクトがセッションに接続されているかどうかを示すフラグ。その他... | |
GCKMediaStatus * | mediaStatus |
メディア コントロール チャネルによって報告された現在のメディアのステータス。その他... | |
GCKMediaQueue * | mediaQueue |
メディアキュー。その他... | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
前回のメディア ステータスの更新を受信してから経過した時間です。その他... | |
BOOL | playingLiveStream |
このクライアントがライブ ストリームを再生しているかどうかを示します。その他... | |
id < GCKRemoteMediaClientAdInfoParserDelegate > | adInfoParserDelegate |
GCKMediaStatus オブジェクトのカスタムデータから広告ブレーク情報を抽出できるデリゲート。その他... | |
メソッドの詳細
- (void) addListener: | (id< GCKRemoteMediaClientListener >) | listener |
このオブジェクトのリスナーリストにリスナーを追加します。
追加されたリスナーは弱く保持され、予期しない割り当て解除を避けるために保持される必要があります。
- Parameters
-
listener The listener to add.
- (void) removeListener: | (id< GCKRemoteMediaClientListener >) | listener |
このオブジェクトのリスナーリストから、リスナーを削除します。
- Parameters
-
listener The listener to remove.
- (GCKRequest *) loadMediaWithLoadRequestData: | (GCKMediaLoadRequestData *) | requestData |
メディア アイテムまたはリクエスト データのあるメディア アイテムのキューを読み込んで再生を開始します。
- Parameters
-
requestData Describes the media load request.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- シンセ
- 4.4.1
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo |
デフォルトのオプションを使用して、新しいメディア アイテムを読み込んで再生します。
代わりに loadMediaWithLoadRequestData: を使用することをおすすめします。これは高度なオプションのコマンドで、1 つのアイテムやキューに他のオプションを読み込む機能をサポートします。
- Parameters
-
mediaInfo Describes the media item to load.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
withOptions: | (GCKMediaLoadOptions *) | options | |
指定されたオプションで新しいメディア アイテムの読み込みと再生を開始します。
代わりに loadMediaWithLoadRequestData: を使用することをおすすめします。これは高度なオプションのコマンドで、1 つのアイテムやキューに他のオプションを読み込む機能をサポートします。
- Parameters
-
mediaInfo Describes the media item to load. options The load options for this request.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- シンセ
- 4.0
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
customData: | (nullable id) | customData | |
新しいメディア アイテムの読み込みを開始し、必要に応じて再生を開始します。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate |
現在のメディア セッションの再生速度を設定します。
- Parameters
-
playbackRate The new playback rate.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- シンセ
- 4.0
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate | |
customData: | (nullable id) | customData | |
現在のメディア セッションの再生速度を設定します。
- Parameters
-
playbackRate The new playback rate, which must be between GCKMediaLoadOptions::kGCKMediaMinPlaybackRate and GCKMediaLoadOptions::kGCKMediaMaxPlaybackRate. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- シンセ
- 4.0
- (GCKRequest *) setActiveTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs |
アクティブなトラックを設定します。
現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
activeTrackIDs An 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
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) pause |
- (GCKRequest *) pauseWithCustomData: | (nullable id) | customData |
現在のメディア アイテムの再生を一時停止します。
現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) stop |
現在のメディア アイテムの再生を停止します。
読み込み済みのキューは削除されます。現在のメディア ステータスがない場合、リクエストは失敗します。
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) stopWithCustomData: | (nullable id) | customData |
現在のメディア アイテムの再生を停止します。
読み込み済みのキューは削除されます。現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) play |
現在のメディア アイテムの再生を開始(または再開)します。
再生は常にストリームの最初に行われます。現在のメディア ステータスがない場合、リクエストは失敗します。
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) playWithCustomData: | (nullable id) | customData |
現在のメディア アイテムの再生を開始(または再開)します。
再生は常にストリームの最初に行われます。現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) skipAd |
- (GCKRequest *) seekWithOptions: | (GCKMediaSeekOptions *) | options |
現在のメディア アイテム内の新しい位置をシークします。
現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
options The seek options for the request.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- シンセ
- 4.0
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position |
現在のメディア アイテム内の新しい位置をシークします。
現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
position The new position from the beginning of the stream.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- seeWithOptions: を使用します。
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
現在のメディア アイテム内の新しい位置をシークします。
現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- seeWithOptions: を使用します。
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
customData: | (nullable id) | customData | |
現在のメディア アイテム内の新しい位置をシークします。
現在のメディア ステータスがない場合、リクエストは失敗します。
- Parameters
-
position The new position from the beginning of the stream. resumeState The action to take after the seek operation has finished. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための 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
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- Deprecated:
- loadMediaWithLoadRequestData: を使用します。
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
withOptions: | (GCKMediaQueueLoadOptions *) | options | |
メディア アイテムの新しいキューを読み込み、必要に応じて再生を開始します。
代わりに loadMediaWithLoadRequestData: を使用することをおすすめします。これは高度なオプションのコマンドで、1 つのアイテムやキューに他のオプションを読み込む機能をサポートします。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.options The load options used to load the queue items, as defined by GCKMediaQueueLoadOptions
- シンセ
- 4.3.1
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
新しいメディア アイテムのリストをキューに追加します。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID The ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
新しいメディア アイテムのリストをキューに追加します。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
単一のアイテムをキューに挿入する便利なメソッド。
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
単一のアイテムをキューに挿入して現在のアイテムにする便利なメソッド。
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
単一のアイテムをキューに挿入して現在のアイテムにする便利なメソッド。
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
キューを更新します。
- Parameters
-
queueItems The list of updated items.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (nullable id) | customData | |
キューを更新します。
- Parameters
-
queueItems The list of updated items. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
メディア アイテムのリストをキューから削除します。
その結果、キューが空になると、現在のメディア セッションは終了します。
- Parameters
-
itemIDs An 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
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueRemoveItemWithID: | (NSUInteger) | itemID |
1 つのアイテムをキューから削除する便利なメソッド。
- Parameters
-
itemID The ID of the item to remove.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
キュー内のメディア アイテムのリストを並べ替える。
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be appended at the end of the queue.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
キュー内のメディア アイテムのリストを並べ替える。
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID The ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be moved to the end of the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
キュー内のアイテムを 1 つだけ移動する便利なメソッド。
- Parameters
-
itemID The ID of the item to move. beforeItemID The ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the item will be moved to the end of the queue.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID |
キュー内で指定した ID のアイテムにジャンプします。
- Parameters
-
itemID The ID of the item to jump to.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (nullable id) | customData | |
キュー内で指定した ID のアイテムにジャンプします。
- Parameters
-
itemID The ID of the item to jump to. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
キュー内で指定した ID のアイテムにジャンプします。
- Parameters
-
itemID The ID of the item to jump to. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueNextItem |
キュー内の次の項目に移動します。
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queuePreviousItem |
キュー内の前のアイテムに移動します。
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
キューの繰り返しモードを設定します。
- Parameters
-
repeatMode The new repeat mode.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) setStreamVolume: | (float) | volume |
ストリームの音量を設定します。
現在のメディア セッションがない場合、リクエストは失敗します。
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) setStreamVolume: | (float) | volume | |
customData: | (nullable id) | customData | |
ストリームの音量を設定します。
現在のメディア セッションがない場合、リクエストは失敗します。
- Parameters
-
volume The new volume, in the range [0.0 - 1.0]. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) setStreamMuted: | (BOOL) | muted |
ストリームがミュートされるかどうかを設定します。
現在のメディア セッションがない場合、リクエストは失敗します。
- Parameters
-
muted Whether the stream should be muted or unmuted.
- 戻り値
- このリクエストをトラッキングするための GCKRequest オブジェクト。
- (GCKRequest *) setStreamMuted: | (BOOL) | muted | |
customData: | (nullable id) | customData | |
ストリームがミュートされるかどうかを設定します。
現在のメディア セッションがない場合、リクエストは失敗します。
- Parameters
-
muted Whether the stream should be muted or unmuted. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 戻り値
- このリクエストをトラッキングするための 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 |
クライアントの GCKMediaStatus の GCKMediaStatus::preloadedItemID が変更されたときに、サブクラスによって呼び出されます。
カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。
- (void) notifyDidUpdateMetadata |
メタデータが変更されるたびにサブクラスで呼び出される。
カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。
- (void) notifyDidReceiveQueueItemIDs: | (NSArray< NSNumber * > *) | itemIDs |
メディアキュー アイテム ID のリストを受け取るたびにサブクラスで呼び出されます。
- Parameters
-
itemIDs The list of queue item IDs.
- シンセ
- 4.1
カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。
- (void) notifyDidInsertQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
beforeItemWithID: | (GCKMediaQueueItemID) | beforeItemID | |
連続したキュー項目がキューに挿入されるたびに、サブクラスによって呼び出されます。
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were inserted. beforeItemID The ID of the queue item in front of which the new items were inserted, or kGCKInvalidQueueItemID if the items were appended to the end of the queue.
- シンセ
- 4.1
カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。
- (void) notifyDidUpdateQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
キューで既存のキュー項目が更新されるたびに、サブクラスによって呼び出されます。
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were updated.
- シンセ
- 4.1
カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。
- (void) notifyDidRemoveQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
連続したキュー項目がキューから削除されたときに、サブクラスによって呼び出されます。
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were removed.
- シンセ
- 4.1
カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。
- (void) notifyDidReceiveQueueItems: | (NSArray< GCKMediaQueueItem * > *) | items |
キュー項目が受信されるたびにサブクラスによって呼び出されます。
- Parameters
-
items The list of queue items.
- シンセ
- 4.1
カテゴリ GCKRemoteMediaClient(Protected) によって提供されます。
プロパティの詳細
|
readnonatomicassign |
このオブジェクトがセッションに接続されているかどうかを示すフラグ。
|
readnonatomicstrong |
メディア コントロール チャネルによって報告された現在のメディアのステータス。
|
readnonatomicstrong |
メディアキュー。
- シンセ
- 4.3.4
|
readnonatomicassign |
前回のメディア ステータスの更新を受信してから経過した時間です。
メディア ステータスがまだ受信されていない場合、この値は NAN になります。
|
readnonatomicassign |
このクライアントがライブ ストリームを再生しているかどうかを示します。
- シンセ
- 4.4.1
|
readwritenonatomicweak |
GCKMediaStatus オブジェクトのカスタムデータから広告ブレーク情報を抽出できるデリゲート。
- Deprecated:
- 代わりに GCKAdBreakStatus を使用してください。