
"No suitable players found" - Event Trigger Request
I wanted to use an image fall-back in case HTML5 video and Flash were not supported in a user's browser. I did not like how the image would appear before the video had loaded (as my videos were auto-playing) when I used the 'image' declaration in the setup:
bc.. jwplayer().setup({image: '...'});
I ended up altering the jwplayer.js source to trigger a custom event when the "No suitable players found" message is logged in the console:
bc.. a.utils.console.log("No suitable players found");
My request is to add this feature to a future release as it seems quite useful if the only time you want to display an image is if there are no other ways to display your media.
Note: I am using jQuery so my event trigger also uses jQuery code but here is the change I made to the jwplayer.js source:
bc.. a.utils.log("No suitable players found");
$(document).trigger('videofail');
Thanks for the easy-to-use player,
-Jasper Howard