mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-14 12:08: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">
|
<source src="<?php echo DOMAINPATH.'raw/webm/'.$hash; ?>" type="video/webm">
|
||||||
</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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user