GCKMediaStatus.h File
GCKMediaPlayerState and GCKMediaPlayerIdleReason enums.
More...
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKMediaPlayerState) |
|
GCKMediaPlayerState and GCKMediaPlayerIdleReason enums.
Media player idle reasons.
Enumerator |
---|
GCKMediaPlayerIdleReasonNone |
Constant indicating that the player currently has no idle reason.
|
GCKMediaPlayerIdleReasonFinished |
Constant indicating that the player is idle because playback has finished.
|
GCKMediaPlayerIdleReasonCancelled |
Constant indicating that the player is idle because playback has been cancelled in response to a STOP command.
|
GCKMediaPlayerIdleReasonInterrupted |
Constant indicating that the player is idle because playback has been interrupted by a LOAD command.
|
GCKMediaPlayerIdleReasonError |
Constant indicating that the player is idle because a playback error has occurred.
|
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["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"]]