Answer the question
In order to leave comments, you need to log in
How to determine if the "click to play" option for Flash is enabled via js?
The task is to make a preview image for flash if the browser has "click to play" for the flash plugin. That is, similar to the video tag with the poster attribute ( codepen.io/anon/pen/NGYdpY ). Maybe there is some best practice for this case...
Answer the question
In order to leave comments, you need to log in
For example, you can create a script on the page, and a certain flag (let's call it isFlashShown), which is equal to zero by default. Then, after loading the script, run something like the following code
setTimeout(function(){
if(!isFlashShown){
//показываем постер
}
},2000);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question