jplayer / jPlayer

jPlayer : HTML5 Audio & Video for jQuery
http://jplayer.org/
Other
4.6k stars 1.47k forks source link

JPlayer does not work on Android Chrome #267

Closed Schyzophrenic closed 9 years ago

Schyzophrenic commented 9 years ago

I opened http://jplayer.org/latest/demo-01/ on an Android device (Nexus 5, full configuration below).

After a while, the music starts but there is definitely something odd... I have also performed a test with a server that streams the response, and it never starts.

Versions: Chrome 39.0.2171.59 OS: Android 5.0.0; Nexus 5 Build/LRX21O

I am a bit stuck on this issue...

thepag commented 9 years ago

Reviewed on Nexus 7. The demo worked fine first time and for 3 reties after that. The MP3 streaming demo also worked fine for me.

Android tends to perform poorly often, but that is usually due to Android, or rather the 10 billion variations of brand, hardware, OS version and what way the wind is blowing. When it is not Android failing, it is Chrome browser failing. But in this case, it I suspect that your internet was on the fritz or our website blipped that holds the media. At least, for the case of our demo, because I do jump through a lot of hoops to test this on a range of device. I simply visit a local electronics store in town and test on a large range of Android devices. I also have some in the office to test with. And there are emulators. So we test a lot on Android and @maboa tests regularly on his Nexus 5 too.

As for your stream problem, you should try a direct connection to the stream's STREAM url and I expect that you'l find it does not play either. Android is sensitive to headers, more than any other - bar the MIME type being important everywhere - and the AAC stream will not work period. The native AAC player in Chrome does not like AAC streams.

The header info is here: Stream Headers for Android I recorded it with the smart read file PHP repo, since it seemed the most appropriate at the time.

Schyzophrenic commented 9 years ago

Thank you @thepag for this detailed answer! It surely gives enough material to pursue the investigation and is really appreciated. If I find the root cause of the issue I will detail it here.

For information, I have double checked the demo on the website, and it works well. I just have to wait a few secs before the music starts, which is fine.

Thanks again