GCKUIMediaButtonBar Protocol.h 檔案
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
媒體控制項按鈕類型。
- 開始時間
- 3.1
分子 |
---|
GCKUIMediaButtonTypeNone |
沒有按鈕,在按鈕位置顯示空白空間。
|
GCKUIMediaButtonTypePlayPauseToggle |
預設按鈕,可在播放和暫停狀態之間切換。
|
GCKUIMediaButtonTypeSkipNext |
預設的「下一步」按鈕。
使用者輕觸該播放內容時,系統會將這項播放作業移至待播清單中的下一個媒體項目。如果佇列中沒有下一個媒體項目,該值就會停用。
|
GCKUIMediaButtonTypeSkipPrevious |
預設的「上一個」按鈕。
使用者輕觸該播放後,會移至待播清單中的上一個媒體項目。如果佇列中沒有先前的媒體項目,系統就會停用該值。
|
GCKUIMediaButtonTypeRewind30Seconds |
預設的「倒轉 30 秒」按鈕。
輕觸一下後,播放中的媒體項目會倒轉 30 秒。
|
GCKUIMediaButtonTypeForward30Seconds |
預設的「快轉 30 秒」按鈕。
輕觸一下後,播放中的媒體項目會快轉 30 秒。
|
GCKUIMediaButtonTypeMuteToggle |
預設的「靜音切換」按鈕。
輕觸後,系統會切換接收端的靜音狀態。
|
GCKUIMediaButtonTypeClosedCaptions |
預設的「隱藏式輔助字幕」按鈕。
使用者輕觸按鈕後,就會看到媒體曲目選取 UI。
|
GCKUIMediaButtonTypeStop |
預設的「停止」按鈕。
使用者輕觸按鈕後,會在接收端終止播放目前媒體項目。
|
GCKUIMediaButtonTypeCustom |
由用戶端建立及管理的按鈕。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2023-12-02 (世界標準時間)。"],[[["This document details the `GCKUIMediaButtonBarProtocol` which provides a delegate protocol for managing media control buttons in Google Cast applications."],["It defines the `GCKUIMediaButtonType` enumeration, encompassing standard media control options like play/pause, skip, rewind, and volume, along with custom button capabilities."],["The enumeration provides various pre-defined button types, enabling developers to integrate standard media controls with ease and flexibility."],["Developers can create custom buttons to extend the functionality and tailor the user interface to specific application needs using the `GCKUIMediaButtonTypeCustom` type."]]],["The core content details the `GCKUIMediaButtonBarProtocol` and its associated media control button types. The protocol is a delegate protocol. The enumeration `GCKUIMediaButtonType` defines various button functionalities, including `PlayPauseToggle`, `SkipNext`, `SkipPrevious`, `Rewind30Seconds`, `Forward30Seconds`, `MuteToggle`, `ClosedCaptions`, and `Stop`. A `None` button and a `Custom` button are also defined, allowing for empty spaces or client-managed buttons respectively. Each button type has a specific function for media control.\n"]]