zhanghai / MaterialFiles

Material Design file manager for Android
https://play.google.com/store/apps/details?id=me.zhanghai.android.files
GNU General Public License v3.0
6.07k stars 410 forks source link

Can't recognize ts file as video format #1122

Closed SempakRangerGG closed 9 months ago

SempakRangerGG commented 9 months ago

Tapping them doesn't show any video player app

mayhair commented 9 months ago

This is because Transport Stream video files and Typescript code files have the same file extension, .ts. Material Files just decides to interpret all files with the .ts extension as Typescript files. (More technically, it sends the MIME type text/typescript instead of the proper video/mp2ts.)

zhanghai commented 9 months ago

Material Files uses Android's official extension and MIME mapping and unfortunately there's no good solution to resolve such a conflict. You can still use "Open with" then "Open as" to manually open it as video.