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:
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:
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:
a.utils.log("No suitable players found");
$(document).trigger('videofail');Thanks for the easy-to-use player,
-Jasper Howard
@Jasper -
We have a ticket here that should address your suggestion:
http://developer.longtailvideo.com/trac/ticket/1450