Describe the bug
When selecting the external player option, having VLC or MX installed, it does not recognize them and simply a Playback Error appears.
Screenshots
System:
I found that this issue happens when it's using the player profile from exoplayer. Currently that profile can be wrong and it makes the player do unnecessary transcodes, when this happens, the external player option fails.
One workaround right now is to disable transcoding for that user, so as long as your player(MX/vlc/mpv/...) and phone can direct play the media, the external player function will work.
If this is indeed caused by the profile it should be fixed by #127
@JulioNahum @harry71019 Any improvement in v2.0.0-rc.8?
@CarlosOlivo
Yes, now the external player option works nicely. I tested some videos and they can direct play on VLC/MX player. Thanks!
Closing this issue since it seems to be fixed.
In the newest version 2.0.1 this error occurred again. An invalid play method error shows up. The fix is still to disable transcoding for the user to be able to use external players.
From the v2.0.0-rc.8 to v2.0.1 version there are no changes that affect external playback. Does it happen with all the videos or only with some? Could you try to install jellyfin-android-v2.0.0-rc.8-release.apk again and see if it works as before? Any changes to your server recently?
@CarlosOlivo I wen back to v2.0.0-rc.8 and the playback still shows an error. No changes had been made to my server, it's been running 10.6.4 on Windows for some time and I don't recall any updates or changes recently.
I did some extra testing with 2.0.1 and found that some files could be played by external players but some not
(These files can all be played by the phone using MX/VLC without using Jellyfin)
CAN:
1080P H264 / FLAC

1080I MPEG2 / AAC-LC

4K HEVC 60fps / AAC-LC 5.1ch

1080P HEVC / Dolby Digital 5.1ch

1080P H264 / PCM

CANNOT:
1080P H264 / AAC-LC

1080P H264 / PCM

I have not found a clear reason of what can be played and which ones error will occur.
Current pattern is that the files that cannot be played all have one same character in their Jellyfin titles (the Japanese kanji 欅), however, when I added this word to the title of other movies they still play normally.
Also, despite them having 欅 in their titles, the path for the movie files are all in English so I'm not sure why this is causing a issue like this. I will try and do some more testing.
Very weird. I have tried to find a common pattern, but couldn't come up with a reason for these issues. Could you try to pull a logcat when trying to play a title that doesn't work?
Also can you share some server logs? One that has at least:
And any unexpected logs that only appear in the event that a playback error occurs
Like this (text preferred, feel free to remove/hide any information that you consider sensitive)

Side note: Please open a new issue for this
@Maxr1998 @CarlosOlivo @nielsvanvelzen
I will open a new issue with the sever logs, thanks!
We could also reopen this one, I suppose..
I have opened a new issue here: #192
Most helpful comment
I have opened a new issue here: #192