VideoFragment
public
class
VideoFragment
extends PlaybackFragment
| java.lang.Object | |||
| ↳ | android.app.Fragment | ||
| ↳ | androidx.leanback.app.PlaybackFragment | ||
| ↳ | androidx.leanback.app.VideoFragment | ||
This class is deprecated.
use VideoSupportFragment
Subclass of PlaybackFragment that is responsible for providing a SurfaceView
and rendering video.
See base class PlaybackFragment for how to setup controls and how to
customize showing/hiding controls.
Summary
Inherited constants | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
androidx.leanback.app.PlaybackFragment
| ||||||||||||||
|
From interface
android.content.ComponentCallbacks2
|
Public constructors | |
|---|---|
VideoFragment()
|
|
Public methods | |
|---|---|
SurfaceView
|
getSurfaceView()
Returns the surface view. |
View
|
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
|
void
|
onDestroyView()
|
void
|
setSurfaceHolderCallback(SurfaceHolder.Callback callback)
Adds |
Protected methods | |
|---|---|
void
|
onVideoSizeChanged(int width, int height)
Called when size of the video changes. |
Inherited methods | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
androidx.leanback.app.PlaybackFragment
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
From class
android.app.Fragment
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||