lundi 12 janvier 2015

Make object tag with flash player video play on click


I have and object with flash player in it.



<object type='application/x-shockwave-flash' data='http://url/StrobeMediaPlayback.swf' width='250' height='150' id='video2' style='visibility: visible;'>
<param name='allowFullScreen' value='true'>
<param name='allowNetworking' value='all'>
<param name='wmode' value='opaque'>
<param name='flashvars' value='src=http://url;plugin_hls=url/Scripts/HLSDynamicPlugin.swf&amp;autoPlay=true'>
</object>


Also I have an button-div and I want to make video play when I click it.



<div class="playVideoButton"></div>


I've found different solutions. such as document.getElementById('video2').Play(), but none of them worked. Sorry If I ask obvious question, but I really can't find the way to do it. For example about Play() method, javascript says that it is undefined.





Aucun commentaire:

Enregistrer un commentaire