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