Chrome for Android update\ mp3 stream

969 views
Skip to first unread message

Elad Naimi

unread,
Sep 7, 2014, 7:09:27 AM9/7/14
to jpl...@googlegroups.com
Chrome for Android updated 2 days ago and since then jplayer doesn't work anymore with mp3 stream
I'm using jplayer 2.7

Thanks

tta

unread,
Sep 7, 2014, 10:30:51 AM9/7/14
to jpl...@googlegroups.com
I've just been notified of the same issue from a user. (Android 4.4.2 with Chrome) 


Elad Naimi

unread,
Sep 8, 2014, 12:29:16 PM9/8/14
to jpl...@googlegroups.com
Hi

Is there a chance for a fix in the coming days?
Please let me know... I have to find a solution for this soon

Cyril Agard

unread,
Sep 9, 2014, 5:23:57 PM9/9/14
to jpl...@googlegroups.com
Hi, 
Today we noticed the same behavior on our site, but it was working fine in Google Chrome v.36.0.1985.122, but stopped working in latest one v.37.0.2062.117.
I spent whole day today, trying to find a workaround.
I found a solution, but it's kinda weird one.
In the source there is a special checks called 'androidFix', so if you disable a part of it, player starts working.

If you download latest jPlayer version 2.7.0, you can comment out line 1827, and it will work. Not sure, if it breaks old versions of android browsers, or Google Chrome (Checked on 4 devices, with different version of browsers, still works.)

// Setup the Android Fix - Only for HTML audio.
if($.jPlayer.platform.android) {
   
//self.androidFix.setMedia = true;
}

I hope it will help somebody to have quick fix, while official one is coming.

Ahmed Etman

unread,
Sep 10, 2014, 5:49:51 AM9/10/14
to jpl...@googlegroups.com
thank youuuuuu , you have saved me time and effort :)

Richard Kaiser

unread,
Sep 10, 2014, 6:36:55 AM9/10/14
to jpl...@googlegroups.com
Yes, that does the job :) Thank you very much!

Elad Naimi

unread,
Sep 10, 2014, 8:08:01 AM9/10/14
to jpl...@googlegroups.com
It's working  :)

Thanks!!!



On Wednesday, September 10, 2014 12:23:57 AM UTC+3, Cyril Agard wrote:

croelec...@gmail.com

unread,
Sep 10, 2014, 1:19:39 PM9/10/14
to jpl...@googlegroups.com
I'm kind of lost here. i looked at jquery.jplayer.min.js file and I cannot figure out where to do change. Am I doing something wrong?

tta

unread,
Sep 10, 2014, 5:03:02 PM9/10/14
to jpl...@googlegroups.com
Worked for me as well. Users report success (once they cleared their caches!). Thanks for this fix! 

Elad Naimi

unread,
Sep 12, 2014, 12:37:49 AM9/12/14
to jpl...@googlegroups.com
instead of working with jquery.jplayer.min.js
delete that file

and replace it with jquery.jplayer.js
you can find it here http://jplayer.org/download/
latest release -> jplayer 2.7.0 --> [line 2] source

now follow the instructions like you did before

--
You received this message because you are subscribed to a topic in the Google Groups "jPlayer: HTML5 Audio & Video for jQuery" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jplayer/BoVUNok0yl4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jplayer+u...@googlegroups.com.
To post to this group, send email to jpl...@googlegroups.com.
Visit this group at http://groups.google.com/group/jplayer.
For more options, visit https://groups.google.com/d/optout.



--

 נינג'ה רקורדס. טכנאי ומעצב קול.

ninjarecords.co.il   |   052-5787652

croelec...@gmail.com

unread,
Sep 12, 2014, 10:01:01 AM9/12/14
to jpl...@googlegroups.com
I was able to figure it out by myself. Thank you anyway. And I learned how to minimize Java code too in the process. I guess I had some extra time on my hands :-)

AdamGuy

unread,
Sep 16, 2014, 10:45:17 AM9/16/14
to jpl...@googlegroups.com
The fix helped, but now I have users of older androids that can't use the player.

Hope a permanent fix is in the works :)

Mark Panaghiston

unread,
Sep 19, 2014, 9:42:03 AM9/19/14
to jpl...@googlegroups.com
It is about time I commented on this thread...

First of all, thanks to Cyril, Elad and others that have helped in this thread.

The problem here is that Google keep moving the goal posts.

First of all they took about 4 years to fix a basic bug with the audio element... Simply change the SRC and tell it to play and OMFG that was too complicated. So we had to allow it time for a cup of warm milk and a biscuit in between changing the media URL and asking it to play. To do this, we used the progress event to ensure that the media element was ready and setup with the new URL and ready to play it without throwing the pacifier. We used the progress event as an alternative to the "wait 3 seconds and it should work" solution... After all, we are making every android user wait, so I wanted it to be the absolute minimum and robust time, hence the progress event.

Pretty much as we released the android fix, the mainstream - non google - devices, like Samsung, started working without the fix in the default browser.

In the current Android, the progress event does not fire in the same way as before. Before, changing the SRC would cause the progress event to fire, which we used to apply the fix. Now that never happens, so the fix is breaking all of android.

I am currently looking into other events that we could use for the purpose, otherwise we cannot fix both the old bugs while supporting the current release... And the current release will win if it comes to an ultimatum. ie., Just remove the fix.

It should be noted, that this android fix that I talk of only affected cases where you changed the media, such as a playlist.

Anywayz, I will be looking into this in detail and plan to release a solution next week.

Mark Panaghiston

unread,
Sep 19, 2014, 11:16:08 AM9/19/14
to jpl...@googlegroups.com
My initial investigation into an alternative event shows the loadeddata event as a strong contender for the androidFix. My initial tests on a Nexus 7 and a really old 2.3 phone show it working well on both. (The current nexus 7 does not work with the current jPlayer 2.7.0 - And YES, it did when I published 2.7.0 a few weeks ago.)

Mark Panaghiston

unread,
Sep 19, 2014, 11:55:55 AM9/19/14
to jpl...@googlegroups.com
The fix is on github, jPlayer 2.7.1. See post for more info:

Elad Naimi

unread,
Sep 21, 2014, 12:29:11 PM9/21/14
to jpl...@googlegroups.com
It's working

thanks!

Jonathan2

unread,
Sep 24, 2014, 3:01:27 AM9/24/14
to jpl...@googlegroups.com
Looks like this HAS now been fixed with v2.7.1 on Github - you can download the file here:

Given that this affects so many users, it's unfortunate that this isn't on the main download site.

The good news is that it's available all nice and compressed on cdnjs - just link to this instead of your local copy or having to mess around downloading the version on Github :)
Reply all
Reply to author
Forward
0 new messages