SlideShare a Scribd company logo
1 of 74
Download to read offline
Leccion 7
        Multimedia


Tuesday, December 13, 11
Tuesday, December 13, 11
y u no told me!!!

Tuesday, December 13, 11
Tuesday, December 13, 11
•Separacion por capas
                           •Modelo de cajas
                           •Selectores
                           •Pseudoelementos
                           •Transición
                           •Transformacion




Tuesday, December 13, 11
Tuesday, December 13, 11
?
Tuesday, December 13, 11
Leccion 7
        Multimedia


Tuesday, December 13, 11
HTML fue creado para mostrar texto e imagenes




Tuesday, December 13, 11
Tuesday, December 13, 11
Tuesday, December 13, 11
•Carga de procesador.
                           •Licencias.
                           •Pulgas extra.
                           •Entorno separado.




Tuesday, December 13, 11
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://
    download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="500"
    height="311">
    <param name="allowfullscreen" value="true" />
    <param name="movie" value="http://www.somewebsite.net/player.swf" />
    <param name="flashvars" value="file=http://www.somewebsite.net/trick.flv&image=http://
    www.somewebsite.net/trick.gif" />
    <embed width="500" height="311" allowfullscreen="true" type="application/x-shockwave-
    flash" src="http://www.somewebsite.net/player.swf"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    flashvars="file=http://www.somewebsite.net/trick.flv&image=http://www.somewebsite.net/
    trick.gif" />
    </object>




Tuesday, December 13, 11
Tuesday, December 13, 11
32%
                           del trafico nocturno




                           48 horas
                           por minuto



Tuesday, December 13, 11
Tuesday, December 13, 11
Tuesday, December 13, 11
Porque Audio y Video en HTML5




Tuesday, December 13, 11
Porque Audio y Video en HTML5


                           •Estandares Abiertos
                           •Transparencia
                           •Integracion del video
                           •Integracion con otros elementos




Tuesday, December 13, 11
<video>




Tuesday, December 13, 11
<video src=”video.mp4”>




Tuesday, December 13, 11
http://jplayer.org/video/webm/
         Big_Buck_Bunny_Trailer.webm




Tuesday, December 13, 11
<video autoplay> *




                           * solo escritorio

Tuesday, December 13, 11
<video loop>




Tuesday, December 13, 11
<video controls>




Tuesday, December 13, 11
<video preload>




Tuesday, December 13, 11
<video muted>




Tuesday, December 13, 11
<video poster=”miimagen.png”>




Tuesday, December 13, 11
Codecs y formatos




Tuesday, December 13, 11
Tuesday, December 13, 11
No hay formato universal




Tuesday, December 13, 11
<video src=”video.mp4”>




Tuesday, December 13, 11
<video src=”video.webm”>




Tuesday, December 13, 11
<video src=”video.ogg”>




Tuesday, December 13, 11
<video autoplay controls>
      <source src=”video.mp4” >
  </video>




Tuesday, December 13, 11
<video>
      <source src=”video.mp4” >
      <source src=”video.webm” >
  <video>




Tuesday, December 13, 11
<video>
      <source src=”video.mp4” >
      <source src=”video.webm” >
      <source src=”video.ogg” >
  <video>




Tuesday, December 13, 11
<video>
    <source src=”video.mp4” type="video/mp4">
    <source src=”video.webm” >
    <source src=”video.ogg” >
    <a href=”video.mp4”> tienes IE6 HA HA </a>
<video>




Tuesday, December 13, 11
<video>
    <source src=”video.mp4” type="video/mp4">
    <source src=”video.webm” >
    <source src=”video.ogg” >
    <a href=”video.mp4”> tienes IE6 HA HA </a>
<video>




Tuesday, December 13, 11
<video autoplay>
    <source src=”video.mp4” type="video/mp4">
    <source src=”video.webm” >
    <source src=”video.ogg” >
    <a href=”video.mp4”> tienes IE6 HA HA </a>
<video>




Tuesday, December 13, 11
Consideraciones de diseno




Tuesday, December 13, 11
Firefox




Tuesday, December 13, 11
Safari




Tuesday, December 13, 11
Chrome




Tuesday, December 13, 11
Control Programatico




Tuesday, December 13, 11
<video id=”video”>
    <source src=”video.mp4” type="video/mp4">
    <source src=”video.webm” >
    <source src=”video.oggs” >
    <a href=”video.mp4”> tienes IE6 HA HA </a>
<video>




Tuesday, December 13, 11
<video id=”video”>
    <source src=”video.mp4” type="video/mp4">
    <source src=”video.webm” >
    <source src=”video.oggs” >
    <a href=”video.mp4”> tienes IE6 HA HA </a>
<video>




  <script>
      var video = document.getElementById(“video”);
           video.play()
  <script>




Tuesday, December 13, 11
Eventos
                           play
                           pause
                           ended
                           progress
                           timeUpdate


Tuesday, December 13, 11
<iframe class="youtube-player" type="text/html"
      width="640" height="385" src="http://
      www.youtube.com/embed/VIDEO_ID" frameborder="0">
      </iframe>




Tuesday, December 13, 11
<video> es HTML5!




Tuesday, December 13, 11
<video> es HTML5!




          http://www.chromeexperiments.com/shaunthesheep



Tuesday, December 13, 11
Audio




Tuesday, December 13, 11
<audio>




Tuesday, December 13, 11
Tuesday, December 13, 11
<audio src="audio.mp3" controls />




Tuesday, December 13, 11
<audio controls>
           <source src="audio.mp3" type="audio/mpeg" >
           <source src="audio.oga" type="audio/ogg" >
        </audio>




Tuesday, December 13, 11
<audio controls>
           <source src="audio.mp3" type="audio/mpeg" >
           <source src="audio.oga" type="audio/ogg" >
           <a href="audio.mp3> audio aqui </a>
        </audio>




Tuesday, December 13, 11
http://www.mirovideoconverter.com/




Tuesday, December 13, 11
Control Programatico




Tuesday, December 13, 11
if (myAudio.canPlayType('audio/mpeg')) {
        myAudio.setAttribute('src','http://jPlayer.org/audio/mp3/Miaow-07-
     Bubble.mp3');
     }

     if (myAudio.canPlayType('audio/ogg')) {
        myAudio.setAttribute('src','http://jPlayer.org/audio/ogg/Miaow-07-
     Bubble.ogg');
     }




Tuesday, December 13, 11
play()
             pause()
             currentTime
             buffered




Tuesday, December 13, 11
play()
             pause()
             currentTime
             buffered

             Eventos
             -timeupdate
             -progress




Tuesday, December 13, 11
Tuesday, December 13, 11
http://jplayer.org/



Tuesday, December 13, 11
Canvas




Tuesday, December 13, 11
<canvas>




Tuesday, December 13, 11
<canvas id="canvas"></canvas>

     <script>

                    var ctx = $('#canvas')[0].getContext("2d");

                    //the rectangle is half transparent
                    ctx.fillStyle = "rgba(255, 0, 0, 1)"
                    ctx.beginPath();
                    ctx.rect(0, 0, 100, 100);
                    ctx.closePath();
                    ctx.fill();

     </script>




Tuesday, December 13, 11
http://billmill.org/static/canvastutorial/color.html




Tuesday, December 13, 11
http://www.html5canvastutorials.com/




Tuesday, December 13, 11
http://popwuj.org/juegos/html5/tikal/




Tuesday, December 13, 11
Tarea
                           (obligatoria)



Tuesday, December 13, 11
Tuesday, December 13, 11
Video solo



   Controles




                             formulario
Tuesday, December 13, 11
Todo lo de la tarea anterior
                                          +
                           Video controlado por botones
                                  Animacion CSS
                           Formulario con correo validado
                                  Diseño bonito *

                                    + FUUUA!




Tuesday, December 13, 11

More Related Content

Similar to Html5 Audio & video

Design process
Design processDesign process
Design process
Tim Wright
 
[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design
Christopher Schmitt
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web Design
Zach Leatherman
 
Potato02 ViewSticker作りました
Potato02 ViewSticker作りましたPotato02 ViewSticker作りました
Potato02 ViewSticker作りました
Toshihiro Yagi
 
Vinted life embetterment
Vinted life embettermentVinted life embetterment
Vinted life embetterment
Agile Lietuva
 
component: ruby gems for the browser
component: ruby gems for the browsercomponent: ruby gems for the browser
component: ruby gems for the browser
Timothy Oxley
 
Mike hostetler - jQuery knowledge append to you
Mike hostetler - jQuery knowledge append to youMike hostetler - jQuery knowledge append to you
Mike hostetler - jQuery knowledge append to you
StarTech Conference
 

Similar to Html5 Audio & video (20)

Herramientas de desarrollo e implementacion
Herramientas de desarrollo e implementacionHerramientas de desarrollo e implementacion
Herramientas de desarrollo e implementacion
 
Design process
Design processDesign process
Design process
 
[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design
 
Cloud Messaging With Cloud Foundry
Cloud Messaging With Cloud FoundryCloud Messaging With Cloud Foundry
Cloud Messaging With Cloud Foundry
 
What's new in HTML5, CSS3 and JavaScript, James Pearce
What's new in HTML5, CSS3 and JavaScript, James PearceWhat's new in HTML5, CSS3 and JavaScript, James Pearce
What's new in HTML5, CSS3 and JavaScript, James Pearce
 
Modern HTML & CSS Coding: Speed, Semantics & Structure
Modern HTML & CSS Coding: Speed, Semantics & StructureModern HTML & CSS Coding: Speed, Semantics & Structure
Modern HTML & CSS Coding: Speed, Semantics & Structure
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web Design
 
Potato02 ViewSticker作りました
Potato02 ViewSticker作りましたPotato02 ViewSticker作りました
Potato02 ViewSticker作りました
 
Armorizing applications
Armorizing applicationsArmorizing applications
Armorizing applications
 
Vinted life embetterment
Vinted life embettermentVinted life embetterment
Vinted life embetterment
 
iPad Apps for teachers
iPad Apps for teachersiPad Apps for teachers
iPad Apps for teachers
 
Some simple tips for front-end performance in WordPress
Some simple tips for front-end performance in WordPressSome simple tips for front-end performance in WordPress
Some simple tips for front-end performance in WordPress
 
Multiplatform, Promises and HTML5
Multiplatform, Promises and HTML5Multiplatform, Promises and HTML5
Multiplatform, Promises and HTML5
 
Adapt and respond: keeping responsive into the future
Adapt and respond: keeping responsive into the futureAdapt and respond: keeping responsive into the future
Adapt and respond: keeping responsive into the future
 
Coding, Scaling, and Deploys... Oh My!
Coding, Scaling, and Deploys... Oh My!Coding, Scaling, and Deploys... Oh My!
Coding, Scaling, and Deploys... Oh My!
 
JavaScript DOM Manipulations
JavaScript DOM ManipulationsJavaScript DOM Manipulations
JavaScript DOM Manipulations
 
Survive in iPhone App Store@GDC China 2010
Survive in iPhone App Store@GDC China 2010Survive in iPhone App Store@GDC China 2010
Survive in iPhone App Store@GDC China 2010
 
Html5 new sword for interactive app
Html5 new sword for interactive appHtml5 new sword for interactive app
Html5 new sword for interactive app
 
component: ruby gems for the browser
component: ruby gems for the browsercomponent: ruby gems for the browser
component: ruby gems for the browser
 
Mike hostetler - jQuery knowledge append to you
Mike hostetler - jQuery knowledge append to youMike hostetler - jQuery knowledge append to you
Mike hostetler - jQuery knowledge append to you
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Html5 Audio & video