HTML5 video using only one video format -


adobe has said plans phase out flash player plug-in end of 2020. people said flash content should have been migrated other technologies html5. agree more or less, how ready html5 when in comes replacing flash entirely?

let's take everyday example - video playback on web.

on flash, can embed 1 player videos on website , change paths link different flv videos(or mp4's) different videos on site. long flash installed on client side, need not worry browser using.

however html5, cross-browser compatible, afaik, need have 3 video files (three different formats of same video - mp4, webm , ogg).

<video id="video" controls preload="metadata" poster="img/poster.jpg">   <source src="video/v1.mp4" type="video/mp4">   <source src="video/v1.webm" type="video/webm">   <source src="video/v1.ogg" type="video/ogg">   <!-- flash fallback -->   <object type="application/x-shockwave-flash" data="flash-player.swf?videourl=video/v1.mp4" width="1024" height="576">      <param name="movie" value="flash-player.swf?videourl=video/v1.mp4" />      <param name="allowfullscreen" value="true" />      <param name="wmode" value="transparent" />      <param name="flashvars" value="controlbar=over&amp;image=img/poster.jpg&amp;file=flash-player.swf?videourl=video/v1.mp4" />      <img alt="my video" src="img/poster.jpg" width="1024" height="428" title="no video playback possible, please download video link below" />   </object>   <!-- offer download -->   <a href="video/v1.mp4">download mp4</a> 

if have 80+ different videos on site, have host 240+ video files on server, quite troublesome prepare , manage files. hate transcode video different format every time before putting video content on server.

it mid-2017, , html5 video nothing new. wonder if there new cross-browser compatible method/hack embed video playback using 1 video format?

html5 ready video. advantages of using html5 on flash have playback on mobile must in 2017. solution issue best can use mp4 (encoded h264 , aac). video format supported on browsers (webm , ogg supported on browsers).


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -