add flash fallback to html5 function.