fidl_fuchsia_media_sessions2Trait PlayerProxyInterface
Source pub trait PlayerProxyInterface: Send + Sync {
type WatchInfoChangeResponseFut: Future<Output = Result<PlayerInfoDelta, Error>> + Send;
Show 13 methods
// Required methods
fn play(&self) -> Result<(), Error>;
fn pause(&self) -> Result<(), Error>;
fn stop(&self) -> Result<(), Error>;
fn seek(&self, position: i64) -> Result<(), Error>;
fn skip_forward(&self) -> Result<(), Error>;
fn skip_reverse(&self) -> Result<(), Error>;
fn next_item(&self) -> Result<(), Error>;
fn prev_item(&self) -> Result<(), Error>;
fn set_playback_rate(&self, playback_rate: f32) -> Result<(), Error>;
fn set_repeat_mode(&self, repeat_mode: RepeatMode) -> Result<(), Error>;
fn set_shuffle_mode(&self, shuffle_on: bool) -> Result<(), Error>;
fn bind_volume_control(
&self,
volume_control_request: ServerEnd<VolumeControlMarker>,
) -> Result<(), Error>;
fn watch_info_change(&self) -> Self::WatchInfoChangeResponseFut;
}