setSurfaceType

open override fun setSurfaceType(surfaceType: SurfaceType)

Sets the surface type for the player view, determining how video will be rendered.

Note: Using SurfaceType.SURFACE_TYPE_TEXTURE_VIEW will disable DRM (Digital Rights Management) support.

Parameters

surfaceType

The type of surface to use for rendering video. Options include: