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

Error: Cannot read property 'replace' of undefined


Hi,
I am embedding youtube videos on JW Player. This has been working fine all these days but it has stopped to work. I am getting an error "Cannot read property 'replace' of undefined" for all the videos.

Here is an example.
http://silverskreen.com/movie4u.php?movie_id=284

I would appreciate your help with this!

9 Community Answers

jherrieven

User  
1 rated :

JW6.9 was released in the cloud yesterday - this is what you are now using.

I'd suggest you self-host JW6.8 (as a licensed user), or point directly to the 6.8 CDN version: http://p.jwpcdn.com/6/8/jwplayer.js (though you'd need to separately set your key in this case) in order to give yourself some time to figure out what the issue with JW6.9 is.

James Herrieven

Ethan Feldman

JW Player Support Agent  
1 rated :

<script type="text/javascript" src="http://silverskreen.com/js/jwtube.min.js"></script>

Removing this line fixed it locally for me.

I know that this is what James wrote for YouTube support in HTML5. However, now that 6.9 is out, this is natively built in.

jherrieven

User  
1 rated :

Yes, good spot.

You shouldn't need jwTube now JW6.9 is being used.

James

Ethan Feldman

JW Player Support Agent  
0 rated :

Thanks for writing jwTube James. It really did fill a void for us while we didn’t have official support for YouTube HTML5 :)

BRangashamaiah

User  
0 rated :

Hi James, Ethan,
It worked after the change. Thanks for your help with this. I greatly appreciate it.

Cheers!
Bharath

Ethan Feldman

JW Player Support Agent  
0 rated :

Np =)

alecosnet

User  
1 rated :

Unable to get the value of the property 'replace':
object null or undefined

using self-hosted version 6.9 on IE 9.00...

but entering in 'compatibility mode' works fine... is a quite strange...

I provide a link: http://www.alecos.it/test/index.html

I hope in a fix asap, thanks...

Alessandro

alecosnet

User  
1 rated :

From technical assistence team: " put in the setup primary: 'flash' in order to make it working on older browsers since jwplayer 6.9 has a new HTML5 support and may not work on older browsers '. I edited as suggested and now working fine also on IE 9.00 without errors!!!

alecosnet

User  
0 rated :

At this point I can remove my test page since the problem is solved!

This question has received the maximum number of answers.