GCKUIMediaButtonBarProtocol.h 文件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
媒体控件按钮类型。
- 开始时间
- 3.1
枚举器 |
---|
GCKUIMediaButtonTypeNone |
无按钮,会导致按钮位置处存在空白区域。
|
GCKUIMediaButtonTypePlayPauseToggle |
用于在播放和暂停状态之间切换的默认按钮。
|
GCKUIMediaButtonTypeSkipNext |
默认的“下一步”按钮。
点按后,播放进度会移至队列中的下一个媒体项。如果队列中没有下一个媒体项,此媒体项将被停用。
|
GCKUIMediaButtonTypeSkipPrevious |
默认的“上一项”按钮。
点按该媒体项后,播放进度会移至队列中的上一个媒体项。如果队列中没有上一个媒体项,此媒体项将被停用。
|
GCKUIMediaButtonTypeRewind30Seconds |
默认的“快退 30 秒”按钮。
点按该图标后,当前播放的媒体项会跳回 30 秒。
|
GCKUIMediaButtonTypeForward30Seconds |
默认的“前进 30 秒”按钮。
点按该图标后,当前播放的媒体项会快进 30 秒。
|
GCKUIMediaButtonTypeMuteToggle |
默认的“静音切换”按钮。
点按后,会切换接收方的静音状态。
|
GCKUIMediaButtonTypeClosedCaptions |
默认的“字幕”按钮。
点按该按钮后,系统会向用户显示媒体跟踪选择界面。
|
GCKUIMediaButtonTypeStop |
默认的“停止”按钮。
点按该按钮时,接收端会终止当前媒体内容的播放。
|
GCKUIMediaButtonTypeCustom |
由客户端创建和管理的按钮。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis document details the \u003ccode\u003eGCKUIMediaButtonBarProtocol\u003c/code\u003e which provides a delegate protocol for managing media control buttons in Google Cast applications.\u003c/p\u003e\n"],["\u003cp\u003eIt defines the \u003ccode\u003eGCKUIMediaButtonType\u003c/code\u003e enumeration, encompassing standard media control options like play/pause, skip, rewind, and volume, along with custom button capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe enumeration provides various pre-defined button types, enabling developers to integrate standard media controls with ease and flexibility.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can create custom buttons to extend the functionality and tailor the user interface to specific application needs using the \u003ccode\u003eGCKUIMediaButtonTypeCustom\u003c/code\u003e type.\u003c/p\u003e\n"]]],["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"],null,[]]