mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00

The main change here is that VideoDecoderGLSurfaceView now implements VideoDecoderOutputBufferRenderer directly. This avoids SimpleExoPlayer having to cast to VideoDecoderGLSurfaceView, which will be necessary if VideoDecoderGLSurfaceView is moved to the UI module. Instead, the player can cast directly to VideoDecoderOutputBufferRenderer, which could be moved to the Common module. The renderer is also moved to be an inner class, since it's not used anywhere else and since doing this makes it a little easier to move things around. PiperOrigin-RevId: 367398147