Project: /_project.yaml Book: /_book.yaml

fuchsia.media.playback

PROTOCOLS

Player {:#Player}

Defined in fuchsia.media.playback/player.fidl

Plays media.

CreateHttpSource {:#CreateHttpSource}

Creates a source that reads from a URL.

Request

CreateFileSource {:#CreateFileSource}

Creates a source that reads from a file.

Request

CreateReaderSource {:#CreateReaderSource}

Creates a source that reads from a SeekingReader.

Request

CreateElementarySource {:#CreateElementarySource}

Creates a source that allows the client to provide independent elementary streams to the player. duration_ns, can_pause, can_seek and metadata are all included in the SourceStatus and, when the ElementarySource is used by the player, in the PlayerStatus as well. can_pause and can_seek, when false, constrain the capabilities of the player.

Request

SetSource {:#SetSource}

Sets the source for this player to use. If source is null, the player becomes idle.

Request

TransitionToSource {:#TransitionToSource}

Transitions to the specified source when playback of the current source reaches transition_pts. The new source starts playback at start_pts. If a transition is already pending, it will be discarded in favor of the new transition.

Request

CancelSourceTransition {:#CancelSourceTransition}

Cancels a pending transition, returning the source. If no transition is pending, the request channel is closed.

Request

SetHttpSource {:#SetHttpSource}

Sets an HTTP URL to read from. The provided headers are added to each HTTP request issued to the URL.

Request

SetFileSource {:#SetFileSource}

Sets a file channel to read from.

Request

Play {:#Play}

Starts playback.

Request

Pause {:#Pause}

Pauses playback.

Request

OnStatusChanged {:#OnStatusChanged}

Provides current status immediately after binding and whenever status changes thereafter.

Response

Seek {:#Seek}

Seeks to the specified position, specified in nanoseconds.

Request

CreateView {:#CreateView}

Creates a video view.

Request

BindGainControl {:#BindGainControl}

Binds to the gain control for this player.

Request

AddBinding {:#AddBinding}

Adds a new binding to this player.

Request

SeekingReader {:#SeekingReader}

Defined in fuchsia.media.playback/seeking_reader.fidl

Describe {:#Describe}

Request

Response

ReadAt {:#ReadAt}

Request

Response

SourceManager {:#SourceManager}

Defined in fuchsia.media.playback/source_manager.fidl

Manages sources on behalf of a Player.

CreateHttpSource {:#CreateHttpSource}

Creates a source that reads from a URL.

Request

CreateFileSource {:#CreateFileSource}

Creates a source that reads from a file.

Request

CreateReaderSource {:#CreateReaderSource}

Creates a source that reads from a SeekingReader.

Request

CreateElementarySource {:#CreateElementarySource}

Creates a source that allows the client to provide independent elementary streams to the player. duration_ns, can_pause, can_seek and metadata are all included in the SourceStatus and, when the ElementarySource is used by the player, in the PlayerStatus as well. can_pause and can_seek, when false, constrain the capabilities of the player.

Request

SetSource {:#SetSource}

Sets the source for this player to use. If source is null, the player becomes idle.

Request

TransitionToSource {:#TransitionToSource}

Transitions to the specified source when playback of the current source reaches transition_pts. The new source starts playback at start_pts. If a transition is already pending, it will be discarded in favor of the new transition.

Request

CancelSourceTransition {:#CancelSourceTransition}

Cancels a pending transition, returning the source. If no transition is pending, the request channel is closed.

Request

Source {:#Source}

Defined in fuchsia.media.playback/source_manager.fidl

A source of content that may be used by a player.

OnStatusChanged {:#OnStatusChanged}

Response

ElementarySource {:#ElementarySource}

Defined in fuchsia.media.playback/source_manager.fidl

Source variant for providing elementary streams directly to the player.

OnStatusChanged {:#OnStatusChanged}

Response

AddStream {:#AddStream}

Adds an elementary stream. The elementary stream can be removed by closing the SimpleStreamSink. ticks_per_second_numerator and ticks_per_second_denominator indicate the units that will be used for Streampacket timestamp values. For nanoseconds units, for example, ticks_per_second_numerator should be 1000000000 and ticks_per_second_denominator should be 1. To use units of frames for 48k audio, ticks_per_second_numerator should be 48000 and ticks_per_second_denominator should be 1.

Request

AddBinding {:#AddBinding}

Adds a new binding to this ElementarySource. By using this method, the client can obtain an additional channel through which to communicate to this ElementarySource even after a channel is consumed by a call to SourceManager.SetSource.

Request

STRUCTS

PlayerStatus {:#PlayerStatus}

Defined in fuchsia.media.playback/player.fidl

Player status information.

Problem {:#Problem}

Defined in fuchsia.media.playback/problem.fidl

Models a problem preventing intended operation.

A Problem is generally surfaced as part of a component's status, probably as an optional field. Absence of a Problem means that nothing is preventing intended operation. When a problem is exposed, the client can take action automatically or present relevant UI. If a problem can be resolved by some action, the client may take that action automatically or enlist the user somehow in the resolution. In either case, the problem goes away when the issue that caused it to be exposed is resolved. By design, there is no general means of dismissing a problem.

SourceStatus {:#SourceStatus}

Defined in fuchsia.media.playback/source_manager.fidl

Source status information.

CONSTANTS