GCKUIMediaButtonBarProtocol.h File
Stay organized with collections
Save and categorize content based on your preferences.
Media control button types. More...
Media control button types.
- Since
- 3.1
No button, results in empty space at a button position.
GCKUIMediaButtonTypePlayPauseToggle
A default button that toggles between play and pause states.
GCKUIMediaButtonTypeSkipNext
A default "next" button.
When tapped, playback moves to the next media item in the queue. It becomes disabled if there is no next media item in the queue.
GCKUIMediaButtonTypeSkipPrevious
A default "previous" button.
When tapped, playback moves to the previous media item in the queue. It becomes disabled if there is no previous media item in the queue.
GCKUIMediaButtonTypeRewind30Seconds
A default "rewind 30 seconds" button.
When tapped, playback skips 30 seconds back in the currently playing media item.
GCKUIMediaButtonTypeForward30Seconds
A default "forward 30 seconds" button.
When tapped, playback skips 30 seconds forward in the currently playing media item.
GCKUIMediaButtonTypeMuteToggle
A default "mute toggle" button.
When tapped, the receiver's mute state is toggled.
GCKUIMediaButtonTypeClosedCaptions
A default "closed captions" button.
When the button is tapped, the media tracks selection UI is displayed to the user.
GCKUIMediaButtonTypeStop
A default "stop" button.
Whe the button is tapped, playback of the current media item is terminated on the receiver.
GCKUIMediaButtonTypeCustom
A button created and managed by the client.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\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,[]]