moneytoo / Player

▶ Simple and lightweight, yet polished and powerful Android video player based on ExoPlayer
https://play.google.com/store/apps/details?id=com.brouken.player
The Unlicense
1.46k stars 172 forks source link

add "text/*" to supportedMimeTypesVideo in Utils.java #455

Closed connectedway closed 1 year ago

connectedway commented 1 year ago

The picker intent launched by openFile does not allow the use of document providers that are potentially available on the system. Curiously, the picker intent launched by loadSubtitleFile does. They are nearly identical code with one exception, they use different EXTRA_MIME_TYPES. Through investigation, it hs been determined that EXTRA_MIME_TYPES seems to require the mime type "test/*" in order for document providers to be shown.

connectedway commented 1 year ago

Turns out, the problem was on the document provider side. It was not advertising the correct set of mime types. I'm closing this pull request.