Skip to content

Most visited

Recently visited

navigation
added in version 25.4.0
belongs to Maven artifact com.android.support:leanback-v17:27.0.0

VideoFragmentGlueHost

public class VideoFragmentGlueHost
extends PlaybackFragmentGlueHost implements SurfaceHolderGlueHost

java.lang.Object
   ↳ android.support.v17.leanback.media.PlaybackGlueHost
     ↳ android.support.v17.leanback.app.PlaybackFragmentGlueHost
       ↳ android.support.v17.leanback.app.VideoFragmentGlueHost


PlaybackGlueHost implementation the interaction between PlaybackGlue and VideoFragment.

Summary

Public constructors

VideoFragmentGlueHost(VideoFragment fragment)

Public methods

void setSurfaceHolderCallback(SurfaceHolder.Callback callback)

Sets the SurfaceHolder.Callback on the host.

Inherited methods

From class android.support.v17.leanback.app.PlaybackFragmentGlueHost
From class android.support.v17.leanback.media.PlaybackGlueHost
From class java.lang.Object
From interface android.support.v17.leanback.widget.PlaybackSeekUi
From interface android.support.v17.leanback.media.SurfaceHolderGlueHost

Public constructors

VideoFragmentGlueHost

added in version 25.4.0
VideoFragmentGlueHost (VideoFragment fragment)

Parameters
fragment VideoFragment

Public methods

setSurfaceHolderCallback

added in version 25.4.0
void setSurfaceHolderCallback (SurfaceHolder.Callback callback)

Sets the 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.

Parameters
callback SurfaceHolder.Callback

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)