HTML:
<video class="0" autoplay="true" width="586px" height="440" src=""></video>
JS:
$('video').mediaelementplayer();
if($('video').attr('class') == "0"){
$('video')[0].player.pause();
}
In chrome the video is paused correctly. However in firefox it is not paused. Any ideas how to fix this?
This will pause your video
Demo: http://jsbin.com/eyepat/2/edit#javascript,html
On a sidenote classes can’t start with an integer http://www.w3schools.com/tags/att_standard_class.asp