Struct rust_cast::channels::media::Media [] [src]

pub struct Media {
    pub content_id: String,
    pub stream_type: StreamType,
    pub content_type: String,
    pub duration: Option<f32>,
}

This data structure describes a media stream.

Fields

Service-specific identifier of the content currently loaded by the media player. This is a free form string and is specific to the application. In most cases, this will be the URL to the media, but the sender can choose to pass a string that the receiver can interpret properly. Max length: 1k.

Describes the type of media artifact.

MIME content type of the media being played.

Duration of the currently playing stream in seconds.

Trait Implementations

impl Debug for Media
[src]

[src]

Formats the value using the given formatter.