google / google/ExoPlayer

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

Open
#5,412 0 comments 0 reactions 1 assignee Assigned to @andrewlewis View on GitHub
enhancement low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.