FlowplayerView

class FlowplayerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout, NativeMediaPlayer.AudioEventListener, PlayerControlView.ErrorListener, LifecycleListener, PlayerControlsHost

The core component of the Wowza Flowplayer Android SDK. This view is the actual player view. It's recommended to use FlowplayerSupportFragment instead of FlowplayerView when possible, in order to automatically handle lifecycle events and orientation changes. For more control over the player's behavior, FlowplayerView can also be used directly in a parent container. However, in that case, it's important that the application maps the container activity's/fragment's lifecycle to the FlowplayerView.

If the container activity/fragment implements androidx.lifecycle.LifecycleOwner, then this is very easy to achieve using FlowplayerLifecycleObserver. Otherwise, the container activity/fragment should manually call the lifecycle related methods onStart, onResume, onPause, onStop, and onDestroy.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun attachControls()

Attach the default UI controls to the player. Does nothing if the controls are already attached.

Link copied to clipboard
open override fun detachControls()

Detach the default UI controls from the player. Does nothing if the controls are already detached.

Link copied to clipboard
open override fun hideControls()

Hide the UI controls

Link copied to clipboard
open override fun onDestroy()

Triggered when the parent Activity's/Fragment's onDestroy() is called.

Link copied to clipboard
open override fun onPause()

Triggered when the parent Activity's/Fragment's onPause() is called.

Link copied to clipboard
Link copied to clipboard
open override fun onResume()

Triggered when the parent Activity's/Fragment's onResume() is called.

Link copied to clipboard
open override fun onStart()

Triggered when the parent Activity's/Fragment's onStart() is called.

Link copied to clipboard
open override fun onStop()

Triggered when the parent Activity's/Fragment's onStop() is called.

Link copied to clipboard
open override fun onVolumeChange(volume: Float)

Called when the volume changes.

Link copied to clipboard
open override fun setOnKeyListener(listener: View.OnKeyListener?)
Link copied to clipboard
open override fun showControls()

Show the UI controls