I'm using JWPlayer and passing a .smil
source and a .m3u8
source to the constructor:
var player = jwplayer("jwplayer-container");
player.setup({
...
sources: [
{
file: "some-rtmp-manifiest.smil"
},
{
file: "some-hls-playlist.m3u8"
}
],
...
});
Unfortunately, if I view my player on a browser that doesn't support HLS or have Flash installed, I see an ugly and confusing error message in the player saying
Error loading player: No playable sources found
How can I detect this particular state in order to show my own error message (suggesting that the user installs Flash)?