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

7.8.1: Playlist sources don't fallback


If the first source on the list has an error, jwplayer 7.8.1 simply displays an error message instead of attempting to play the next media file in the sources list. Is there a way to tell it to automatically play the next source (fallback) or a way to manually select the next source and play it?

Example code:

<html>
<head>
<script type="text/javascript" src="jscripts/jquery-1.7.min.js"></script>
<script type="text/javascript" src="jwplayer7/jwplayer.js"></script>
<script type="text/javascript">
$(function(){
player = jwplayer("player").setup({
sources: [{
file: "nofile.mp4",
}, {
file: "video.mp4"
}]
});

});
</script>
</head>
<body>

<div id="player"></div>
</body>
</html>

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

The sources block does not account for the media not being valid. In those cases an error will be thrown and you would setup your backup stream then.

http://qa.jwplayer.com.s3.amazonaws.com/~george/fallback_error.html

At the moment there is a bug in 7.8.2, where the on(‘error’) will not be called when the media 404s. it will be fixed in 7.9

This question has received the maximum number of answers.