Answer the question
In order to leave comments, you need to log in
How to play video on mobile version?
Friends, hello everyone!
Faced the problem that the video is not played on a mobile device, although everything is ok on the desktop
<video width="320" height="240" controls class="video" poster="<?php echo HOMES_VIDEO_DIR; ?>/video_preview.jpg">
<source src="<?php echo HOMES_VIDEO_DIR; ?>/video_home.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="<?php echo HOMES_VIDEO_DIR; ?>/video_home.webm" type='video/webm; codecs="vp8, vorbis"'>
<source src="<?php echo HOMES_VIDEO_DIR; ?>/video_home.ogv" type='video/ogg; codecs="theora, vorbis"'>
</video>
Answer the question
In order to leave comments, you need to log in
Autoplay on the phone - only without sound (as far as I remember)
muted="muted"
+ autoplay mobile browsers will not eat
so try to add controls
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question