setSurface

abstract fun setSurface(surface: Surface?)

Sets the Surface onto which video will be rendered. The player tracks the life cycle of the surface automatically.

Persists across playback sessions.


abstract fun setSurface(surfaceHolder: SurfaceHolder?)

Sets the SurfaceHolder that holds the Surface onto which video will be rendered. The player tracks the life cycle of the surface automatically.

Persists across playback sessions.