jPlayer not playing after chrome 35 >

1,092 views
Skip to first unread message

Brainy ways

unread,
Jul 13, 2014, 9:34:01 AM7/13/14
to jpl...@googlegroups.com
thanks digitaltoast intro me to this group. I am new here and sorry if i break any group rules.

My scenario
I am develop a chrome package app to play the flash card with audio. The jplayer is using the event listener to trigger the next card when the audio is finish playing.

Now the chrome version 36 is OTA, and the functionality is broken.

Any solution for that? Did Adobe Flash jplayer work like html5? how to configure for that? thanks guy 

Jonathan2

unread,
Jul 14, 2014, 1:10:18 PM7/14/14
to jpl...@googlegroups.com
Have you got a test site we can look at?
Message has been deleted

Brainy ways

unread,
Jul 15, 2014, 1:54:41 AM7/15/14
to jpl...@googlegroups.com
Solution found !

change the mp3 to m4a, it's will work very well.

<code>

<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){

$("#jquery_jplayer_1").jPlayer({
ready: function (event) {
$(this).jPlayer("setMedia", {
title: "Bubble",
m4a: "../test/test.mp3"
});
},
swfPath: "../test",
supplied: "m4a, oga",
wmode: "window",
smoothPlayBar: true,
keyEnabled: true,
remainingDuration: true,
toggleDuration: true
});
});
//]]>
</script>

</code>

Jonathan2

unread,
Jul 15, 2014, 5:37:51 AM7/15/14
to jpl...@googlegroups.com
On Tuesday, 15 July 2014 06:54:41 UTC+1, Brainy ways wrote:
Solution found !

change the mp3 to m4a, it's will work very well.


Hmmmm... is that the only thing you changed? Because I see a couple of potential problems and reasons it might not have worked:


m4a: "../test/test.mp3"


If supplying an mp3 under the guise of an m4a works, then you are lucky! But...


supplied: "m4a, oga",


You are telling it you are also supplying an oga. But then you don't actually supply it.

Try changing it to

mp3: "../test/test.mp3"
supplied: "mp3",

And see if that helps...



Руслан Свирский

unread,
Jul 31, 2014, 11:54:11 AM7/31/14
to jpl...@googlegroups.com
Solution found !

change the mp3 to m4a, it's will work very well.
 
This solution works for me. Thanks! 

Mark Panaghiston

unread,
Aug 1, 2014, 12:32:51 PM8/1/14
to jpl...@googlegroups.com
The reason why that work is purely coincidence. Browsers that can play MP4 tend to be able to also play MP3.

It was failing due to the canPlayType test for the MP3. Chrome changed something after 6 years of it working so that the explicit codec info for the mp3 gives the "can't play it" response.

The github is now fixed with a version that works in Chrome.

Your "fix" worked because the test for MP4 continued to work in Chrome and then you just used the mp3 instead.
Reply all
Reply to author
Forward
0 new messages