GCKMediaStatus.h 檔案
GCKMediaPlayerState 和 GCKMediaPlayerIdleReason 列舉。更多...
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKMediaPlayerState) |
|
GCKMediaPlayerState 和 GCKMediaPlayerIdleReason 列舉。
媒體播放器閒置原因。
分子 |
---|
GCKMediaPlayerIdleReasonNone |
表示玩家目前未閒置原因的常數。
|
GCKMediaPlayerIdleReasonFinished |
表示播放器因播放完畢而處於閒置狀態。
|
GCKMediaPlayerIdleReasonCancelled |
表示播放器閒置,因為系統因回應「停止」指令而取消播放。
|
GCKMediaPlayerIdleReasonInterrupted |
這個常數表示播放器因播放受到 LOAD 指令中斷而處於閒置狀態。
|
GCKMediaPlayerIdleReasonError |
表示播放器因播放錯誤而處於閒置狀態的常數。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["The `GCKMediaStatus` class provides status information about media playback."],["The `GCKMediaPlayerState` enum defines the different playback states of a media player."],["The `GCKMediaPlayerIdleReason` enum defines the reasons why a media player is idle, including finished playback, cancellation, interruption, and error."],["The `GCKMediaStatus.h` file defines these enums and the `GCKMediaStatus` class, allowing developers to manage media status and playback on Google Cast devices."]]],["The core content details the `GCKMediaStatus.h` file, which defines a `GCKMediaStatus` class for media status information. It also outlines the `GCKMediaPlayerIdleReason` enumeration, specifying possible idle states of a media player: `None`, `Finished`, `Cancelled`, `Interrupted`, and `Error`. Additionally it details the functions for `GCKMediaPlayerState` enumeration type. Each idle reason indicates a specific condition under which the media player is inactive, such as completion of playback or encountering an error.\n"]]