class SessionControl

Defined at line 4813 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/hlcpp/fuchsia/media/sessions2/cpp/fidl.h

Controls a media session and views its status.

The channel will close if the media session is stopped.

Public Methods

void ~SessionControl ()
void Play ()

Plays media.

void Pause ()

Pauses playback and retains position in media

void Stop ()

Stops playback. The session should close.

void Seek (int64_t position)

Seeks to a specific position in media. Implementations are free to

enter an error state if the position is out of bounds. `position`

is an offset from the beginning of the media.

void SkipForward ()

Skips forward in media by the player's default skip amount.

void SkipReverse ()

Skips in reverse in media by the player's default skip amount.

void NextItem ()

Changes media to the next item (e.g. next song in playlist).

void PrevItem ()

Changes media to the previous item.

void SetPlaybackRate (float playback_rate)

Sets the playback rate of the media. This will not change the

playback mode.

void SetRepeatMode (::fuchsia::media::sessions2::RepeatMode repeat_mode)

Sets repeat mode to any of the supported repeat modes.

void SetShuffleMode (bool shuffle_on)

Sets shuffle mode.

void BindVolumeControl (::fidl::InterfaceRequest< ::fuchsia::media::audio::VolumeControl> volume_control_request)

Binds to the session's volume control for control and notifications.

void WatchStatus (WatchStatusCallback callback)

Watches the session status. Leave a request hanging to receive a reply when

the session status changes. The first request will be answered immediately with

the current state.