PlaybackEngine
This should be implemented in order to play media.
Properties
Gets the current asset position, in seconds, from the active MediaProduct, as Float.
Get or set LoudnessNormalizationMode to use when playing.
Get or set loudnessNormalizationPreAmp as Int to use when playing.
Gets the currently active MediaProduct. May be null, most likely if current state is PlaybackState.IDLE.
Gets the current output device, as OutputDevice.
Gets the currently active PlaybackContext. May be null, most likely if current state is PlaybackState.IDLE.
Gets the currently active PlaybackState.
Get or set AudioQuality to use when streaming over cellular.
Get or set AudioQuality to use when streaming over WiFi.
Sets or clears an AspectRatioAdjustingSurfaceView for the player to use for video playback.
Functions
Resets playback and immediately transition to set selected MediaProduct. Playback state will immediately change to PlaybackState.NOT_PLAYING. When this call returns, the requested media product is considered the active one.
Pauses playback of active MediaProduct.
Starts playback of active MediaProduct.
Playback makes an implicit transition to the selected MediaProduct once the currently active finishes playing.
Sets repeat one mode on or off. Repeat all is handled by the host.
Changes the currently loaded media product to the one set previously via setNext, implicitly continuing playback if it was ongoing.