ExoPlayer
ExoPlayer copied to clipboard
Request: offer common Matrices for various scaling types for TextureView, either in library or in sample
trafficstars
I'm talking about the matrix we can provide to : https://developer.android.com/reference/android/view/TextureView#setTransform(android.graphics.Matrix)
Examples of common transform :
- All of those that we have for ImageView.
- scale-crop to position. It's like center-crop, but not neccassary to the center. Could be to any point in percentage of the video.
- Maybe others that I didn't think about. Could be useful to take inspiration of what's the most popular ones by looking at ImageView scaling types third party libraries. Example : https://github.com/omgnuts/JCropImageView