VideoSupportFragmentGlueHost


public class VideoSupportFragmentGlueHost extends PlaybackSupportFragmentGlueHost implements SurfaceHolderGlueHost


PlaybackGlueHost implementation the interaction between PlaybackGlue and VideoSupportFragment.

Summary

Public constructors

Public methods

void

Sets the android.view.SurfaceHolder.Callback on the host.

Inherited methods

From androidx.leanback.media.PlaybackGlueHost
void
setFadingEnabled(boolean enable)

This method is deprecated.

Use setControlsOverlayAutoHideEnabled

void

Sets the View.OnClickListener on this fragment.

From androidx.leanback.app.PlaybackSupportFragmentGlueHost
void

This method is deprecated.

Call hideControlsOverlay

PlaybackGlueHost.PlayerCallback

Implemented by PlaybackGlueHost for responding to player events.

void
hideControlsOverlay(boolean runAnimation)

Hide controls overlay.

boolean

Returns true if auto hides controls overlay.

boolean

Returns true if controls overlay is visible, false otherwise.

void

Notifies host about a change so it can update the view.

void

Enables or disables controls overlay auto hidden.

void

Sets the host HostCallback callback on the host.

void

Sets the View.OnClickListener on this fragment.

void

Sets the android.view.View.OnKeyListener on the host.

void

Sets the Row that represents the information on control items that needs to be rendered.

void

Sets PlaybackRowPresenter for rendering the playback controls.

void

Interface to be implemented by UI widget to support PlaybackSeekUi.

void
showControlsOverlay(boolean runAnimation)

Show controls overlay.

Public constructors

VideoSupportFragmentGlueHost

Added in 1.1.0
public VideoSupportFragmentGlueHost(VideoSupportFragment fragment)

Public methods

setSurfaceHolderCallback

Added in 1.2.0-alpha04
public void setSurfaceHolderCallback(SurfaceHolder.Callback callback)

Sets the android.view.SurfaceHolder.Callback on the host. PlaybackGlueHost is assumed to either host the SurfaceHolder or have a reference to the component hosting it for rendering the video.