setSurface

abstract fun setSurface(surface: Surface?)

Sets the Surface onto which video will be rendered. The player will track the lifecycle of the surface automatically.

abstract fun setSurface(surfaceHolder: SurfaceHolder?)

Sets the SurfaceHolder that holds the Surface onto which video will be rendered. The player will track the lifecycle of the surface automatically.