![](https://secure.gravatar.com/avatar/e0d1fe76d4ed4790ee12ab9839a45063?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
HTML5 fallback when flash out of date and disabled by browser
I'd like to do HTML5 playback when a user's flash is out of date, rather than display the browser's native "flash out of date ->" button.
——> Is there a defined way to do this?
The setupError event is not called when the browser disables flash. The only way I can see to force html5 would be to do a timeout of a handful of seconds, waiting to see if the onReady callback has executed, and if it hasn’t, setup a new player with primary: ‘html5’.
This is kind of clumsy, and because initialization times vary, you have to do a long timeout of 5 seconds or more, during which the “flash out of date” widget is displayed.