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

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

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

Post 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.
Last edited by DrShark on 2020-08-20, 11:00 UTC, edited 1 time in total.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) »

Try using VLC, it comes with its own codecs.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

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

Post 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...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

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

Post by *DrShark »

And TC4A shows the thumbs for video files if enabled. Does it use Android MediaPlayer component to get thumbnails?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply