[Pro-version] Logcat for Internal Player issue

Issue #253 new
Agon Bexheti created an issue

Hi Maxim,

I am using the latest pro version. I want to switch to the internal player because the builtin VLC player suffers when playing high quality streams. The internal player is much faster and it doesn't have issues to play HD streams.

However, the internal player has a problem. Very often it fails to load channels. I have to change back and forth between channels in order to get a channel to play. Observing the overlay buttons I see that the player state is stopped.

I also tried the emulator (free version) on a Nexus 5 device with the stock rom, and the internal player still has the same problems.

I grabbed the contents of Logcat (error level) when trying to play 4 channels which failed to start. Please find attached the logcat file.

  • In three cases I observed the following error: Attempt to call getDuration without a valid mediaplayer

  • In one case the following issue happened: Failed to create audio/mpeg-L2

When a channel is successfully opened the logcat is empty.

Thank you for your efforts on developing this emulator.

Comments (10)

  1. Agon Bexheti reporter

    I forgot to say that the logcat was generated using the Nexus5 with the latest android. From the network logs I saw that the internal player is identified with the stagefright user-agent string.

  2. Agon Bexheti reporter

    And also the custom user-agent that is specified in the settings is not passed when using the internal player. Can you also have a look at this?

  3. Gojko Bozic

    I have same problem with load failing, i tried with multiple devices, but there is same problem.

  4. Max repo owner

    Hi. I've read you log, but can't help you. Internal media player uses system codecs to play media files and it looks like the media format you're trying to play can't be recognized by codecs on your device. There's no fix for this issue on this moment. So if you don't like how VLC works you may try to use some external players, but video preview will not be available in this case.

  5. Agon Bexheti reporter

    If it is an issue with the codecs then the channel wouldn't play at all. In this case the same channel will play after changing it 3-4 times. I think the problem in the logcat is related to the method getDuration geting called before the player is fully setup.

    It's not thet I don't like VLC, it just doesn't play most if the high quality streams.

    I would really appreciate if you can fix the problem with the getDuration method. Van you please try on one ofyour devices? For me the problem happens with any stream, and after some tries the stream will start to play.

    Thank you.

  6. Agon Bexheti reporter

    Can you please try the internal player in one of your devices? I am curious to know. As I told you I also tried it in a very decend device such as Nexus 5 with the latest Android installed, and the problem is the same. A channel will eventually start to play after 3-4 times. Sometimes it starts to play on the first try.

  7. Log in to comment