public final class MediaViewVideoRendererWithBackgroundPlayback extends MediaViewVideoRenderer
MediaView.setVideoRenderer(MediaViewVideoRenderer)
nativeAd, videoAutoplayBehavior
Constructor and Description |
---|
MediaViewVideoRendererWithBackgroundPlayback(Context context) |
MediaViewVideoRendererWithBackgroundPlayback(Context context,
AttributeSet attrs) |
MediaViewVideoRendererWithBackgroundPlayback(Context context,
AttributeSet attrs,
int defStyleAttr) |
MediaViewVideoRendererWithBackgroundPlayback(Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
Modifier and Type | Method and Description |
---|---|
void |
onPrepared()
Callback when the video is prepared and ready to play.
|
boolean |
shouldAllowBackgroundPlayback()
Whether background video playback should be enabled or not.
|
addView, addView, addView, addView, addView, destroy, disengageSeek, engageSeek, getCurrentTimeMs, getDuration, getMediaViewVideoRendererApi, getVolume, onCompleted, onError, onPaused, onPlayed, onSeek, onSeekDisengaged, onSeekEngaged, onVolumeChanged, pause, play, seekTo, setNativeAd, setVolume, shouldAutoplay, unsetNativeAd
public MediaViewVideoRendererWithBackgroundPlayback(Context context)
public MediaViewVideoRendererWithBackgroundPlayback(Context context, AttributeSet attrs)
public MediaViewVideoRendererWithBackgroundPlayback(Context context, AttributeSet attrs, int defStyleAttr)
public MediaViewVideoRendererWithBackgroundPlayback(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
public void onPrepared()
MediaViewVideoRenderer
onPrepared
in class MediaViewVideoRenderer
public boolean shouldAllowBackgroundPlayback()
MediaViewVideoRenderer
shouldAllowBackgroundPlayback
in class MediaViewVideoRenderer