pub trait MediaSessionMethods<D: DomTypes> {
    // Required methods
    fn GetMetadata(&self, _can_gc: CanGc) -> Option<Root<Dom<MediaMetadata>>>;
    fn SetMetadata(&self, value: Option<&MediaMetadata>);
    fn PlaybackState(&self) -> MediaSessionPlaybackState;
    fn SetPlaybackState(&self, value: MediaSessionPlaybackState);
    fn SetActionHandler(
        &self,
        action: MediaSessionAction,
        handler: Option<Rc<MediaSessionActionHandler>>,
    );
    fn SetPositionState(&self, state: &MediaPositionState) -> Result<(), Error>;
}

Required Methods§

Implementors§