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

Migrated from 6 to 7 - javascript stopped working


I have two players on this page When I was using version 6 of JWPlayer I used some Javascript to load a local video if the player had an error. This error would occur if a live stream wasn't detect. Since i've moved to version 7 it has suddenly stopped working, initially it was fine. Please see my code below.

<div id='race-graphics-stream'>
<script type='text/javascript'>
sources: [{
file: 'rtmp://',
file: '',
primary: "flash",
//image: '',
image: '/images/site/live/video-placeholder-sydney.jpg',
width: "100%",
aspectratio: "16:9",
repeat: "true",
//optional -
jwplayer('race-graphics-stream').on('Error', function(){
theTimeout = setTimeout(function(){

1 Community Answers


JW Player Support Agent  
0 rated :

Hi, there.

My name is Alex and I am one of the Support Engineers at JW Player. I will be more than happy to assist you with your questions.

In looking over your code, one thing does pop out to me in your method. The ‘error’ in .on(“error”) may have to be all lowercase. Please try that and let me know if the issue is still occurring.

Thank you.

This question has received the maximum number of answers.