Trait script::dom::bindings::codegen::Bindings::MediaSessionBinding::MediaSession_Binding::MediaSessionMethods
source · pub trait MediaSessionMethods {
// 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>;
}