pub struct PlayerStatus {
pub duration: Option<i64>,
pub player_state: Option<PlayerState>,
pub timeline_function: Option<TimelineFunction>,
pub repeat_mode: Option<RepeatMode>,
pub shuffle_on: Option<bool>,
pub content_type: Option<ContentType>,
pub error: Option<Error>,
pub is_live: Option<bool>,
/* private fields */
}
Expand description
Status of a media player.
Fields§
§duration: Option<i64>
Total duration of playing media.
If this value is omitted, the duration is unknown, not applicable or unchanged. Initially, the duration is assumed to be unknown.
player_state: Option<PlayerState>
State of the player.
If this field is omitted, the value is unchanged. Initially, the value is IDLE
.
timeline_function: Option<TimelineFunction>
A playback function that describes the position and rate of
play through the media as a function of CLOCK_MONOTONIC
.
If this field is omitted, the value is unchanged. Initially, reference_delta
is 1 and
the remaining constituent fields are 0.
repeat_mode: Option<RepeatMode>
Repeat mode of the player.
If this field is omitted, the value is unchanged. Initially, the value is NONE
.
shuffle_on: Option<bool>
Shuffle mode of the player.
If this field is omitted, the value is unchanged. Initially, the value is false.
content_type: Option<ContentType>
The type of content playing back.
If this field is omitted, the value is unchanged. Initially, the value is OTHER
.
error: Option<Error>
An error the player may have encountered.
This field is omitted unless there is an error. Once an error is indicated, it cannot be rescinded.
is_live: Option<bool>
Whether the playing media is live (such as television or a live stream).
If this field is omitted, the value is unchanged. Initially, the value is false.
Trait Implementations§
Source§impl Clone for PlayerStatus
impl Clone for PlayerStatus
Source§fn clone(&self) -> PlayerStatus
fn clone(&self) -> PlayerStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PlayerStatus
impl Debug for PlayerStatus
Source§impl<D: ResourceDialect> Decode<PlayerStatus, D> for PlayerStatus
impl<D: ResourceDialect> Decode<PlayerStatus, D> for PlayerStatus
Source§impl Default for PlayerStatus
impl Default for PlayerStatus
Source§fn default() -> PlayerStatus
fn default() -> PlayerStatus
Source§impl<D: ResourceDialect> Encode<PlayerStatus, D> for &PlayerStatus
impl<D: ResourceDialect> Encode<PlayerStatus, D> for &PlayerStatus
Source§impl PartialEq for PlayerStatus
impl PartialEq for PlayerStatus
Source§impl TypeMarker for PlayerStatus
impl TypeMarker for PlayerStatus
Source§type Owned = PlayerStatus
type Owned = PlayerStatus
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for PlayerStatus
impl ValueTypeMarker for PlayerStatus
Source§type Borrowed<'a> = &'a PlayerStatus
type Borrowed<'a> = &'a PlayerStatus
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more