mirror of
https://github.com/androidx/media.git
synced 2025-04-29 22:36:54 +08:00

`Util.SDK_INT` was introduced to be able to simulate any SDK version during tests. This is possible by using Robolectric's `@Config(sdk)` annotation. All usages of `Util.SDK_INT` have been replaced by `Build.VERSION.SDK_INT`. This is a similar change to what was done in #2107.
ExoPlayer GL demo
This app demonstrates how to render video to a GLSurfaceView while applying a GL shader.
The shader shows an overlap bitmap on top of the video. The overlay bitmap is drawn using an Android canvas, and includes the current frame's presentation timestamp, to show how to get the timestamp of the frame currently in the off-screen surface texture.
Please see the demos README for instructions on how to build and run this demo.