
Custom Error Message for "No playable sources found"
How replace error "No playable sources found" with a video?
This code failed :(
var player = jwplayer('player');
player.setup({
file: "//content.jwplatform.com/videos/7RtXk3vl-52qL9xLP",// error config this code
image: "//s.jwpcdn.com/thumbs/RxiqSWej-640.jpg"
});
player.on('error', function() {
player.load({
file:"//content.jwplatform.com/videos/7RtXk3vl-52qL9xLP.mp4",
});
player.play();
});
player.on('setupError', function() {
player.load({file: '//content.jwplatform.com/videos/7RtXk3vl-52qL9xLP.mp4'});
});
player.on('buffer', function() {
theTimeout = setTimeout(function() {
player.load({
file:"//content.jwplatform.com/videos/7RtXk3vl-52qL9xLP.mp4",
image:"//content.jwplatform.com/thumbs/7RtXk3vl-480.jpg"
});
player.play();
}, 5000);
});