GCKMediaStatus 類別
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
繼承 NSObject。實作 <NSCopying>。
- (BOOL) queueHasNextItem |
|
|
|
- (instancetype) initWithSessionID: |
|
(NSInteger) |
mediaSessionID |
mediaInformation: |
|
(GCKMediaInformation *__nullable) |
mediaInformation |
|
|
| |
指定初始化器。
- Parameters
-
mediaSessionID | The media session ID. |
mediaInformation | The media information. |
- (BOOL) isMediaCommandSupported: |
|
(NSInteger) |
command |
|
- (NSUInteger) queueItemCount |
|
|
|
- (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 |
旗標 (位元遮罩),指出媒體項目是否支援移至佇列中的下一個項目。
- Deprecated:
- 目前尚未實作這個標記。
- (const NSInteger) kGCKMediaCommandQueuePrevious |
這個旗標 (位元遮罩) 表示媒體項目支援移至佇列中的上一個項目。
- Deprecated:
- 目前尚未實作這個標記。
- (NSInteger) mediaSessionID |
|
readnonatomicassign |
目前的閒置原因。
只有在播放器狀態為 GCKMediaPlayerStateIdle 時,這個值才有意義。
取得目前的串流播放速率。
如果串流向後搜尋,這個值會是負數;如果串流暫停,這個值會是 0;如果串流正常播放,這個值會是 1;如果串流向前搜尋,這個值會是其他正數。
- (NSTimeInterval) streamPosition |
|
readnonatomicassign |
目前串流位置,以串流開始時間的 NSTimeInterval 表示。
- (NSUInteger) currentItemID |
|
readnonatomicassign |
- (BOOL) queueHasCurrentItem |
|
readnonatomicassign |
- (BOOL) queueHasPreviousItem |
|
readnonatomicassign |
- (BOOL) queueHasLoadingItem |
|
readnonatomicassign |
- (NSUInteger) preloadedItemID |
|
readnonatomicassign |
- (NSUInteger) loadingItemID |
|
readnonatomicassign |
- (NSArray<NSNumber *>*) activeTrackIDs |
|
readnonatomicstrong |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[],["The `GCKMediaStatus` class provides information about media playback. It manages media queues, including checking for next or previous items, retrieving items by index or ID, and counting the items. It supports media control commands such as pause, seek, volume adjustment, mute, skip forward/backward, and queue navigation. Key properties include session ID, player state, playback rate, stream position, volume, and mute status. It also provides properties for current, next, preloaded and loading queue items, active track IDs and ad playback status.\n"],null,[]]