ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Request: offer common Matrices for various scaling types for TextureView, either in library or in sample

Open AndroidDeveloperLB opened this issue 6 years ago • 0 comments
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 :

  1. All of those that we have for ImageView.
  2. 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.
  3. 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

AndroidDeveloperLB avatar Jan 21 '19 09:01 AndroidDeveloperLB