SlideShare a Scribd company logo
HTML5 MULTIMEDIA SUPPORT
VIDEO FORMATS
POPULAR FORMATS
Ogg/Theora (.ogv)
WebM/VP8 (.webm)
MPEG-4/H.264 (.mp4)
IMPLEMENTINGTHE <VIDEO> ELEMENT
<video width="320" height="240" controls="controls">
<source src="movie.mp4" />
You need a browser that supports HTML5!
</video>
SETTINGTHE SOURCE
<video controls="controls" height="480">
<source src="eagle.webm" type='video/webm; codecs="vorbis,
vp8"' />
<source src="eagle.ogv" type='video/ogg; codecs="theora,
vorbis"' />
<source src="eagle.mp4" type='video/mp4;
codecs="avc1.42E01E, mp4a.40.2"' />
</video>
CONFIGURINGTHE <VIDEO> ELEMENT
 autoplay
 controls
 height
 loop
 muted
 poster
 preload
 src
 width
ACCESSINGTRACKS
TheW3C has developed a new standard, calledWebVTT
(WebVideoTextTracks).
WebVTT file format is simple and easily readable by
browsers and developers.
Based on a popular subtitling format called SubRipText
(SRT).
USING WEBVTT FORMAT
WEBVTT FILE
00:00:07.500 --> 00:00:08.750
He's fidgety.
00:00:09.000 --> 00:00:12.000
There he goes!!!
PLAYING AUDIO
AUDIO FORMATS
Ogg/Vorbis (.oga, .ogg)
MP3 (.mp3)
MP4 (.mp4, .mp4a, .aac)
WAV (.wav)
THE <AUDIO> ELEMENT
<audio controls="controls">
<source src="song.mp3" />
You need a browser that supports HTML5!
</audio>
SETTINGTHE SOURCE
<audio id="audio" controls="controls">
<source src="media/kittycat.oga" type='audio/ogg;
codecs="vorbis"' />
<source src="media/kittycat.wav" type='audio/wav;
codecs="1"' />
<source src="media/kittycat.mp3" type='audio/mpeg;
codecs="mp3"' />
</audio>
CONFIGURINGTHE <AUDIO> ELEMENT
 autoplay
 controls
 loop
 preload
 src

More Related Content

PDF
HTML5 multimedia - browser-native video and audio - DevUp HTML5 / Barcelona /...
PDF
Mobile Web Video
PDF
HTML5 multimedia - browser-native video and audio - JSDay / Verona / 17 May 2012
PDF
HTML Media: Where We Are & Where We Need To Go
KEY
HTML5 Video Presentation
PDF
Taking HTML5 video a step further
PDF
WordPress Hosting Survival Guide
KEY
Video.js - How to build and HTML5 Video Player
HTML5 multimedia - browser-native video and audio - DevUp HTML5 / Barcelona /...
Mobile Web Video
HTML5 multimedia - browser-native video and audio - JSDay / Verona / 17 May 2012
HTML Media: Where We Are & Where We Need To Go
HTML5 Video Presentation
Taking HTML5 video a step further
WordPress Hosting Survival Guide
Video.js - How to build and HTML5 Video Player

What's hot (12)

PDF
audio, video and canvas in HTML5 - standards>next Manchester 29.09.2010
PPT
Html5 vs Flash video
PDF
vmware Guest os guide
PDF
Html5 - audio and video tags
PDF
State of Media Accessibility in HTML5
PPTX
Got &lt;video>? Implementing HTML5 Video for Library Tutorials
PDF
Making the HTML5 Video element interactive
PPT
Web Platform Installer Announcement
PDF
Html5 Open Video Tutorial
PPTX
20 tips to Improving Your WordPress Site...for Beginners
PPTX
20 Tips to Improving WordPress Website - for Beginners-Aus-2017
audio, video and canvas in HTML5 - standards>next Manchester 29.09.2010
Html5 vs Flash video
vmware Guest os guide
Html5 - audio and video tags
State of Media Accessibility in HTML5
Got &lt;video>? Implementing HTML5 Video for Library Tutorials
Making the HTML5 Video element interactive
Web Platform Installer Announcement
Html5 Open Video Tutorial
20 tips to Improving Your WordPress Site...for Beginners
20 Tips to Improving WordPress Website - for Beginners-Aus-2017
Ad

Viewers also liked (6)

PPTX
Universal Usability
PPTX
Interface Design
PPTX
Information Architecture
PPTX
Drawing with the HTML5 Canvas
PPTX
PHP Strings and Patterns
PPTX
Website Security
Universal Usability
Interface Design
Information Architecture
Drawing with the HTML5 Canvas
PHP Strings and Patterns
Website Security
Ad

Similar to HTML5 Multimedia Support (20)

PPTX
Use of Multimedia tag in HTML using exmples
PPTX
HTML Multimedia.pptx
PPTX
Html media
PDF
Html5video
PPTX
Lecture9 web design and development
PPTX
Designing web pages html videos
PPTX
Html multimedia
PDF
HTML5 multimedia - where we are, where we're going
KEY
HTML5 Video for WordPress
PPTX
HTML5 - Audio/Video Encoding
PDF
Beginning html5 media, 2nd edition
 
PPTX
FYBSC IT Web Programming Unit II Audio Video in HTML
PDF
HTML5 Audio & Video
PPTX
HTML5 Multimedia Streaming
PDF
Multimedia on the web - HTML5 video and audio
PPTX
Html audio video
PPTX
Html 5 full course
PDF
HTML5 Multimedia: where we are, where we're going
PDF
Basics of HTML5 for Phonegap
KEY
Looking into HTML5 + CSS3
Use of Multimedia tag in HTML using exmples
HTML Multimedia.pptx
Html media
Html5video
Lecture9 web design and development
Designing web pages html videos
Html multimedia
HTML5 multimedia - where we are, where we're going
HTML5 Video for WordPress
HTML5 - Audio/Video Encoding
Beginning html5 media, 2nd edition
 
FYBSC IT Web Programming Unit II Audio Video in HTML
HTML5 Audio & Video
HTML5 Multimedia Streaming
Multimedia on the web - HTML5 video and audio
Html audio video
Html 5 full course
HTML5 Multimedia: where we are, where we're going
Basics of HTML5 for Phonegap
Looking into HTML5 + CSS3

More from Henry Osborne (20)

PPTX
Android Fundamentals
PPTX
Open Source Education
PPTX
Security Concepts - Linux
PPTX
Networking Basics with Linux
PPTX
Disk and File System Management in Linux
PPTX
XML and Web Services
PPTX
Elements of Object-oriented Design
PPTX
Database Programming
PPTX
OOP in PHP
PPTX
Web Programming
PPTX
PHP Functions & Arrays
PPTX
PHP Basics
PPTX
Activities, Fragments, and Events
PPTX
Establishing a Web Presence
PPTX
Getting started with Android Programming
PPTX
Web Programming and Internet Technologies
PPTX
Angels & Demons
PPTX
Social Media and You
PPTX
Cryptography
PPTX
JCS Presentation
Android Fundamentals
Open Source Education
Security Concepts - Linux
Networking Basics with Linux
Disk and File System Management in Linux
XML and Web Services
Elements of Object-oriented Design
Database Programming
OOP in PHP
Web Programming
PHP Functions & Arrays
PHP Basics
Activities, Fragments, and Events
Establishing a Web Presence
Getting started with Android Programming
Web Programming and Internet Technologies
Angels & Demons
Social Media and You
Cryptography
JCS Presentation

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Business Ethics Teaching Materials for college
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Complications of Minimal Access Surgery at WLH
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Institutional Correction lecture only . . .
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Pharma ospi slides which help in ospi learning
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Classroom Observation Tools for Teachers
PDF
VCE English Exam - Section C Student Revision Booklet
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Business Ethics Teaching Materials for college
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Cell Structure & Organelles in detailed.
Complications of Minimal Access Surgery at WLH
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Institutional Correction lecture only . . .
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Microbial disease of the cardiovascular and lymphatic systems
human mycosis Human fungal infections are called human mycosis..pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India
Renaissance Architecture: A Journey from Faith to Humanism
Pharma ospi slides which help in ospi learning
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Classroom Observation Tools for Teachers
VCE English Exam - Section C Student Revision Booklet

HTML5 Multimedia Support

Editor's Notes

  • #2: The World Wide Web Consortium (W3C) introduced the video element for the purpose of playing videos and movies. The intent was to offer a standard way to play video on the web without requiring plug-ins. This goal has been circumvented by lack of agreement about which video formats should be supported in web browsers. Currently, the W3C does not specify which video formats browsers should support. Browsers can decide which format they want to support, so the developer must provide formats that are available across most browsers.
  • #4: Ogg/Theora (.ogv extension) At one point, W3C specified the Ogg/Theora format, which appears to be a format that is royalty free without patent issues. Then the W3C removed the Ogg/Theora from the specifications because of the possibility of litigation. This format is supported by the Firefox, Chrome, and Opera browsers. WebM/VP8 (.webm extension) Google acquired the WebM/VP8 format when it bought On2 Technology. According to Google officials, WebM works well on even lower-power devices, including netbooks and handhelds. WebM will be available under a royalty-free Berkeley Software Distribution (BSD) open-source license. The WebM/VP8 video format is supported by the Firefox, Chrome, Opera, and Android browsers. In addition, Internet Explorer 9+ will support this format when the VP8 codec is installed. The current release of the VP8 codec is available here: https://tools.google.com/dlpage/webmmf/. MPEG-4/H.264 (.mp4 extension) This format is an evolution of previous formats that was intended to create a standard capable of providing good video quality at substantially lower bit rates than previous standards. The MPEG-4/H.264 format has patented technologies, but MPEG LA, which is a private organization in charge of administrating the patents, announced that the H.264-encoded Internet video that is free to end users will never be charged royalties. MPEG-4/H.264 is supported by the Internet Explorer, Chrome, and Safari browsers, but Chrome has announced its intent to remove support for MPEG-4/H.264 in the near future.
  • #6: The <source> element specifies a video source. At a minimum, you need to set the src attribute to the URL of the video. You should also include more than one <source> element to provide many sources so the browser can choose the most appropriate video codec. The type attribute includes both the MIME type and the codecs. Although the type attribute isn’t usually required, the browser can use it to help choose the proper video file to display.
  • #7: autoplay Specifies that video starts playing immediately. controls Specifies that the play/pause button, video cursor, and maximize be displayed. height Indicates the height in pixels of the rendered <video> element. loop Specifies that the video will repeat when it has reached the end of its stream. muted Specifies that the audio is silent. poster Specifies that the URL of an image is to be shown when the video is not playing. preload Specifies how the video should be loaded when the page loads. It can be set to auto, metadata, or none. The auto setting starts loading the video when the page loads. The metadata setting loads only the metadata, and the none setting doesn’t load anything. src Specifies the URL of the video. width Indicates the width in pixels of the rendered <video> element
  • #8: The W3C has developed a new standard, called WebVTT (Web Video Text Tracks), that provides the ability to display captions on the video; all browsers implementing the <track> element will support it. The WebVTT file format is simple and easily readable by browsers and developers. It’s based on a popular subtitling format called SubRip Text (SRT). If you already have your content in SRT format, converters are available on the web to convert to the WebVTT format.
  • #9: WebVTT format is very simple. The file starts with a declaration of the WebVTT file, a line is skipped, and a cue is defined. The cue is composed of a timespan on the first line, and the caption follows on the next line or lines. After that, a new line separator is provided, and the next cue is defined.
  • #10: The W3C introduced the <audio> element for the purpose of playing music and sounds. Like the introduction of the <video> element, the intent was to offer a standard way to play multi-media on the web without requiring plug-ins.
  • #11: Ogg/Vorbis (.oga, .ogg extension) This format appears to be royalty free without patent issues. It’s supported by the Firefox, Chrome, and Opera browsers and has a MIME type of audio/ogg and a codec of vorbis. MP3 (.mp3 extension) This format is pervasive because it’s a common format for much of the music media. It’s supported by the Safari, Chrome, and Internet Explorer browsers and has a MIME type of audio/mpeg and a codec of .mp3. MP4 (.mp4, .mp4a, .aac extension) This format is primarily used by Apple. In spite of this format’s high quality AAC or AAC+ codec, the MP3 format is still more prevalent. This format is supported on the Internet Explorer and Safari browsers and has a MIME type of audio/mp4; mp4a.40.5 is the codec value. WAV (.wav extension) This format is also pervasive and is usually used for audio fragments, or snippets, such as ring tones and sounds. It’s supported by the Firefox, Chrome, and Opera browsers and has a MIME type of audio/wav and a codec of 1 (the number one)
  • #14: autoplay Specifies that video starts playing immediately. controls Specifies that the play/pause button, video cursor, and maximize be displayed. loop Specifies that the video will repeat when it has reached the end of its stream. preload Specifies how the video should be loaded when the page loads. It can be set to auto, metadata, or none. The auto setting starts loading the video when the page loads. The metadata setting loads only the metadata, and the none setting doesn’t load anything. src Specifies the URL of the video.