Issues with external player when set one by default

Good evening, I have a problem that I have had for some time, which is when I set an external player by default, whether it is mx player or vlc, the video is even displayed, but usually with a short time the player simply closes out of the blue, this doesn’t happen when I use the option to select the player when opening the video, just below are the pertinent data and information that help me to clarify the problem. Just to reinforce, when I set in Yatse one of the two players available in its configuration to be the external default, the video always closes suddenly, when I use the option to choose a player manually when opening the video, even though they are the same mx player and vlc, this does not occur.

Android: 11 - 30 [arm64-v8a,armeabi-v7a,armeabi]
Device: Redmi - Redmi Note 9S [curtana_global - curtana]

debug-20220513_181521.zip (12.3 KB)

1 Like

If the external player start playing then if it close it’s 100% out of Yatse reach.

The only difference when not setting directly the player in the settings is how the subtitles are added to the intent and the resume point is passed.

There’s only 1 test in the logs so it’s hard to see the differences :wink: But it appears it’s transcoding so you may want to enable more codecs in the settings to avoid that too.

1 Like

Well then maybe it’s a problem with the configuration of the mx player I use here, I did a quick test with vlc now and it played a random video without closing by itself, I just find the problem peculiar because it only occurs with mx player when it is selected in yatse to be the default player and the same problem doesn’t occur when I select the player manually, via the app selector. Thanks.

The intent is optimized for the player when you select it so it pass more data but without logs of both case I can’t really tell you more the probable data cause.
But in the end if the app start and play at least 1 frame then Yatse have done the job and the issue should be reported to the player.

In this log I tried to play a file 3 times, being:

1st time, using Kodi media server and default player MX Player, the problem occurred;
2nd time, using Plex media server and the default player MX Player, the problem occurred;
3rd time, using Plex media server and manual player selection, in which I chose the same MX Player, the problem did not occur.

debug-20220514_070217.zip (1.6 MB)

Ok so those logs are more interesting.

The logs does not show what you describe.

It show 3 attempts from Kodi and trying to use BubbleUPnP as the server.

Then 1 attempt from Plex that did work since BubbleUPnP is not transcoding but Plex.

You might want to disable BubbleUPnP transcoding if it does not work for you.

The problem occurs with both plex server and Kodi server, I just tested it now also with bubbleupnp related options disabled, and enabled, the problem always occurs.

debug-20220514_114829.zip (519.7 KB)

And this time I’m supposed to guess what worked and what did not ?
As I said Yatse is not involved in what happens in the player.

Logs contains:


Starting external video player with intent: Intent { act=android.intent.action.VIEW dat=http://10.0.0.100:8080/... typ=video/* flg=0x1 pkg=com.mxtech.videoplayer.pro cmp=com.mxtech.videoplayer.pro/com.mxtech.videoplayer.ActivityScreen (has extras) } - Bundle[{video_list=[http://REMOVED:[email protected]:8080/vfs/E%3A%5CAnimes%5CA%20Lenda%20De%20Ellcia%20(1992)%5CSeason%2001%5CA%20Lenda%20De%20Ellcia%20-%20S01E01%20-%20Pref%C3%A1cio.mkv], video_list_is_explicit=true, title=Prefácio, position=125500, secure_uri=true, return_result=true}]
Starting external video player with intent: Intent { act=android.intent.action.VIEW dat=http://10.0.0.100:32400/... typ=video/* flg=0x1 pkg=com.mxtech.videoplayer.pro cmp=com.mxtech.videoplayer.pro/com.mxtech.videoplayer.ActivityScreen (has extras) } - Bundle[{video_list=[http://10.0.0.100:32400/video/:/transcode/universal/start.m3u8?X-Plex-Client-Capabilities=protocols%3Dhttp-live-streaming%2Chttp-mp4-streaming%2Chttp-mp4-video%2Chttp-mp4-video-720p%2Chttp-mp4-video-1080p%2Chttp-streaming-video%2Chttp-streaming-video-720p%2Chttp-streaming-video-1080p%3BvideoDecoders%3D*%3BaudioDecoders%3D*&path=%2Flibrary%2Fmetadata%2F19397&protocol=hls&X-Plex-Client-Profile-Extra=add-direct-play-profile%28type%3DvideoProfile%26container%3Dmp4%2Cavi%2Cmkv%26videoCodec%3D*%26audioCodec%3Daac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DmusicProfile%26container%3Dmp4%2Cmp3%2Cflac%2Cogg%2Cwav%26videoCodec%3D*%26audioCodec%3Dflac%2Copus%2Caac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DphotoProfile%26container%3Djpeg%2Cpng%2Cgif%26protocol%3D*%29%2Badd-transcode-target%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Bappend-transcode-target-codec%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dflac%26audioCodec%3Dflac%26protocol%3Dhttp%26context%3Dstreaming%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dmp3%26audioCodec%3Dmp3%26protocol%3Dhttp%26context%3Dstreaming%29&directPlay=1&directStream=1&X-Plex-Platform=Generic&X-Plex-Session-Identifier=2576407e-6b36-48c1-a7c7-f9359ca0969d&fastSeek=1&X-Plex-Client-Capabilities=protocols%3Dhttp-live-streaming%2Chttp-mp4-streaming%2Chttp-mp4-video%2Chttp-mp4-video-720p%2Chttp-mp4-video-1080p%2Chttp-streaming-video%2Chttp-streaming-video-720p%2Chttp-streaming-video-1080p%3BvideoDecoders%3D*%3BaudioDecoders%3D*&path=%2Flibrary%2Fmetadata%2F19397&protocol=hls&X-Plex-Client-Profile-Extra=add-direct-play-profile%28type%3DvideoProfile%26container%3Dmp4%2Cavi%2Cmkv%26videoCodec%3D*%26audioCodec%3Daac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DmusicProfile%26container%3Dmp4%2Cmp3%2Cflac%2Cogg%2Cwav%26videoCodec%3D*%26audioCodec%3Dflac%2Copus%2Caac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DphotoProfile%26container%3Djpeg%2Cpng%2Cgif%26protocol%3D*%29%2Badd-transcode-target%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Bappend-transcode-target-codec%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dflac%26audioCodec%3Dflac%26protocol%3Dhttp%26context%3Dstreaming%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dmp3%26audioCodec%3Dmp3%26protocol%3Dhttp%26context%3Dstreaming%29&directPlay=1&directStream=1&X-Plex-Platform=Generic&X-Plex-Session-Identifier=2576407e-6b36-48c1-a7c7-f9359ca0969d&fastSeek=1&X-Plex-Token=REDACTED], video_list_is_explicit=true, title=Prefácio, position=1, secure_uri=true, return_result=true}]
Starting external video player with intent: Intent { act=android.intent.action.VIEW dat=http://10.0.0.100:32400/... typ=video/* flg=0x1 pkg=com.mxtech.videoplayer.pro cmp=com.mxtech.videoplayer.pro/com.mxtech.videoplayer.ActivityScreen (has extras) } - Bundle[{video_list=[http://10.0.0.100:32400/video/:/transcode/universal/start.m3u8?X-Plex-Client-Capabilities=protocols%3Dhttp-live-streaming%2Chttp-mp4-streaming%2Chttp-mp4-video%2Chttp-mp4-video-720p%2Chttp-mp4-video-1080p%2Chttp-streaming-video%2Chttp-streaming-video-720p%2Chttp-streaming-video-1080p%3BvideoDecoders%3D*%3BaudioDecoders%3D*&path=%2Flibrary%2Fmetadata%2F19397&protocol=hls&X-Plex-Client-Profile-Extra=add-direct-play-profile%28type%3DvideoProfile%26container%3Dmp4%2Cavi%2Cmkv%26videoCodec%3D*%26audioCodec%3Daac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DmusicProfile%26container%3Dmp4%2Cmp3%2Cflac%2Cogg%2Cwav%26videoCodec%3D*%26audioCodec%3Dflac%2Copus%2Caac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DphotoProfile%26container%3Djpeg%2Cpng%2Cgif%26protocol%3D*%29%2Badd-transcode-target%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Bappend-transcode-target-codec%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dflac%26audioCodec%3Dflac%26protocol%3Dhttp%26context%3Dstreaming%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dmp3%26audioCodec%3Dmp3%26protocol%3Dhttp%26context%3Dstreaming%29&directPlay=1&directStream=1&X-Plex-Platform=Generic&X-Plex-Session-Identifier=a189b471-a88f-4cd8-9337-2e1251c17fa4&fastSeek=1&X-Plex-Client-Capabilities=protocols%3Dhttp-live-streaming%2Chttp-mp4-streaming%2Chttp-mp4-video%2Chttp-mp4-video-720p%2Chttp-mp4-video-1080p%2Chttp-streaming-video%2Chttp-streaming-video-720p%2Chttp-streaming-video-1080p%3BvideoDecoders%3D*%3BaudioDecoders%3D*&path=%2Flibrary%2Fmetadata%2F19397&protocol=hls&X-Plex-Client-Profile-Extra=add-direct-play-profile%28type%3DvideoProfile%26container%3Dmp4%2Cavi%2Cmkv%26videoCodec%3D*%26audioCodec%3Daac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DmusicProfile%26container%3Dmp4%2Cmp3%2Cflac%2Cogg%2Cwav%26videoCodec%3D*%26audioCodec%3Dflac%2Copus%2Caac%2Cmp3%26protocol%3D*%29%2Badd-direct-play-profile%28type%3DphotoProfile%26container%3Djpeg%2Cpng%2Cgif%26protocol%3D*%29%2Badd-transcode-target%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Bappend-transcode-target-codec%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dh264%26protocol%3Dhls%26container%3Dts%26audioCodec%3Daac%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dflac%26audioCodec%3Dflac%26protocol%3Dhttp%26context%3Dstreaming%29%2Badd-transcode-target%28type%3DmusicProfile%26container%3Dmp3%26audioCodec%3Dmp3%26protocol%3Dhttp%26context%3Dstreaming%29&directPlay=1&directStream=1&X-Plex-Platform=Generic&X-Plex-Session-Identifier=a189b471-a88f-4cd8-9337-2e1251c17fa4&fastSeek=1&X-Plex-Token=REDACTED], video_list_is_explicit=true, title=Prefácio, position=1, secure_uri=true, return_result=true}]
Starting external video player with intent: Intent { act=android.intent.action.VIEW dat=http://10.0.0.100:58050/... typ=video/* flg=0x1 pkg=com.mxtech.videoplayer.pro cmp=com.mxtech.videoplayer.pro/com.mxtech.videoplayer.ActivityScreen (has extras) } - Bundle[{video_list=[http://10.0.0.100:58050/chromecast/transcode?httpHeaders=QxF4EUZdXUdEHFdBUUJaE18Ub1lFXgYNYHUnUVoDEl9hZVdXdXdgHH1hVQQPGw%3D%3D&url=UEdNFAgaHQQdSAYbCAMFAVUMFQgOB0pbVUFOJh0CJxENcSIPUV5cFxcAcXQIVAZ5XUNQUEAEHXxTElcddl4NAFFQQwYIGlJYAQEQQQd2YVBMFVlbHR8EAVQTGHt3Elcdf1cPB1kUVAR8V0ZTCHZVCFFcUxAfVhsQCh1nAVRzHQkTBVUAFgBRM0pUABF7AUYgCVBQCxxYWUM%3D&forceProxy=true&preserveSubtitles=true&seekPosSec=127&accurateSeek=true&receiverSupportsHLS=true], video_list_is_explicit=true, title=Prefácio, position=125500, secure_uri=true, return_result=true}]
Starting external video player with intent: Intent { act=android.intent.action.VIEW dat=http://10.0.0.100:58050/... typ=video/* flg=0x1 pkg=com.mxtech.videoplayer.pro cmp=com.mxtech.videoplayer.pro/com.mxtech.videoplayer.ActivityScreen (has extras) } - Bundle[{video_list=[http://10.0.0.100:58050/chromecast/transcode?httpHeaders=QxF4EUZdXUdEHFdBUUJaE18Ub1lFXgYNYHUnUVoDEl9hZVdXdXdgHH1hVQQPGw%3D%3D&url=UEdNFAgaHQQdSAYbCAMFAVUMFQgOB0pbVUFOJh0CJxENcSIPUV5cFxcAcXQIVAZ5XUNQUEAEHXxTElcddl4NAFFQQwYIGlJYAQEQQQd2YVBMFVlbHR8EAVQTGHt3Elcdf1cPB1kUVAR8V0ZTCHZVCFFcUxAfVhsQCh1nAVRzHQkTBVUAFgBRM0pUABF7AUYgCVBQCxxYWUM%3D&forceProxy=true&preserveSubtitles=true&seekPosSec=127&accurateSeek=true&receiverSupportsHLS=true], video_list_is_explicit=true, title=Prefácio, position=125500, secure_uri=true, return_result=true}]

So one time Kodi without Bubble.
2 times the exact same media from Plex with the exact same settings.
2 times the exact same media from Kodi with bubble with the exact same settings.

When 2 times the same media from the same source you have different result then it’s the player since as you can see the intent is 100% identical.

Video showing what happens:

Alternative link for video:

So yes the video starts each time, what happens after is an issue in the player. Use VLC since it works for you.

The only negative point is that in many cases vlc doesn’t load the subtitles anymore, it used to do that, but it hasn’t loaded for a while, that’s why I prefer mx player, so for now I’ll leave it in manual selection, where the problem. Thanks, sorry I took up so much of your time.