Modern browsers both on the desktop and on mobile devices support HTML Media. Chirs Double works for Mozilla and focuses on HTML Media, Nigel Parker works for Microsoft and is experienced in working with broadcast media on the web and more recently HTML Media. Together Chris and Nigel will take you through how you can leverage HTML Media in todays web applications and talk about what is coming next.
Unleash Your Potential - Namagunga Girls Coding Club
HTML Media: Where We Are & Where We Need To Go
1. Sponsored by
Auckland based Mozilla Developer Web & mobile evangelist at Microsoft NZ
Works on HTML5 video & audio Firefox support Motivated by big ideas & unconventional execution
2.
3.
4. <audio <video
src= src= The url to the audio or video
width= The width of the video element
height= The height of the video element
poster= The url to the thumbnail of the video
preload= preload= (none, metadata, auto) Start downloading
autoplay autoplay Audio or video should play immediately
loop loop Audio or video should return to start and play
controls controls Will show controls (play, pause, scrub bar)
> >
… …
</audio> </video>
5.
6. •
•
• application/octet-stream
• video/mp4, video/ogg, video/webm
•
• Fall-back content only displayed by browsers that do not support the <video> element
• If the browser supports video but not the given codec, fall-back code won’t fire.
•
• Content should be served from a HTTP 1.1-compatible web server to enable seek
ahead.
• Otherwise you must encode the video with key index frames in the file & not at the end.