Search code examples
javascriptjplayer

how to detect if flash player is not there when using jPlayer to play sound


in jPlayer, if HTML5 is not supported, it falls back to flash player, But how do i know when flash player itself is not installed on the browser when jPlayer is trying to fall back to flash. I Have this problem. My player just stops like a mute, when i dont have flash, instead of giving a nice warning to install a flash player. Now in case of norml HTML tags i know how to do this, but how to do the same for jPlayer?


Solution

  • Well, The only workaround i have found till now is that jPlayer doesnot put anything in its placeholder when both Flash and HTML5 is missing. So its just best to put a warning in your placeholder of the jPlayer.

    This may not be a fool-proof solution, but this is the best i could do. Any other suggestions are welcomed