Page 1 of 1

TC4A's TCMP doesn't play video on some devices. Are there other players using Android MediaPlayer control?

Posted: 2020-08-15, 11:04 UTC
by DrShark
On some devices, TC Media Player only plays audio for video files (with extensions like .mp4).
TC's debug logs I sent on this probem in 2018 didn't help to find the reason, so for now Chrisian Ghisler's guess that it's probably codecs problem (though he also adviced to try using Android's logcat to get more details about Android MediaPlayer behavior, but I don't know how to use it, and is it even possible on phone itself without USB debug connection to PC).

However, since Android built-in player and web browsers play MP4 files on same devices fine, there is a chance that a problem may be a way in which TC Media Player uses Android MediaPlayer class.

To check it, it would be nice to try other players (compatible with Android 4.x+) which also use Android MediaPlayer interface.

However, so far I only found 1 such player distributed as compiled app (via APK file), but it's a sample project which only can play 1 file with .mp3 extension (if it is located at specified path with name mentioned in article about app, but even with this conditon it works on Android 4.3.1, but doesn't seem to work on Android 4.4 or newer; the links to project source and APK are also there), so it can't show video. Other projects I found only available as source code, and most of them are also only play audio files.

Re: TC4A's TCMP doesn't play video on some devices. Are there other players using Android MediaPlayer control?

Posted: 2020-08-17, 15:50 UTC
by ghisler(Author)
Try using VLC, it comes with its own codecs.

Re: TC4A's TCMP doesn't play video on some devices. Are there other players using Android MediaPlayer control?

Posted: 2020-08-20, 11:08 UTC
by DrShark
ghisler(Author) wrote: 2020-08-17, 15:50 UTCTry using VLC, it comes with its own codecs.
As I wrote, preinstalled Android player, as well as web browsers, play the same videos fine, so required codecs are installed in system. That's why I want to check some other players that use Android MediaPlayer control and don't have own codecs: maybe it's Android MediaPlayer control bug on some devices that it can't play video part from media files, or the control is fine and there is some bug in TC Media Payer in a way it uses that control...

Re: TC4A's TCMP doesn't play video on some devices. Are there other players using Android MediaPlayer control?

Posted: 2020-08-21, 07:03 UTC
by DrShark
And TC4A shows the thumbs for video files if enabled. Does it use Android MediaPlayer component to get thumbnails?