Page 1 of 1

TC4A hang on try to play web track with no internet

Posted: 2018-02-12, 17:21 UTC
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.

Posted: 2018-02-12, 17:32 UTC
by matixx
How to add a http track to Playlist?

Could you give an example please.

Greets

Posted: 2018-02-12, 17:40 UTC
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.

Posted: 2018-02-14, 19:17 UTC
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?

Posted: 2018-02-15, 10:18 UTC
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.