Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Jwplayer crashes in Chrome youtube movies


Hi,

We're using javascript API controls with JWplayer (current version 6.8) and we're using mixed uploaded content and youtube urls for playback. I use onComplete API listener to detect if the movie is finished and I remove the player instance and create a new one, this way I'm able to switch from youtube and uploaded movie playback and vice versa.

It works perfect for all browsers except in Chrome in this situation: When a youtube movie is played (and I presume jwplayer is switched to use flash in this situation). In Chrome when onComplete is called after playing a youtube movie and I want to remove the jwplayer instance and setup a new one, Chrome crashes with the error: a plug-in shockwave flash isn't responding.

Which is very strange behaviour because I use the exact same procedure when I manually click another item in the playlist. In this situation ... chrome does not crash.
I'm using Chrome 33.0.1750.152

This is the demo-link
http://orkater.dev.wecross.nl/content/playlist-test

Can anyone help me figure out what's causing this?

Regards,
Truong Dang

11 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

I hear audio on this page, but I don’t see any video at all?

JW Player

User  
1 rated :

Hi,
Can you take a look again? The link should work now.
Thanks.

Ethan Feldman

JW Player Support Agent  
0 rated :

The player here is showing up in html5 mode as default when the page first loads, and since you are trying to run Youtube, that will not yet work on the desktop.

JW Player

User  
0 rated :

Ethan,

As I stated in my explanation I'm initiating jwplayer on every new movie.
Removing the player and use setup again for a new file in code.

So according to which type of movie in the queue, jwplayer will re-initialize with a new setup and file:xxxxx parameter.

The initial file is indeed one in html5 mode with an uploaded file.
The next one (radiohead street spirit) is a youtube url and all other movies after radiohead are youtube urls. It is here where chrome crashes after the oncomplete, and trying to play the next file.

So ... is this more helpful info for you to help me? Can you confirm this behaviour?

Regards.

JW Player

User  
0 rated :

For your convenience, the following url contains youtube url implementation only:
http://orkater.dev.wecross.nl/tv/op-de-bodem-0

I think it will be easier to check the behaviour this way.

Ethan Feldman

JW Player Support Agent  
0 rated :

I see it. What about if you disable pepperflash?

JW Player

User  
0 rated :

Hi Ethan,

Thanx for the suggestion. When I deactivate pepperflash ... it works as normal indeed. I get no flash error. I had no idea that Chrome switched it's flash plugin from adobe to something else.

Is there are a workaround inside jwplayer for this; to still use pepperflash, or are we completely in the hands of google+chrome for a fix? Because I don't think the gross of the public will understand this.

Thanks,
Regards.

JW Player

User  
0 rated :

e.g. maybe always force html5 mode? or is that impossible for youtube urls?

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, this is an issue with PepperFlash+Chrome, we can’t really override it. It is not possible yet to force html5 mode for YouTube.

However, forum member James has this script that you can work with which will give you html5 support in desktops for YouTube, it might fix your problem – http://powered-by-haiku.co.uk/?p=563

JW Player

User  
0 rated :

Hi Ethan,

Yeah I've tried it with jwtube.js already, but with the same results when Pepperflash is enabled.
I guess we'll have to wait for a new chrome and pepperflash update.

Thanx for the help anyway.

Regards!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np. Odd, you should be able to use his script and then set primary to html5, so that way flash is not needed.

This question has received the maximum number of answers.