SlideShare a Scribd company logo
Rae Allen
 Treat   audio / video like image element

 Pros
  • Reduce dependency on players
  • Reduce code weight
  • Consistent experience within browser

 Cons
  • Not supported by all browsers
  • Support is inconsistent
  • Limited design changes
<img
  src="/reslib/201102/r721155_5730666.jpg"
  alt="Mike Martin“
  title="Mike Martin perfoming 'Fireweed'“
/>
Example: http://www.abc.net.au/local/videos/2011/02/18/3142904.htm
<div class="player"> <div id="media_main"> <script src="http://www.abc.net.au/tv/cinerama2/scripts/cinerama2.js"
    type="text/javascript" language="JavaScript"></script> <script type="text/javascript"> //create a colour object to
    define the colors for the player. //highlightColour is the color of the bar that follows the play head.
    //backgroundColour is the colour of the page behind the player. //textColour is the colour of the title and the
    counters. /*The replace function replaces an element on the page with the cinerama player. The parameters are:
    (id, source, width, height, colour object, title, autoStart) id: (required) The id of the element to be replaced, usually
    an image element. The image will then be pulled into the player and displayed before the video is started. source:
    (required) This can be a single flv or h.264 mp4 file or a media rss file containing 1 or more items. If a media rss file
    does contain more that one item the multiClip section is automatically embedded next to the player. width:
    (required) The width of the video to be displayed. height: (required) The height of the video to be displayed. Note
    that the player will embed slightly higher that this to allow for the controlls. colour object: A javascript object defining
    the colours for the player (see above). title: The beginning title displayed on the player before a movie is played. If
    no title is supplied the script will attempt to use the alt text of the image it is replacing. autoStart: 'true' tells the
    player to start the video as soon as it loads. 'false' tells the player to wait for the user to initiate the video by
    pressing play. embedSrc: 'true' tells the player to show the embed src for the video. 'false' hides the embed Src. */
    var title = "Mike%20Martin%20-%20Fireweed"; title = unescape(title); cinerama.ratings = false; cinerama.secure =
    false; cinerama.geoBlock = false; cinerama.embedSrc = true; cinerama.highlightColour = "#006CD9";
    cinerama.backgroundColour = "#000000"; cinerama.textColour = "#77BBFF"; cinerama.wmode = "transparent"; //
    Default height and widths, overwritten by css.
    cinerama.embedPlayer('media_main_player','http://www.abc.net.au/reslib/201102/r721157_5730690.mp4',400,224,
    title,'false'); </script> <noscript>Javascript is currently no enabled on your browser. To view this media, please
    enabled Javascript in your browser setttings.</noscript> <img id="media_main_player"
    src="http://www.abc.net.au/reslib/201102/r721155_5730665.jpg" alt="loading video" title="loading video"/></div>
    </div>
Example: http://www.abc.net.au/local/videos/2011/02/18/3142904.htm



<video
  src="/reslib/201102/r721157_5730690.mp4“
  poster=“/reslib/201102/r721155_5730665.jpg"
  width="700px"
  controls>
</video>
   Example: http://www.abc.net.au/local/audio/2011/02/22/3145836.htm

   <script src="/local/includes/scripts/jquery/plugins/jquery.flash.js"
    type="text/javascript" language="JavaScript"></script> <script
    src="/local/includes/scripts/audioplayer.js" type="text/javascript"
    language="JavaScript"></script><noscript>Javascript is currently no
    enabled on your browser. To view this media, please enabled Javascript in
    your browser setttings.</noscript> <embed class="player_audio"
    flashvars="autoplay=false&amp;glassyplayer=true&amp;playerbgcolor=%23
    2E2E2E&amp;volumeiconcolor=%23FFFFFF&amp;mediaURL=http%3A%2
    F%2Fmpegmedia.abc.net.au%2Flocal%2Fbrisbane%2F201102%2Fr722932
    _5759695.mp3" pluginspage="http://www.adobe.com/go/getflashplayer"
    src="http://www.abc.net.au/local/global_flash/player_mp3_v2.swf"
    type="application/x-shockwave-flash" height="30" width="220"><a
    class="color3 mp3download"
    href="http://mpegmedia.abc.net.au/local/brisbane/201102/r722932_5759695
    .mp3">Download this mp3 file</a>
Example: http://www.abc.net.au/local/audio/2011/02/22/3145836a.htm



<audio
 src=“http://mpegmedia.abc.net.au/local/bri
 sbane/201102/r722932_5759695.mp3”
 preload
 controls>
</audio>
mp3   ogg   wav

Firefox      no    yes   yes

Safari       yes   no    yes

Chrome       yes   yes   no

IE8          no    no    no

IE9 (beta)   yes   no    yes
mp4   ogg/theora   webm

Firefox      no    yes          yes

Safari       yes   no           maybe

Chrome       yes   yes          yes

IE8          no    no           no

IE9 (beta)   yes   no           maybe
Html5 - audio and video tags
Html5 - audio and video tags
Html5 - audio and video tags
Html5 - audio and video tags
Html5 - audio and video tags
Html5 - audio and video tags
Html5 - audio and video tags
Html5 - audio and video tags
example: http://www.abc.net.au/local/videos/2011/02/18/3142904b.htm
   begin implementing some html5 tags
    • Device specific use
    • Browser specific use


   make html5 default mode

More Related Content

What's hot (20)

PDF
JS Days Mobile Meow
Greg Schechter
 
PDF
State of Media Accessibility in HTML5
Silvia Pfeiffer
 
PDF
audio, video and canvas in HTML5 - standards>next Manchester 29.09.2010
Patrick Lauke
 
DOCX
Iframe title
mariacferreira
 
PPT
Html5 vs Flash video
Frédéric Caron
 
PDF
HTML5, Flash, and the Battle For Faster Cat Videos
Greg Schechter
 
PDF
JS Days HTML5 Flash and the Battle for Faster Cat Videos
Greg Schechter
 
DOCX
Rafaelesteriorafa
Rafa Castañeda
 
PPTX
WooCommerce snippets
Rodolfo Melogli
 
PPTX
Designing web pages html videos
Jesus Obenita Jr.
 
PPTX
HTML5 Multimedia Support
Henry Osborne
 
PDF
FUGN - Stage Video and Molehill
Anne Kathrine Petterøe
 
PPTX
Developers meetup sep-2017
Seif Ibrahim
 
PPTX
Setup and run wordpress: 201
wordpresswebmaster
 
PDF
HTML5 e Css3 - 8 | WebMaster & WebDesigner
Matteo Magni
 
PDF
Html5video
benwilkins
 
TXT
Featured posts
aidee58
 
PPTX
Be HTML5-ready today
Oleksandr Khomenko
 
PDF
Vkmdp cologne
Doug Sillars
 
DOCX
2 Minute Film Intro Equipment
kannkarry
 
JS Days Mobile Meow
Greg Schechter
 
State of Media Accessibility in HTML5
Silvia Pfeiffer
 
audio, video and canvas in HTML5 - standards>next Manchester 29.09.2010
Patrick Lauke
 
Iframe title
mariacferreira
 
Html5 vs Flash video
Frédéric Caron
 
HTML5, Flash, and the Battle For Faster Cat Videos
Greg Schechter
 
JS Days HTML5 Flash and the Battle for Faster Cat Videos
Greg Schechter
 
Rafaelesteriorafa
Rafa Castañeda
 
WooCommerce snippets
Rodolfo Melogli
 
Designing web pages html videos
Jesus Obenita Jr.
 
HTML5 Multimedia Support
Henry Osborne
 
FUGN - Stage Video and Molehill
Anne Kathrine Petterøe
 
Developers meetup sep-2017
Seif Ibrahim
 
Setup and run wordpress: 201
wordpresswebmaster
 
HTML5 e Css3 - 8 | WebMaster & WebDesigner
Matteo Magni
 
Html5video
benwilkins
 
Featured posts
aidee58
 
Be HTML5-ready today
Oleksandr Khomenko
 
Vkmdp cologne
Doug Sillars
 
2 Minute Film Intro Equipment
kannkarry
 

Viewers also liked (7)

PDF
Information Design Principles
Joseph Broughton
 
PPTX
Audio media_Edtech101THX
Deyniel de Asis
 
PPTX
Audio media - Kazel Amarillento
Kazel Hermione Amarillento
 
PPTX
Audio media resources
James Tumlos
 
PPTX
[EDUCATIONAL TECHNOLOGY 2] Audio media
Anna Macapagal
 
PPT
Audio media
Bry Esguerra
 
Information Design Principles
Joseph Broughton
 
Audio media_Edtech101THX
Deyniel de Asis
 
Audio media - Kazel Amarillento
Kazel Hermione Amarillento
 
Audio media resources
James Tumlos
 
[EDUCATIONAL TECHNOLOGY 2] Audio media
Anna Macapagal
 
Audio media
Bry Esguerra
 
Ad

Similar to Html5 - audio and video tags (20)

PDF
HTML5 multimedia - where we are, where we're going
brucelawson
 
KEY
HTML5 Video Presentation
sith33
 
PDF
Intro to Compression: Audio and Video Optimization for Learning
Nick Floro
 
PDF
HTML5 Multimedia: where we are, where we're going
brucelawson
 
PPT
Chapter 11 - Web Design
tclanton4
 
PDF
Multimedia on the web - HTML5 video and audio
Christian Heilmann
 
PPTX
Integrating media
Er. Nawaraj Bhandari
 
PDF
Developer Training for 23 Video
Steffen
 
PDF
HTML5 Audio & Video
Aaron Gustafson
 
PPT
Chapter11
DeAnna Gossett
 
PDF
HTML Media: Where We Are & Where We Need To Go
Nigel Parker
 
PDF
WordCamp Thessaloniki2011 The NextWeb
George Kanellopoulos
 
ZIP
WordcampNYC 2010 - Wordpress & Multimedia (Updated)
Digital Strategy Works LLC
 
PDF
HTML5 and Accessibility sitting in a tree
brucelawson
 
PDF
5 Things You Need to Know to Start Using Video and Audio Today
Nigel Parker
 
PPT
Building an HTML5 Video Player
Brightcove
 
PPT
Video Editing and Encoding
Michigan State University
 
ZIP
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Digital Strategy Works LLC
 
PDF
Building an HTML5 Video Player
Jim Jeffers
 
PDF
Word camp nextweb
Panagiotis Grigoropoulos
 
HTML5 multimedia - where we are, where we're going
brucelawson
 
HTML5 Video Presentation
sith33
 
Intro to Compression: Audio and Video Optimization for Learning
Nick Floro
 
HTML5 Multimedia: where we are, where we're going
brucelawson
 
Chapter 11 - Web Design
tclanton4
 
Multimedia on the web - HTML5 video and audio
Christian Heilmann
 
Integrating media
Er. Nawaraj Bhandari
 
Developer Training for 23 Video
Steffen
 
HTML5 Audio & Video
Aaron Gustafson
 
Chapter11
DeAnna Gossett
 
HTML Media: Where We Are & Where We Need To Go
Nigel Parker
 
WordCamp Thessaloniki2011 The NextWeb
George Kanellopoulos
 
WordcampNYC 2010 - Wordpress & Multimedia (Updated)
Digital Strategy Works LLC
 
HTML5 and Accessibility sitting in a tree
brucelawson
 
5 Things You Need to Know to Start Using Video and Audio Today
Nigel Parker
 
Building an HTML5 Video Player
Brightcove
 
Video Editing and Encoding
Michigan State University
 
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Digital Strategy Works LLC
 
Building an HTML5 Video Player
Jim Jeffers
 
Word camp nextweb
Panagiotis Grigoropoulos
 
Ad

Recently uploaded (20)

PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPTX
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 

Html5 - audio and video tags

  • 2.  Treat audio / video like image element  Pros • Reduce dependency on players • Reduce code weight • Consistent experience within browser  Cons • Not supported by all browsers • Support is inconsistent • Limited design changes
  • 3. <img src="/reslib/201102/r721155_5730666.jpg" alt="Mike Martin“ title="Mike Martin perfoming 'Fireweed'“ />
  • 4. Example: http://www.abc.net.au/local/videos/2011/02/18/3142904.htm <div class="player"> <div id="media_main"> <script src="http://www.abc.net.au/tv/cinerama2/scripts/cinerama2.js" type="text/javascript" language="JavaScript"></script> <script type="text/javascript"> //create a colour object to define the colors for the player. //highlightColour is the color of the bar that follows the play head. //backgroundColour is the colour of the page behind the player. //textColour is the colour of the title and the counters. /*The replace function replaces an element on the page with the cinerama player. The parameters are: (id, source, width, height, colour object, title, autoStart) id: (required) The id of the element to be replaced, usually an image element. The image will then be pulled into the player and displayed before the video is started. source: (required) This can be a single flv or h.264 mp4 file or a media rss file containing 1 or more items. If a media rss file does contain more that one item the multiClip section is automatically embedded next to the player. width: (required) The width of the video to be displayed. height: (required) The height of the video to be displayed. Note that the player will embed slightly higher that this to allow for the controlls. colour object: A javascript object defining the colours for the player (see above). title: The beginning title displayed on the player before a movie is played. If no title is supplied the script will attempt to use the alt text of the image it is replacing. autoStart: 'true' tells the player to start the video as soon as it loads. 'false' tells the player to wait for the user to initiate the video by pressing play. embedSrc: 'true' tells the player to show the embed src for the video. 'false' hides the embed Src. */ var title = "Mike%20Martin%20-%20Fireweed"; title = unescape(title); cinerama.ratings = false; cinerama.secure = false; cinerama.geoBlock = false; cinerama.embedSrc = true; cinerama.highlightColour = "#006CD9"; cinerama.backgroundColour = "#000000"; cinerama.textColour = "#77BBFF"; cinerama.wmode = "transparent"; // Default height and widths, overwritten by css. cinerama.embedPlayer('media_main_player','http://www.abc.net.au/reslib/201102/r721157_5730690.mp4',400,224, title,'false'); </script> <noscript>Javascript is currently no enabled on your browser. To view this media, please enabled Javascript in your browser setttings.</noscript> <img id="media_main_player" src="http://www.abc.net.au/reslib/201102/r721155_5730665.jpg" alt="loading video" title="loading video"/></div> </div>
  • 5. Example: http://www.abc.net.au/local/videos/2011/02/18/3142904.htm <video src="/reslib/201102/r721157_5730690.mp4“ poster=“/reslib/201102/r721155_5730665.jpg" width="700px" controls> </video>
  • 6. Example: http://www.abc.net.au/local/audio/2011/02/22/3145836.htm  <script src="/local/includes/scripts/jquery/plugins/jquery.flash.js" type="text/javascript" language="JavaScript"></script> <script src="/local/includes/scripts/audioplayer.js" type="text/javascript" language="JavaScript"></script><noscript>Javascript is currently no enabled on your browser. To view this media, please enabled Javascript in your browser setttings.</noscript> <embed class="player_audio" flashvars="autoplay=false&amp;glassyplayer=true&amp;playerbgcolor=%23 2E2E2E&amp;volumeiconcolor=%23FFFFFF&amp;mediaURL=http%3A%2 F%2Fmpegmedia.abc.net.au%2Flocal%2Fbrisbane%2F201102%2Fr722932 _5759695.mp3" pluginspage="http://www.adobe.com/go/getflashplayer" src="http://www.abc.net.au/local/global_flash/player_mp3_v2.swf" type="application/x-shockwave-flash" height="30" width="220"><a class="color3 mp3download" href="http://mpegmedia.abc.net.au/local/brisbane/201102/r722932_5759695 .mp3">Download this mp3 file</a>
  • 8. mp3 ogg wav Firefox no yes yes Safari yes no yes Chrome yes yes no IE8 no no no IE9 (beta) yes no yes
  • 9. mp4 ogg/theora webm Firefox no yes yes Safari yes no maybe Chrome yes yes yes IE8 no no no IE9 (beta) yes no maybe
  • 19. begin implementing some html5 tags • Device specific use • Browser specific use  make html5 default mode