template <>
class WireServer
Defined at line 3790 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/cpp/fidl/fuchsia.media.sessions2/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_media_sessions2::SessionControl>|
and |::fidl::ServerEnd
<
::fuchsia_media_sessions2::SessionControl>|).
Public Methods
void Play (PlayCompleter::Sync & completer)
Plays media.
void Pause (PauseCompleter::Sync & completer)
Pauses playback and retains position in media
void Stop (StopCompleter::Sync & completer)
Stops playback. The session should close.
void Seek (::fuchsia_media_sessions2::wire::SessionControlSeekRequest * request, SeekCompleter::Sync & completer)
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 (SkipForwardCompleter::Sync & completer)
Skips forward in media by the player's default skip amount.
void SkipReverse (SkipReverseCompleter::Sync & completer)
Skips in reverse in media by the player's default skip amount.
void NextItem (NextItemCompleter::Sync & completer)
Changes media to the next item (e.g. next song in playlist).
void PrevItem (PrevItemCompleter::Sync & completer)
Changes media to the previous item.
void SetPlaybackRate (::fuchsia_media_sessions2::wire::SessionControlSetPlaybackRateRequest * request, SetPlaybackRateCompleter::Sync & completer)
Sets the playback rate of the media. This will not change the
playback mode.
void SetRepeatMode (::fuchsia_media_sessions2::wire::SessionControlSetRepeatModeRequest * request, SetRepeatModeCompleter::Sync & completer)
Sets repeat mode to any of the supported repeat modes.
void SetShuffleMode (::fuchsia_media_sessions2::wire::SessionControlSetShuffleModeRequest * request, SetShuffleModeCompleter::Sync & completer)
Sets shuffle mode.
void BindVolumeControl (::fuchsia_media_sessions2::wire::SessionControlBindVolumeControlRequest * request, BindVolumeControlCompleter::Sync & completer)
Binds to the session's volume control for control and notifications.
void WatchStatus (WatchStatusCompleter::Sync & completer)
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.
void WireServer ()
Defined at line 3793 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/cpp/fidl/fuchsia.media.sessions2/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 3794 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/cpp/fidl/fuchsia.media.sessions2/cpp/wire_messaging.h