MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 179 forks source link

Fix problem with files in internal storage #106

Open Unchuris opened 1 year ago

Unchuris commented 1 year ago

We are working with FileInputStream and have two ways to read it. We should unbind from the string path after reading the FileInputStream.

In some cases, for internal storage files with the path "content:// ..." we will get a read error. (getVideoRotation and getVideoResolution funs)

Example: start the system camera, take a video, get Uri to video in app's internal storage

This issue appeared after support https://github.com/MasayukiSuda/GPUVideo-android/pull/91