總覽
這個類別會保留部分媒體的狀態資訊。
繼承 NSObject。實作 <NS copy>。
執行個體方法摘要 | |
(instancetype) | - initWithSessionID:mediaInformation: |
指定初始化器。更多... | |
(BOOL) | - isMediaCommandSupported: |
檢查串流是否支援指定的控制指令。更多... | |
(nullable GCKMediaQueueItem *) | - queueItemAtIndex: |
傳回播放佇列中特定索引的項目。更多... | |
(nullable GCKMediaQueueItem *) | - queueItemWithItemID: |
傳回播放佇列中具有指定項目 ID 的項目。更多... | |
(NSInteger) | - queueIndexForItemID: |
傳回播放佇列中有指定項目 ID 的項目索引,如果佇列中沒有此項目,則傳回 -1。更多... | |
公開屬性 | |
const NSInteger | kGCKMediaCommandPause |
用來表示可以暫停媒體項目的旗標 (位元遮罩)。更多... | |
const NSInteger | kGCKMediaCommandSeek |
標記 (位元遮罩),指出媒體項目支援跳轉功能。更多... | |
const NSInteger | kGCKMediaCommandSetVolume |
標記 (位元遮罩),指出可變更媒體項目的音訊音量。更多... | |
const NSInteger | kGCKMediaCommandToggleMute |
旗標 (位元遮罩) 表示媒體項目的音訊可以設為靜音。更多... | |
const NSInteger | kGCKMediaCommandSkipForward |
旗標 (位元遮罩),指出媒體項目支援快轉功能。更多... | |
const NSInteger | kGCKMediaCommandSkipBackward |
旗標 (位元遮罩) 表示媒體項目支援向後略過。更多... | |
const NSInteger | kGCKMediaCommandQueueNext |
這個標記 (位元遮罩) 表示媒體項目支援移至佇列中的下一個項目。更多... | |
const NSInteger | kGCKMediaCommandQueuePrevious |
這個標記 (位元遮罩) 表示媒體項目支援移至佇列中的上一個項目。更多... | |
const NSInteger | kGCKMediaCommandQueueShuffle |
旗標 (位元遮罩),指出媒體項目支援隨機播放功能。更多... | |
const NSInteger | kGCKMediaCommandSkipAd |
標記 (位元遮罩),指出媒體項目支援略過廣告。更多... | |
const NSInteger | kGCKMediaCommandQueueRepeatAll |
旗標 (位元遮罩) 表示媒體項目的佇列支援無限期的重複情況。更多... | |
const NSInteger | kGCKMediaCommandQueueRepeatOne |
旗標 (位元遮罩),指出媒體項目支援無限期重複。更多... | |
const NSInteger | kGCKMediaCommandQueueRepeat |
旗標 (位元遮罩) 表示媒體項目及其佇列支援無限期重複。更多... | |
const NSInteger | kGCKMediaCommandEditTracks |
旗標 (位元遮罩) 會指出媒體項目的軌跡可供編輯。更多... | |
const NSInteger | kGCKMediaCommandSetPlaybackRate |
旗標 (位元遮罩) 指出可設定媒體項目的播放率。更多... | |
const NSInteger | kGCKMediaCommandLike |
旗標 (位元遮罩) 指出使用者可以表示喜歡媒體項目。更多... | |
const NSInteger | kGCKMediaCommandDislike |
旗標 (位元遮罩) 指出使用者可以不喜歡某個媒體項目。更多... | |
const NSInteger | kGCKMediaCommandFollow |
標記 (位元遮罩),指出使用者可以追蹤媒體項目建立者。更多... | |
const NSInteger | kGCKMediaCommandUnfollow |
旗標 (位元遮罩) :指出使用者可以取消追蹤媒體項目建立者。更多... | |
const NSInteger | kGCKMediaCommandStreamTransfer |
旗標 (位元遮罩) 表示媒體項目支援串流傳輸。更多... | |
方法詳細資料
- (instancetype) initWithSessionID: | (NSInteger) | mediaSessionID | |
mediaInformation: | (nullable GCKMediaInformation *) | mediaInformation | |
指定初始化器。
- Parameters
-
mediaSessionID The media session ID. mediaInformation The media information.
- (BOOL) isMediaCommandSupported: | (NSInteger) | command |
檢查串流是否支援指定的控制指令。
- (nullable GCKMediaQueueItem *) queueItemAtIndex: | (NSUInteger) | index |
傳回播放佇列中特定索引的項目。
- (nullable GCKMediaQueueItem *) queueItemWithItemID: | (NSUInteger) | itemID |
傳回播放佇列中具有指定項目 ID 的項目。
- (NSInteger) queueIndexForItemID: | (NSUInteger) | itemID |
傳回播放佇列中有指定項目 ID 的項目索引,如果佇列中沒有此項目,則傳回 -1。
成員資料說明文件
- (const NSInteger) kGCKMediaCommandPause |
用來表示可以暫停媒體項目的旗標 (位元遮罩)。
- (const NSInteger) kGCKMediaCommandSeek |
標記 (位元遮罩),指出媒體項目支援跳轉功能。
- (const NSInteger) kGCKMediaCommandSetVolume |
標記 (位元遮罩),指出可變更媒體項目的音訊音量。
- (const NSInteger) kGCKMediaCommandToggleMute |
旗標 (位元遮罩) 表示媒體項目的音訊可以設為靜音。
- (const NSInteger) kGCKMediaCommandSkipForward |
旗標 (位元遮罩),指出媒體項目支援快轉功能。
- (const NSInteger) kGCKMediaCommandSkipBackward |
旗標 (位元遮罩) 表示媒體項目支援向後略過。
- (const NSInteger) kGCKMediaCommandQueueNext |
這個標記 (位元遮罩) 表示媒體項目支援移至佇列中的下一個項目。
- (const NSInteger) kGCKMediaCommandQueuePrevious |
這個標記 (位元遮罩) 表示媒體項目支援移至佇列中的上一個項目。
- (const NSInteger) kGCKMediaCommandQueueShuffle |
旗標 (位元遮罩),指出媒體項目支援隨機播放功能。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandSkipAd |
標記 (位元遮罩),指出媒體項目支援略過廣告。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandQueueRepeatAll |
旗標 (位元遮罩) 表示媒體項目的佇列支援無限期的重複情況。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandQueueRepeatOne |
旗標 (位元遮罩),指出媒體項目支援無限期重複。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandQueueRepeat |
旗標 (位元遮罩) 表示媒體項目及其佇列支援無限期重複。
佇列中的項目。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandEditTracks |
旗標 (位元遮罩) 會指出媒體項目的軌跡可供編輯。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandSetPlaybackRate |
旗標 (位元遮罩) 指出可設定媒體項目的播放率。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandLike |
旗標 (位元遮罩) 指出使用者可以表示喜歡媒體項目。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandDislike |
旗標 (位元遮罩) 指出使用者可以不喜歡某個媒體項目。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandFollow |
標記 (位元遮罩),指出使用者可以追蹤媒體項目建立者。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandUnfollow |
旗標 (位元遮罩) :指出使用者可以取消追蹤媒體項目建立者。
- 開始時間
- 4.4.5
- (const NSInteger) kGCKMediaCommandStreamTransfer |
旗標 (位元遮罩) 表示媒體項目支援串流傳輸。
- 開始時間
- 4.4.5
資源詳情
|
readnonatomicassign |
目前的媒體工作階段 ID (如果有的話),否則為 0。
|
readnonatomicassign |
目前的玩家狀態。
|
readnonatomicassign |
說明接收器目前是否正在播放廣告。
|
readnonatomicassign |
目前閒置的原因。
只有在播放器狀態是 GCKMediaPlayerStateIdle 時,這個值才有意義。
|
readnonatomicassign |
取得目前的串流播放速率。
如果串流向後跳轉,則為負值;如果串流暫停,則為 0;如果串流正常播放,則為 1;如果串流向前跳,則值為 1。
|
readnonatomicstrong |
此商品的 GCKMediaInformation。
|
readnonatomicassign |
目前的串流位置,以串流開始時的 NSTimeInterval 值表示。
|
readnonatomicassign |
串流的音量。
|
readnonatomicassign |
串流的靜音狀態。
|
readnonatomicassign |
目前的佇列重複模式。
|
readnonatomicassign |
目前佇列項目的 ID (如果有的話)。
|
readnonatomicassign |
指出佇列中是否有目前項目。
|
readnonatomicweak |
目前佇列項目 (如果有的話)。
|
readnonatomicassign |
檢查目前播放到佇列中的項目後是否有項目。
|
readnonatomicweak |
下一個佇列項目 (如果有的話)。
|
readnonatomicassign |
佇列中目前播放的項目之前是否有項目。
|
readnonatomicassign |
佇列中是否有預先載入的項目。
|
readnonatomicassign |
目前預先載入的項目 ID (如果有的話)。
|
readnonatomicassign |
目前載入的項目 ID (如果有的話)。
|
readnonatomicstrong |
使用中的測試群組 ID 清單。
|
readnonatomicstrong |
影片資訊 (如果有的話)。
- 開始時間
- 3.3
|
readnonatomicstrong |
與媒體狀態相關聯的任何自訂資料。
|
readnonatomicstrong |
目前廣告播放狀態。
- 開始時間
- 3.3
|
readnonatomicassign |
串流的搜尋範圍。
- 開始時間
- 4.4.1
|
readnonatomicassign |
媒體佇列的中繼資料。
- 開始時間
- 4.4.1
|
readnonatomicassign |
傳回播放佇列中的項目數量。