mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-14 20:18:00 +00:00
some android devices don't play videos automatically.. added click to start
This commit is contained in:
@@ -49,6 +49,13 @@
|
|||||||
</video>
|
</video>
|
||||||
<small><?php echo $filesize; ?></small>
|
<small><?php echo $filesize; ?></small>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var video = document.getElementById('video');
|
||||||
|
video.addEventListener('click',function(){
|
||||||
|
video.play();
|
||||||
|
},false);
|
||||||
|
</script>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user