TC4A hang on try to play web track with no internet

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 hang on try to play web track with no internet

Post by *DrShark »

This happened on 2 devices I tried, and was reported by email. Christian can't reproduce this on own devices, and logs from my devices didn't help to find out the reason of the hang.

To reproduce a hang, a device with Stagefright Android bug is required.

Steps to reproduce:
1) disable (turn off) all internet connections (like Wi-Fi or mobile data) on device;
2) add some internet track to TC Media Player queue. It may be done by opening (by click in TC panel or using Load playlist from player) the playlist (xspf/m3u/m3u8/pls) with a track located on http(s) link;
3) start playing the track by a tap on it in TC Media Player playlist;
4) TC will show Stagefright "severe video bug" warning.
Tap on "Yes" there to agree to play a track. TC may hang then.
5) If TC didn't hang in previous step, repeat steps 3 and 4 again.
TC then hangs with "severe video bug" warning still opened.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
matixx
Power Member
Power Member
Posts: 1117
Joined: 2003-03-21, 02:37 UTC
Location: ....

Post by *matixx »

How to add a http track to Playlist?

Could you give an example please.

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

Post by *DrShark »

Save following as playlist.xspf (it's the UTF-8+BOM text file):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
  <title/>
  <creator/>
  <trackList>
    <track>
      <location>http://example.com:8080/track</location>
      <title>Test Artist - Test Title</title>
      <annotation>Annotation</annotation>
      <info>http://example.com</info>
    </track>
  </trackList>
</playlist>
Then either in TC for Android click on a file to open it, or in TC Media Player open it using "Load playlist" button.
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:

Post by *DrShark »

TC 2.81 beta 12 What's New (Google Play) wrote:- MediaPlayer: Warn when trying to play a stream when there is no Internet connection
Thanks, like I wrote in email this new dialog doesn't cause hangs on my devices anymore. Hope this dialog will be improved further in later versions, so it will offer a way either permanently or for TC Media Player session to auto skip internet tracks and play just local files of queue playlist while there is no internet connection.

Do you still interested in reports about hangs of "severe video bug" warning that may happen with no internet on TC versions older than 2.81 beta 12 on Android devices not used for current testing?
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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, because I have no means to fix it. It probably happens deep in the Android MediaPlayer implementation of your device. That's why I added this workaround, which is useful also for other users.
Author of Total Commander
https://www.ghisler.com
Post Reply