![]() ![]() the preload attribute doesn't seem to make much difference.As a side-note, I'd also really think about your audience if you intend to autoplay video with sound. the muted attribute stops android from putting a little speaker icon in the status bar when playing but off-screen, even when the video doesn't have audio.having a controls attribute and manual play vs playing through javascript doesn't appear to make any difference.It seems if the mobile browser encounters a video that is "too high-res", it just stops processing the other sources and prefers the poster. Always have low resolution versions of a video first. The order of the videos matters more than the source media attribute.Apache, nginx and Amazon S3 for example do support them, but many smaller web servers (like WSGI servers) do not. Safari (and probably iOS) will not play a video unless served by a server supporting byte-ranges.Chrome mobile seems very picky about having a video source whose resolution is too high. If a browser plays a file when you direct it to the file url, this does not mean it will play it when embedded in a video tag, though it will tell you if the format & codecs are supported if it does play.It seems Chrome mobile prefers webm if it can get it, so put that first.These are the most supported formats and have equivalent quality for the same bitrate. I would recommend having both webm(vp8/vorbis) and mp4(h264/aac) formats.The video is embedded in a carousel so is sometimes visible, sometimes not. I've been debugging html5 video playback on Chrome desktop and mobile on an Android 5.0.1 Samsung S4 with Chrome 61 and the embedded browser, and Safari 9 & 11, using an automatic javascript play/pause written in AngularJS (below). There doesn't appear to be any great info on this, so thought I'd post my findings. ![]() How can I get it work in Chrome on Mobile? I also take this article in account and tried to play the videos by JavaScript additionally as well as tried to remove the type attribute on the first video tag without success. For test purposes I tried all common formats: mp4Īccording to Mozilla the first video, that is H.264 + AAC in MP4 should play. In other browsers like the Puffin browser the video is playing. I have problems to get a video to play on my Android mobile in the latest version of Chrome. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |