surfaceOrNull

val surfaceOrNull: Surface?

Returns the Surface associated with this source. Rendering to this Surface will add frames to the video track.

Returns null if the track is in an invalid state.