addMediaCodecSurface

abstract fun addMediaCodecSurface(surface: Surface)

Set surface from MediaCodec class to Opengl. This surface is used to copy pixels from Opengl surface to this surface and encode this pixels.

Parameters

surface

surface created from MediaCodec.