template <>

class NaturalSyncClientImpl

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

Public Methods

::fidl::Result< ::fuchsia_media_sessions2::SessionControl::WatchStatus> WatchStatus ()

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.

::fit::result< ::fidl::OneWayError> Play ()

Plays media.

::fit::result< ::fidl::OneWayError> Pause ()

Pauses playback and retains position in media

::fit::result< ::fidl::OneWayError> Stop ()

Stops playback. The session should close.

::fit::result< ::fidl::OneWayError> Seek (const ::fidl::Request< ::fuchsia_media_sessions2::SessionControl::Seek> & request)

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.

::fit::result< ::fidl::OneWayError> SkipForward ()

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

::fit::result< ::fidl::OneWayError> SkipReverse ()

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

::fit::result< ::fidl::OneWayError> NextItem ()

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

::fit::result< ::fidl::OneWayError> PrevItem ()

Changes media to the previous item.

::fit::result< ::fidl::OneWayError> SetPlaybackRate (const ::fidl::Request< ::fuchsia_media_sessions2::SessionControl::SetPlaybackRate> & request)

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

playback mode.

::fit::result< ::fidl::OneWayError> SetRepeatMode (const ::fidl::Request< ::fuchsia_media_sessions2::SessionControl::SetRepeatMode> & request)

Sets repeat mode to any of the supported repeat modes.

::fit::result< ::fidl::OneWayError> SetShuffleMode (const ::fidl::Request< ::fuchsia_media_sessions2::SessionControl::SetShuffleMode> & request)

Sets shuffle mode.

::fit::result< ::fidl::OneWayError> BindVolumeControl (::fidl::Request< ::fuchsia_media_sessions2::SessionControl::BindVolumeControl> request)

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