I use this code to make a video (like a banner, without any controls), auto play and loop forever.
<video id="video1" class="video-js vjs-default-skin" controls width="900" height="500" poster="myposter.jpg" data-setup='{ "controls": false, "loop": "true", "autoplay": true, "preload": "true"}'> <source src="thisismyvideoyay.webm" type='video/webm' /> </video>
It works fine on my computer, but on my phone (Android OS 4.2.2 with Chrome) it does not autostart or boot, and does not loop after it finishes.
I read this on the Video.js page:
Auto: start downloading the video immediately (if the browser agrees). Some mobile devices, such as iPhones and iPads, will not preload the video in order to protect the bandwidth of their users. This is why the value is called "auto", and not something more definitive like "true".
I set preload to true, but it still does not auto-play or loop.
Is this a feature of my browser and how can I avoid this?
I tried in other browsers:
- UC Browser doesn't seem to support HTML5 at all?
- A small video is displayed in the browser in the browser, but the player is not displayed.
- ↑ The same with Maxthon ↑
source share