SlideShare ist ein Scribd-Unternehmen logo
1 von 51
Downloaden Sie, um offline zu lesen
Curso HTML5 y el
Futuro de la Web
    Audio y Vídeo
   19 de Julio 2012
     Jose María Álvarez Rodríguez
     WESO-Universidad de Oviedo
    E-mail: josem.alvarez@weso.es
     WWW: http://josemalvarez.es
Conceptos Clave

Diseño y Estilo   Audio y Vídeo


   Dibujar         Rich-Apps



Geolocalización     Semántica
Antecedentes
                                Documentos

                             Imágenes,
                          animaciones, etc.

                                  Multimedia

HTML Code Evolution 1.0 to 5.0 http://broadcast.rackspace.com/blog/HTMLtimeline/index.html
Evolución
Adobe Flash         Microsoft Silverlight


  Algunas Ventajas…
        Visualmente atractivas
          Animaciones, etc.
Independientes de formatos, códecs, etc.
            IDEs desarrollo
… y Problemas
 Soluciones Propietarias
Soporte multidispositivo y
       plataforma
      Accesibilidad
       Metadatos
    Interoperabilidad
  Necesidad de plugins
           ….
Diversidad de
  formatos
Diversidad de
navegadores
Diversidad de
 dispositivos




http://mobisynth.files.wordpress.com/2011/02/tar3.png
Solución previa
    <embed src=“file.mid" autostart="false" loop="false"
    height="45" width="170">
1          <noembed>El navegador no soporta este
    elemento.</noembed>
    </embed>


    <object width="420" height="315" >
     <param name="movie"
     value=" http://www.youtube.com/embed/7qA07K86Bfk "></param>
2    <param name="allowFullScreen" value="true"></param>
      <embed src=" http://www.youtube.com/embed/7qA07K86Bfk "
        type="application/x-shockwave-flash" width="425" height="344">
      </embed>
    </object>



    <iframe width="420" height="315"
    src="http://www.youtube.com/embed/7qA07K86Bfk"
3   frameborder="0" allowfullscreen>
    </iframe>
Tarea 0

 Visitar sitios web de distribución de
audio y vídeo e identificar qué solución
             técnica utilizan


  Ejemplos: Youtube, Vimeo, Scribd, Hulu,
  Dalealplay, TV3, BBC, Marca, LNE, etc.
HTML5 en acción
    Nuevos elementos
(no admiten cierre en línea)

  <audio></audio>
<audio src="gandalf_onering.mp3" controls></audio>


  <video></video>
<video src="videos/arresto.mp4" autoplay></video>
Tarea 1

Ir a la página de clips de audio y hacer
    un “poco de ruido” con HTML5


 http://www.mediacollege.com/downloads/sound-
                   effects/

Ver: cursoHtml5/audio-video/ejemplos/t1.html
Tarea 2

    Mostrar un vídeo con HTML5


      http://www.mediaconverter.org/

Ver: cursoHtml5/audio-video/ejemplos/t2.html
Especificación
• http://www.w3.org/wiki/HTML/Elements/audio
• http://www.w3.org/wiki/HTML/Elements/video
• http://www.w3schools.com/html5/html5_ref_av_dom.
  asp




             Soporte
      Depende del
navegador…formatos, etc.
Formatos de audio
Navegador             MP3 Wav Ogg

Internet Explorer 9

Firefox 4.0
Google Chrome 6

Apple Safari 5

Opera 10.6
Formatos de vídeo
Navegador             MP4   WebM   Ogg

Internet Explorer 9

Firefox 4.0
Google Chrome 6

Apple Safari 5

Opera 10.6
Tarea 3

Chequear soporte de audio y vídeo de
     distintos navegadores en:
       http://html5test.com/
HTC Desire HD




IPAD2
Especificación in
    depth…
<audio> y <video>
        Propiedades
audioTracks   Devuelve el objeto AudioTrackList que contiene la lista de
              pistas disponibles
autoplay      Da valor o devuelve si el audio/video debería empezar
              cuando la página se carga
buffered      Devuelve un objeto TimeRange que contiene las partes
              del audio/video en el buffer
controller    Devuelve el objeto MediaController que contiene la
              información del controlador de audio/video
controls      Da valor o devuelve si el elemento de audio/video debe
              mostrar controles (play, etc.)
crossOrigin   Da valor o devuelve la configuración CORS del
              audio/video
currentSrc    Devuelve la URL de un elemento audio/video
currentTime   Da valor o devuelve a la propiedad del tiempo de
              ejeución del elemento audio/video (en segundos)
<audio> y <video>
      Propiedades
defaultMuted          Da valor o devuelve si el audio/video está silenciado por
                      omisión
defaultPlaybackRate   Da valor o devuelve la velocidad del playback
duration              Devuelve la longitud en segundos
ended                 Devuelve si el play ha finalizado
error                 Devuelve un objeto MediaError con el error ocurrido
loop                  Da valor o devuelve si el audio/video debe ejecutarse en
                      bucle
mediaGroup            Da valor o devuelve el grupo de elementos de audio/video
                      para su gestión
muted                 Da valor o devuelve si el audio/video está silenciado
networkState          Devuelve el estado de la conexión de red
paused                Da valor o devuelve si el audio/video está parado
<audio> y <video>
    Propiedades
playbackRate   Da valor o devuelve la velocidad de ejecución

played         Devuelve un objeto TimeRanges indicando las partes del
               audio/video que se ha ejecutado
preload        Da valor o devuelve el valor para indicar si el audio/video debe ser
               cargado cuando se carga la página
readyState     Devuelve el valor que indica si el audio/video está listo para ser
               reproductido
seekable       Devuelve un objeto TimeRanges indicando las partes del
               audio/video que se pueden acceder directamente
seeking        Devuelve el valor que indica si el usuario ha realizado un acceso
               directo al audio/video
src            Da valor o devuelve la dirección del recurso en reproducción

startDate      Devuelve un objeto Date que indica que el actual time offset

textTracks     Devuelve un objeto TextTrackList object que indica las pistas textos
               disponibles
videoTracks    Devuelve un objeto VideoTrackList que indica las pistas de vídeo
               disponibles
volume         Da valor o devuelve el volumen del audio/video
<audio> y <video>
       Métodos
                 Añade una nueva pista al audio/video
addTextTrack()
                 Chequea si el navegador puede reproducir ese tipo
canPlayType()    de audio/video

                 Recarga el elemento de audio/video
load()
                 Inicia la reproducción del audio/video
play()
                 Pausa de la reproducción en curso del audio/video
pause()
<audio> y <video>
         Eventos
abort            Se ejecuta cuando un audio/video se aborta/finaliza

                 Se ejecuta cuando el navegador comienza con la
canplay          reproducción del audio/video
                 Se ejecuta cuando el navegador puede ejecutar el
canplaythrough   audio/video sin parar por el buffering
                 Se ejecuta cuando cambia la duración del audio/video
durationchange
emptied          Se ejecuta cuando la lista de reproducción es vacía
ended            Se ejecuta cuando la lista de reproducción finaliza
error            Se ejecuta cuando se produce un error al cargar un
                 audio/video
                 Se ejecuta cuando el navegador ha cargado el frame
loadeddata       en ejecución del audio/video
                 Se ejecuta cuando el navegador ha cargado los
loadedmetadata   metadatos del video
<audio> y <video>
          Eventos
loadstart      Se ejcuta cuando el navegador comienza a cargar el audio/video
pause          Se ejecuta cuando se pausa el audio/video
play           Se ejecuta cuando el navegador está en reproducción del audio/video

playing        Se ejecuta cuando el navegador está lista para reproducir después de
               una pausa o bien porque ha parado debido al buffering

progress       Se ejecuta cuando se está descargando el audio/video
ratechange     Se ejecuta cuando se varia la velocidad de reproducción del
               audio/video
seeked         Se ejecuta cuando se finaliza de realizar un acceso directo a una parte
               del audio/video
seeking        Se ejecuta cuando se utiliza el acceso a una parte determinada del
               audio/video
stalled        Se ejecuta cuando el navegador ha intentado acceder a los
               metadatos del video y éstos no están disponibles
suspend        Se ejecuta cuando el navegador no es capaz de conseguir metadatos
timeupdate     Se ejecuta cuando se cambia la posición de reproducción
volumechange   Se ejecuta cuando se cambia el volumen
waiting        Se ejecuta cuando se hace buffering del siguiente frame
A experimentar…
Tarea 4

   Probar las propiedades, eventos y
    métodos de HTML5 audio/vídeo


http://www.w3.org/2010/05/video/mediaev
               ents.html
Tarea 5
• Añadir controles al vídeo poster, loop,
                controls
 • Indicar tamaño (widht, height) del
                 mismo

 Ver: cursoHtml5/audio-video/ejemplos/t5.html
Tarea 5-Sol
<video src="videos/frews-
   intro.mp4“
   poster="freews.jpg"
   loop controls
   width="420"
   height="315">
</video>
Tarea 6

Crear controles propios de load, play,
          pause y volumen


Ver: cursoHtml5/audio-video/ejemplos/t6.html
Tarea 7

Gestionar el evento “loadedmetadata” y
   que muestra el tamaño del vídeo:
       videoWidth y videoHeight


 Ver: cursoHtml5/audio-video/ejemplos/t7.html
Tarea 8

   Crear el elemento vídeo con los
    elementos source como hijos


Ver: cursoHtml5/audio-video/ejemplos/t8.html
Tarea 8-Sol

<video poster="freews.jpg" controls width="420"
height="315">
<source src="videos/frews-intro.mp4"
        type='video/mp4; codecs="avc1.42E01E,
mp4a.40.2"'>
</source>
<source src="videos/frews-intro.ogg"
        type='video/ogg; codecs="theora,
vorbis"'>
</source>
</video>
Tarea 9

    Gestionar los errores que se pueden
   producir durante la ejecución del vídeo


   Ver: cursoHtml5/audio-video/ejemplos/t9.html
http://dev.w3.org/html5/spec/single-page.html#error-codes
Tarea 10
 Introducir subtítulos en un idioma
         Formato WebVTT
          hh:mm:ss.mmm

                http://dev.w3.org/html5/webvtt/

 Los subtítulos deben estar en un servidor web.

Ver: cursoHtml5/audio-video/ejemplos/t10.html
WebVTT

1 00:00:01,000 --> 00:00:03,000
Hola, primeros 3 segundos...

2 00:00:03,000 --> 00:00:05,000
Otro texto...
Tarea 11

   Combinación de vídeo y canvas.
Crear un canvas que muestre la imagen
         del vídeo cada 1 seg.


Ver: cursoHtml5/audio-video/ejemplos/t11.html
Ejemplo

   Combinación de vídeo y canvas para ir
         cambiando los colores


Ver: http://rocha.la/fun-with-pixels-html5-video-canvas
Ejemplo

      Combinación de vídeo y canvas para
       hacer explotar la imagen del vídeo


Ver: http://craftymind.com/factory/html5video/CanvasVideo.html
Tarea 12
    Combinación de vídeo y canvas.
Crear un canvas que muestre la imagen
  pixelada del vídeo en el fondo de la
                 página.

Ver: cursoHtml5/audio-video/ejemplos/t12.html
Fallback
Usar Flash con HTML5
       fallback

Usar HTML5 con Flash
      fallback
Usar Flash con HTML5
          fallback
<object id="flowplayer" width="700" height="400"
       data="http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf"
       type="application/x-shockwave-flash">
       <param name="movie" value="videos/frews-intro.mp4 ">
       <video controls width="700" height="400">
       <source src="videos/frews-intro.mp4" type="video/mp4">
       <source src="videos/frews-intro.ogg" type="video/ogg">
       <img src="freews.jpg" alt=“Freews intro">
       <p>No hay soporte ni de HTML5 video ni Flash.</p>
       <p>Descargar vídeo
               <a href="videos/frews-intro.mp4">MP4 H.264</a>
               o <a href="videos/frews-intro.ogg">Ogg Theora</a>.
       </p>
       </video>
</object>
Usar HTML5 con Flash
         fallback
<video controls width=“420" height=“315">
       <source src="videos/frews-intro.mp4" type="video/mp4">
       <source src="videos/frews-intro.ogg" type="video/ogg">

       <object id="flowplayer" width="700" height="400“
               data="flowplayer-3.2.7.swf“
               type="application/x-shockwave-flash">
       <param name="movie" value="flowplayer-3.2.7.swf">
       <param name="flashvars"
       value='config={"clip":"videos/frews-intro.mp4.mp4"}'>
       <img src="freews.jpg" alt=“Freews intro">
       <p>No hay soporte ni de HTML5 video ni Flash.</p>
       <p>Descargar vídeo
               <a href="videos/frews-intro.mp4">MP4 H.264</a>
               o <a href="videos/frews-intro.ogg">Ogg Theora</a>.
       </p>
       </object>
</video>
Herramientas y
        APIS
       VideoJS player
           jPlayer
       Kaltura HTML5
             ….
http://html5video.org/wiki/HTML5_Player_Comparison
Preguntas abiertas
  Licencia de los contenidos
Streaming desde tú dispositivo
     Streaming adaptativo
     Retrasos audio/vídeo
      Creación dinámica
     https://wiki.mozilla.org/Audio_Data_API
Conclusiones
 Nuevas posibilidades multimedia
    Evolución natural de la web
       Computación ubicua
    Modelo abierto y accesible
Problemas con formatos y versiones
          Licencias, etc.
Enlaces interesantes
•   http://html5-demos.appspot.com/
•   http://www.w3schools.com/html5/html5_audio.asp
•   http://www.w3schools.com/html5/html5_video.asp
•   https://developer.mozilla.org/En/Media_formats_supported_by_t
    he_audio_and_video_elements
•   http://html5video.org/
•   http://net.tutsplus.com/tutorials/html-css-techniques/html5-
    audio-and-video-what-you-must-know/
•   http://html5demos.com/
•   http://html5-demos.appspot.com/
•   https://developer.mozilla.org/en/Using_audio_and_video_in_Fir
    efox
•   https://github.com/etianen/html5media
•   http://html5doctor.com/
•   http://diveintohtml5.info/video.html
•   http://caniuse.com/
•   http://www.html5rocks.com/en/
Curso HTML5 y el
Futuro de la Web
    Audio y Vídeo
   19 de Julio 2012
     Jose María Álvarez Rodríguez
     WESO-Universidad de Oviedo
    E-mail: josem.alvarez@weso.es
     WWW: http://josemalvarez.es

Weitere ähnliche Inhalte

Was ist angesagt?

Quick Time 7 En Ppower Point
Quick Time 7 En Ppower PointQuick Time 7 En Ppower Point
Quick Time 7 En Ppower Pointennana
 
Tallerinclusion2
Tallerinclusion2Tallerinclusion2
Tallerinclusion2rolando
 
Edición de vídeo con iMovie'08
Edición de vídeo con iMovie'08Edición de vídeo con iMovie'08
Edición de vídeo con iMovie'08CREAM
 
Integracion de Medios en HTML5
Integracion de Medios en HTML5Integracion de Medios en HTML5
Integracion de Medios en HTML5Patricio Mas
 
Edición de Video con movie maker
Edición de Video con movie makerEdición de Video con movie maker
Edición de Video con movie makerAngie Armellino
 

Was ist angesagt? (9)

Quick Time 7 En Ppower Point
Quick Time 7 En Ppower PointQuick Time 7 En Ppower Point
Quick Time 7 En Ppower Point
 
Tallerinclusion2
Tallerinclusion2Tallerinclusion2
Tallerinclusion2
 
Manual de Camtasia
Manual de CamtasiaManual de Camtasia
Manual de Camtasia
 
Prueba
PruebaPrueba
Prueba
 
Edición de vídeo con iMovie'08
Edición de vídeo con iMovie'08Edición de vídeo con iMovie'08
Edición de vídeo con iMovie'08
 
Edición de vídeo con iMovie'08
Edición de vídeo con iMovie'08Edición de vídeo con iMovie'08
Edición de vídeo con iMovie'08
 
Integracion de Medios en HTML5
Integracion de Medios en HTML5Integracion de Medios en HTML5
Integracion de Medios en HTML5
 
Edición de Video con movie maker
Edición de Video con movie makerEdición de Video con movie maker
Edición de Video con movie maker
 
Web2
Web2Web2
Web2
 

Andere mochten auch (14)

Internet, Web 2.0 y Salud 2.0
Internet, Web 2.0 y Salud 2.0Internet, Web 2.0 y Salud 2.0
Internet, Web 2.0 y Salud 2.0
 
Introducción a "La Web como una Base de Datos"
Introducción a "La Web como una Base de Datos"Introducción a "La Web como una Base de Datos"
Introducción a "La Web como una Base de Datos"
 
Introducción a Sistemas de Información
Introducción a Sistemas de InformaciónIntroducción a Sistemas de Información
Introducción a Sistemas de Información
 
HTML5-Aplicaciones web
HTML5-Aplicaciones webHTML5-Aplicaciones web
HTML5-Aplicaciones web
 
Ejemplos prácticos de Búsqueda en Salud
Ejemplos prácticos de Búsqueda en SaludEjemplos prácticos de Búsqueda en Salud
Ejemplos prácticos de Búsqueda en Salud
 
CORFU-MTSR 2013
CORFU-MTSR 2013CORFU-MTSR 2013
CORFU-MTSR 2013
 
Simple Presentation for Slideshare
Simple Presentation for SlideshareSimple Presentation for Slideshare
Simple Presentation for Slideshare
 
Researching Semantic Web-Overview
Researching Semantic Web-OverviewResearching Semantic Web-Overview
Researching Semantic Web-Overview
 
Scalable Data Analysis in R Webinar Presentation
Scalable Data Analysis in R Webinar PresentationScalable Data Analysis in R Webinar Presentation
Scalable Data Analysis in R Webinar Presentation
 
MOLDEAS-PhD Summary
MOLDEAS-PhD SummaryMOLDEAS-PhD Summary
MOLDEAS-PhD Summary
 
QoS Management in Cloud Computing-Draft proposal
QoS Management in Cloud Computing-Draft proposalQoS Management in Cloud Computing-Draft proposal
QoS Management in Cloud Computing-Draft proposal
 
MOLDEAS at City College
MOLDEAS at City CollegeMOLDEAS at City College
MOLDEAS at City College
 
WP4-QoS Management in the Cloud
WP4-QoS Management in the CloudWP4-QoS Management in the Cloud
WP4-QoS Management in the Cloud
 
Map/Reduce intro
Map/Reduce introMap/Reduce intro
Map/Reduce intro
 

Ähnlich wie HTML5 audio y video tutorial

Manejo avanzado de audio y video en html5(1)
Manejo avanzado de audio y video en html5(1)Manejo avanzado de audio y video en html5(1)
Manejo avanzado de audio y video en html5(1)Iosdy Campos
 
HTML5 IMG, videos y audio.pptx
HTML5 IMG, videos y audio.pptxHTML5 IMG, videos y audio.pptx
HTML5 IMG, videos y audio.pptxWilderGeronimoCopa
 
3p 10cjm Millercuaran Programacion Practica01
3p 10cjm Millercuaran Programacion Practica013p 10cjm Millercuaran Programacion Practica01
3p 10cjm Millercuaran Programacion Practica01guestd5974a6
 
Desarrollo android - 6 - multimedia
Desarrollo android - 6 - multimediaDesarrollo android - 6 - multimedia
Desarrollo android - 6 - multimediaEmilio Aviles Avila
 
Videoy audio en HTML5
Videoy audio en HTML5Videoy audio en HTML5
Videoy audio en HTML5Julio Alfaro
 
Tutorial movie-maker
Tutorial movie-makerTutorial movie-maker
Tutorial movie-makerkarollkqa
 
HTML5. El objeto vídeo
HTML5. El objeto vídeoHTML5. El objeto vídeo
HTML5. El objeto vídeodarknesplus
 
Video natalycastillo guillermoherrera
Video natalycastillo guillermoherreraVideo natalycastillo guillermoherrera
Video natalycastillo guillermoherreraNathy Castillo Tkd
 
Herramientas para Slideshare
Herramientas para SlideshareHerramientas para Slideshare
Herramientas para Slidesharejalmeyda23
 
Sonido y video en una pagina web
Sonido y video en una pagina webSonido y video en una pagina web
Sonido y video en una pagina webXstremsX
 

Ähnlich wie HTML5 audio y video tutorial (20)

Audio y video
Audio y videoAudio y video
Audio y video
 
html5 multimedia
 html5 multimedia html5 multimedia
html5 multimedia
 
Manejo avanzado de audio y video en html5(1)
Manejo avanzado de audio y video en html5(1)Manejo avanzado de audio y video en html5(1)
Manejo avanzado de audio y video en html5(1)
 
HTML5 IMG, videos y audio.pptx
HTML5 IMG, videos y audio.pptxHTML5 IMG, videos y audio.pptx
HTML5 IMG, videos y audio.pptx
 
4. video y audio html5
4. video y audio html54. video y audio html5
4. video y audio html5
 
Herramientas Para La Publicacion De Materiales 1
Herramientas Para La Publicacion De Materiales 1Herramientas Para La Publicacion De Materiales 1
Herramientas Para La Publicacion De Materiales 1
 
3p 10cjm Millercuaran Programacion Practica01
3p 10cjm Millercuaran Programacion Practica013p 10cjm Millercuaran Programacion Practica01
3p 10cjm Millercuaran Programacion Practica01
 
Producer
ProducerProducer
Producer
 
Desarrollo android - 6 - multimedia
Desarrollo android - 6 - multimediaDesarrollo android - 6 - multimedia
Desarrollo android - 6 - multimedia
 
Html5 audiovideo
Html5 audiovideoHtml5 audiovideo
Html5 audiovideo
 
Videoy audio en HTML5
Videoy audio en HTML5Videoy audio en HTML5
Videoy audio en HTML5
 
Tutorial movie-maker
Tutorial movie-makerTutorial movie-maker
Tutorial movie-maker
 
HTML5. El objeto vídeo
HTML5. El objeto vídeoHTML5. El objeto vídeo
HTML5. El objeto vídeo
 
Manual de Windows Movi Maker
Manual de Windows Movi MakerManual de Windows Movi Maker
Manual de Windows Movi Maker
 
Video natalycastillo guillermoherrera
Video natalycastillo guillermoherreraVideo natalycastillo guillermoherrera
Video natalycastillo guillermoherrera
 
Herramientas para Slideshare
Herramientas para SlideshareHerramientas para Slideshare
Herramientas para Slideshare
 
Insertar audio y video en html
Insertar audio y video en htmlInsertar audio y video en html
Insertar audio y video en html
 
Video Digital
Video DigitalVideo Digital
Video Digital
 
Vídeo educativo, vídeo enriquecido
Vídeo educativo, vídeo enriquecidoVídeo educativo, vídeo enriquecido
Vídeo educativo, vídeo enriquecido
 
Sonido y video en una pagina web
Sonido y video en una pagina webSonido y video en una pagina web
Sonido y video en una pagina web
 

Mehr von CARLOS III UNIVERSITY OF MADRID

Engineering 4.0: Digitization through task automation and reuse
Engineering 4.0:  Digitization through task automation and reuseEngineering 4.0:  Digitization through task automation and reuse
Engineering 4.0: Digitization through task automation and reuseCARLOS III UNIVERSITY OF MADRID
 
LOTAR-PDES: Engineering digitalization through task automation and reuse in t...
LOTAR-PDES: Engineering digitalization through task automation and reuse in t...LOTAR-PDES: Engineering digitalization through task automation and reuse in t...
LOTAR-PDES: Engineering digitalization through task automation and reuse in t...CARLOS III UNIVERSITY OF MADRID
 
Sailing the V: Engineering digitalization through task automation and reuse i...
Sailing the V: Engineering digitalization through task automation and reuse i...Sailing the V: Engineering digitalization through task automation and reuse i...
Sailing the V: Engineering digitalization through task automation and reuse i...CARLOS III UNIVERSITY OF MADRID
 
AI4SE: Challenges and opportunities in the integration of Systems Engineering...
AI4SE: Challenges and opportunities in the integration of Systems Engineering...AI4SE: Challenges and opportunities in the integration of Systems Engineering...
AI4SE: Challenges and opportunities in the integration of Systems Engineering...CARLOS III UNIVERSITY OF MADRID
 
Challenges in the integration of Systems Engineering and the AI/ML model life...
Challenges in the integration of Systems Engineering and the AI/ML model life...Challenges in the integration of Systems Engineering and the AI/ML model life...
Challenges in the integration of Systems Engineering and the AI/ML model life...CARLOS III UNIVERSITY OF MADRID
 
OSLC KM: Elevating the meaning of data and operations within the toolchain
OSLC KM: Elevating the meaning of data and operations within the toolchainOSLC KM: Elevating the meaning of data and operations within the toolchain
OSLC KM: Elevating the meaning of data and operations within the toolchainCARLOS III UNIVERSITY OF MADRID
 
OSLC KM (Knowledge Management): elevating the meaning of data and operations ...
OSLC KM (Knowledge Management): elevating the meaning of data and operations ...OSLC KM (Knowledge Management): elevating the meaning of data and operations ...
OSLC KM (Knowledge Management): elevating the meaning of data and operations ...CARLOS III UNIVERSITY OF MADRID
 
Systems and Software Architecture: an introduction to architectural modelling
Systems and Software Architecture: an introduction to architectural modellingSystems and Software Architecture: an introduction to architectural modelling
Systems and Software Architecture: an introduction to architectural modellingCARLOS III UNIVERSITY OF MADRID
 
Detection of fraud in financial blockchain-based transactions through big dat...
Detection of fraud in financial blockchain-based transactions through big dat...Detection of fraud in financial blockchain-based transactions through big dat...
Detection of fraud in financial blockchain-based transactions through big dat...CARLOS III UNIVERSITY OF MADRID
 
News headline generation with sentiment and patterns: A case study of sports ...
News headline generation with sentiment and patterns: A case study of sports ...News headline generation with sentiment and patterns: A case study of sports ...
News headline generation with sentiment and patterns: A case study of sports ...CARLOS III UNIVERSITY OF MADRID
 

Mehr von CARLOS III UNIVERSITY OF MADRID (20)

Proyecto IVERES-UC3M
Proyecto IVERES-UC3MProyecto IVERES-UC3M
Proyecto IVERES-UC3M
 
RTVE: Sustainable Development Goal Radar
RTVE: Sustainable Development Goal  RadarRTVE: Sustainable Development Goal  Radar
RTVE: Sustainable Development Goal Radar
 
Engineering 4.0: Digitization through task automation and reuse
Engineering 4.0:  Digitization through task automation and reuseEngineering 4.0:  Digitization through task automation and reuse
Engineering 4.0: Digitization through task automation and reuse
 
LOTAR-PDES: Engineering digitalization through task automation and reuse in t...
LOTAR-PDES: Engineering digitalization through task automation and reuse in t...LOTAR-PDES: Engineering digitalization through task automation and reuse in t...
LOTAR-PDES: Engineering digitalization through task automation and reuse in t...
 
SESE 2021: Where Systems Engineering meets AI/ML
SESE 2021: Where Systems Engineering meets AI/MLSESE 2021: Where Systems Engineering meets AI/ML
SESE 2021: Where Systems Engineering meets AI/ML
 
Sailing the V: Engineering digitalization through task automation and reuse i...
Sailing the V: Engineering digitalization through task automation and reuse i...Sailing the V: Engineering digitalization through task automation and reuse i...
Sailing the V: Engineering digitalization through task automation and reuse i...
 
Deep Learning Notes
Deep Learning NotesDeep Learning Notes
Deep Learning Notes
 
H2020-AHTOOLS Use Case 3 Functional Design
H2020-AHTOOLS Use Case 3 Functional DesignH2020-AHTOOLS Use Case 3 Functional Design
H2020-AHTOOLS Use Case 3 Functional Design
 
AI4SE: Challenges and opportunities in the integration of Systems Engineering...
AI4SE: Challenges and opportunities in the integration of Systems Engineering...AI4SE: Challenges and opportunities in the integration of Systems Engineering...
AI4SE: Challenges and opportunities in the integration of Systems Engineering...
 
INCOSE IS 2019: AI and Systems Engineering
INCOSE IS 2019: AI and Systems EngineeringINCOSE IS 2019: AI and Systems Engineering
INCOSE IS 2019: AI and Systems Engineering
 
Challenges in the integration of Systems Engineering and the AI/ML model life...
Challenges in the integration of Systems Engineering and the AI/ML model life...Challenges in the integration of Systems Engineering and the AI/ML model life...
Challenges in the integration of Systems Engineering and the AI/ML model life...
 
Blockchain en la Industria Musical
Blockchain en la Industria MusicalBlockchain en la Industria Musical
Blockchain en la Industria Musical
 
OSLC KM: Elevating the meaning of data and operations within the toolchain
OSLC KM: Elevating the meaning of data and operations within the toolchainOSLC KM: Elevating the meaning of data and operations within the toolchain
OSLC KM: Elevating the meaning of data and operations within the toolchain
 
Blockchain y sector asegurador
Blockchain y sector aseguradorBlockchain y sector asegurador
Blockchain y sector asegurador
 
OSLC KM (Knowledge Management): elevating the meaning of data and operations ...
OSLC KM (Knowledge Management): elevating the meaning of data and operations ...OSLC KM (Knowledge Management): elevating the meaning of data and operations ...
OSLC KM (Knowledge Management): elevating the meaning of data and operations ...
 
Systems and Software Architecture: an introduction to architectural modelling
Systems and Software Architecture: an introduction to architectural modellingSystems and Software Architecture: an introduction to architectural modelling
Systems and Software Architecture: an introduction to architectural modelling
 
Detection of fraud in financial blockchain-based transactions through big dat...
Detection of fraud in financial blockchain-based transactions through big dat...Detection of fraud in financial blockchain-based transactions through big dat...
Detection of fraud in financial blockchain-based transactions through big dat...
 
News headline generation with sentiment and patterns: A case study of sports ...
News headline generation with sentiment and patterns: A case study of sports ...News headline generation with sentiment and patterns: A case study of sports ...
News headline generation with sentiment and patterns: A case study of sports ...
 
Blockchain y la industria musical
Blockchain y la industria musicalBlockchain y la industria musical
Blockchain y la industria musical
 
Preparing your Big Data start-up pitch
Preparing your Big Data start-up pitchPreparing your Big Data start-up pitch
Preparing your Big Data start-up pitch
 

Kürzlich hochgeladen

LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxLAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxAlexander López
 
Análisis de Artefactos Tecnologicos (3) (1).pdf
Análisis de Artefactos Tecnologicos  (3) (1).pdfAnálisis de Artefactos Tecnologicos  (3) (1).pdf
Análisis de Artefactos Tecnologicos (3) (1).pdfsharitcalderon04
 
La tecnología y su impacto en la sociedad
La tecnología y su impacto en la sociedadLa tecnología y su impacto en la sociedad
La tecnología y su impacto en la sociedadEduardoSantiagoSegov
 
Trabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power PointTrabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power PointValerioIvanDePazLoja
 
Herramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdfHerramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdfKarinaCambero3
 
Actividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolarActividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolar24roberto21
 
Viguetas Pretensadas en concreto armado
Viguetas Pretensadas  en concreto armadoViguetas Pretensadas  en concreto armado
Viguetas Pretensadas en concreto armadob7fwtwtfxf
 
Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...
Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...
Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...Marketing BRANDING
 
certificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdfcertificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdfFernandoOblitasVivan
 
Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1ivanapaterninar
 
LINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptx
LINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptxLINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptx
LINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptxkimontey
 
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptLUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptchaverriemily794
 
Slideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan GerenciaSlideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan Gerenciacubillannoly
 
Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)JuanStevenTrujilloCh
 
CommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersCommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersIván López Martín
 
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptxModelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptxtjcesar1
 
La electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdfLa electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdfcristianrb0324
 
PLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docx
PLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docxPLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docx
PLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docxhasbleidit
 
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024u20211198540
 
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docxTALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docxobandopaula444
 

Kürzlich hochgeladen (20)

LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxLAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
 
Análisis de Artefactos Tecnologicos (3) (1).pdf
Análisis de Artefactos Tecnologicos  (3) (1).pdfAnálisis de Artefactos Tecnologicos  (3) (1).pdf
Análisis de Artefactos Tecnologicos (3) (1).pdf
 
La tecnología y su impacto en la sociedad
La tecnología y su impacto en la sociedadLa tecnología y su impacto en la sociedad
La tecnología y su impacto en la sociedad
 
Trabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power PointTrabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power Point
 
Herramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdfHerramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdf
 
Actividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolarActividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolar
 
Viguetas Pretensadas en concreto armado
Viguetas Pretensadas  en concreto armadoViguetas Pretensadas  en concreto armado
Viguetas Pretensadas en concreto armado
 
Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...
Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...
Agencia Marketing Branding Google Workspace Deployment Services Credential Fe...
 
certificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdfcertificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdf
 
Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1
 
LINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptx
LINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptxLINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptx
LINEA DE TIEMPO LITERATURA DIFERENCIADO LITERATURA.pptx
 
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptLUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
 
Slideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan GerenciaSlideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan Gerencia
 
Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)
 
CommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersCommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 Testcontainers
 
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptxModelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
 
La electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdfLa electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdf
 
PLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docx
PLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docxPLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docx
PLANEACION DE CLASES TEMA TIPOS DE FAMILIA.docx
 
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
 
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docxTALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
 

HTML5 audio y video tutorial

  • 1. Curso HTML5 y el Futuro de la Web Audio y Vídeo 19 de Julio 2012 Jose María Álvarez Rodríguez WESO-Universidad de Oviedo E-mail: josem.alvarez@weso.es WWW: http://josemalvarez.es
  • 2. Conceptos Clave Diseño y Estilo Audio y Vídeo Dibujar Rich-Apps Geolocalización Semántica
  • 3. Antecedentes Documentos Imágenes, animaciones, etc. Multimedia HTML Code Evolution 1.0 to 5.0 http://broadcast.rackspace.com/blog/HTMLtimeline/index.html
  • 5. Adobe Flash Microsoft Silverlight Algunas Ventajas… Visualmente atractivas Animaciones, etc. Independientes de formatos, códecs, etc. IDEs desarrollo
  • 6. … y Problemas Soluciones Propietarias Soporte multidispositivo y plataforma Accesibilidad Metadatos Interoperabilidad Necesidad de plugins ….
  • 7. Diversidad de formatos
  • 10. Solución previa <embed src=“file.mid" autostart="false" loop="false" height="45" width="170"> 1 <noembed>El navegador no soporta este elemento.</noembed> </embed> <object width="420" height="315" > <param name="movie" value=" http://www.youtube.com/embed/7qA07K86Bfk "></param> 2 <param name="allowFullScreen" value="true"></param> <embed src=" http://www.youtube.com/embed/7qA07K86Bfk " type="application/x-shockwave-flash" width="425" height="344"> </embed> </object> <iframe width="420" height="315" src="http://www.youtube.com/embed/7qA07K86Bfk" 3 frameborder="0" allowfullscreen> </iframe>
  • 11. Tarea 0 Visitar sitios web de distribución de audio y vídeo e identificar qué solución técnica utilizan Ejemplos: Youtube, Vimeo, Scribd, Hulu, Dalealplay, TV3, BBC, Marca, LNE, etc.
  • 12. HTML5 en acción Nuevos elementos (no admiten cierre en línea) <audio></audio> <audio src="gandalf_onering.mp3" controls></audio> <video></video> <video src="videos/arresto.mp4" autoplay></video>
  • 13. Tarea 1 Ir a la página de clips de audio y hacer un “poco de ruido” con HTML5 http://www.mediacollege.com/downloads/sound- effects/ Ver: cursoHtml5/audio-video/ejemplos/t1.html
  • 14. Tarea 2 Mostrar un vídeo con HTML5 http://www.mediaconverter.org/ Ver: cursoHtml5/audio-video/ejemplos/t2.html
  • 15. Especificación • http://www.w3.org/wiki/HTML/Elements/audio • http://www.w3.org/wiki/HTML/Elements/video • http://www.w3schools.com/html5/html5_ref_av_dom. asp Soporte Depende del navegador…formatos, etc.
  • 16. Formatos de audio Navegador MP3 Wav Ogg Internet Explorer 9 Firefox 4.0 Google Chrome 6 Apple Safari 5 Opera 10.6
  • 17. Formatos de vídeo Navegador MP4 WebM Ogg Internet Explorer 9 Firefox 4.0 Google Chrome 6 Apple Safari 5 Opera 10.6
  • 18. Tarea 3 Chequear soporte de audio y vídeo de distintos navegadores en: http://html5test.com/
  • 19.
  • 21. Especificación in depth…
  • 22. <audio> y <video> Propiedades audioTracks Devuelve el objeto AudioTrackList que contiene la lista de pistas disponibles autoplay Da valor o devuelve si el audio/video debería empezar cuando la página se carga buffered Devuelve un objeto TimeRange que contiene las partes del audio/video en el buffer controller Devuelve el objeto MediaController que contiene la información del controlador de audio/video controls Da valor o devuelve si el elemento de audio/video debe mostrar controles (play, etc.) crossOrigin Da valor o devuelve la configuración CORS del audio/video currentSrc Devuelve la URL de un elemento audio/video currentTime Da valor o devuelve a la propiedad del tiempo de ejeución del elemento audio/video (en segundos)
  • 23. <audio> y <video> Propiedades defaultMuted Da valor o devuelve si el audio/video está silenciado por omisión defaultPlaybackRate Da valor o devuelve la velocidad del playback duration Devuelve la longitud en segundos ended Devuelve si el play ha finalizado error Devuelve un objeto MediaError con el error ocurrido loop Da valor o devuelve si el audio/video debe ejecutarse en bucle mediaGroup Da valor o devuelve el grupo de elementos de audio/video para su gestión muted Da valor o devuelve si el audio/video está silenciado networkState Devuelve el estado de la conexión de red paused Da valor o devuelve si el audio/video está parado
  • 24. <audio> y <video> Propiedades playbackRate Da valor o devuelve la velocidad de ejecución played Devuelve un objeto TimeRanges indicando las partes del audio/video que se ha ejecutado preload Da valor o devuelve el valor para indicar si el audio/video debe ser cargado cuando se carga la página readyState Devuelve el valor que indica si el audio/video está listo para ser reproductido seekable Devuelve un objeto TimeRanges indicando las partes del audio/video que se pueden acceder directamente seeking Devuelve el valor que indica si el usuario ha realizado un acceso directo al audio/video src Da valor o devuelve la dirección del recurso en reproducción startDate Devuelve un objeto Date que indica que el actual time offset textTracks Devuelve un objeto TextTrackList object que indica las pistas textos disponibles videoTracks Devuelve un objeto VideoTrackList que indica las pistas de vídeo disponibles volume Da valor o devuelve el volumen del audio/video
  • 25. <audio> y <video> Métodos Añade una nueva pista al audio/video addTextTrack() Chequea si el navegador puede reproducir ese tipo canPlayType() de audio/video Recarga el elemento de audio/video load() Inicia la reproducción del audio/video play() Pausa de la reproducción en curso del audio/video pause()
  • 26. <audio> y <video> Eventos abort Se ejecuta cuando un audio/video se aborta/finaliza Se ejecuta cuando el navegador comienza con la canplay reproducción del audio/video Se ejecuta cuando el navegador puede ejecutar el canplaythrough audio/video sin parar por el buffering Se ejecuta cuando cambia la duración del audio/video durationchange emptied Se ejecuta cuando la lista de reproducción es vacía ended Se ejecuta cuando la lista de reproducción finaliza error Se ejecuta cuando se produce un error al cargar un audio/video Se ejecuta cuando el navegador ha cargado el frame loadeddata en ejecución del audio/video Se ejecuta cuando el navegador ha cargado los loadedmetadata metadatos del video
  • 27. <audio> y <video> Eventos loadstart Se ejcuta cuando el navegador comienza a cargar el audio/video pause Se ejecuta cuando se pausa el audio/video play Se ejecuta cuando el navegador está en reproducción del audio/video playing Se ejecuta cuando el navegador está lista para reproducir después de una pausa o bien porque ha parado debido al buffering progress Se ejecuta cuando se está descargando el audio/video ratechange Se ejecuta cuando se varia la velocidad de reproducción del audio/video seeked Se ejecuta cuando se finaliza de realizar un acceso directo a una parte del audio/video seeking Se ejecuta cuando se utiliza el acceso a una parte determinada del audio/video stalled Se ejecuta cuando el navegador ha intentado acceder a los metadatos del video y éstos no están disponibles suspend Se ejecuta cuando el navegador no es capaz de conseguir metadatos timeupdate Se ejecuta cuando se cambia la posición de reproducción volumechange Se ejecuta cuando se cambia el volumen waiting Se ejecuta cuando se hace buffering del siguiente frame
  • 29. Tarea 4 Probar las propiedades, eventos y métodos de HTML5 audio/vídeo http://www.w3.org/2010/05/video/mediaev ents.html
  • 30. Tarea 5 • Añadir controles al vídeo poster, loop, controls • Indicar tamaño (widht, height) del mismo Ver: cursoHtml5/audio-video/ejemplos/t5.html
  • 31. Tarea 5-Sol <video src="videos/frews- intro.mp4“ poster="freews.jpg" loop controls width="420" height="315"> </video>
  • 32. Tarea 6 Crear controles propios de load, play, pause y volumen Ver: cursoHtml5/audio-video/ejemplos/t6.html
  • 33. Tarea 7 Gestionar el evento “loadedmetadata” y que muestra el tamaño del vídeo: videoWidth y videoHeight Ver: cursoHtml5/audio-video/ejemplos/t7.html
  • 34. Tarea 8 Crear el elemento vídeo con los elementos source como hijos Ver: cursoHtml5/audio-video/ejemplos/t8.html
  • 35. Tarea 8-Sol <video poster="freews.jpg" controls width="420" height="315"> <source src="videos/frews-intro.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> </source> <source src="videos/frews-intro.ogg" type='video/ogg; codecs="theora, vorbis"'> </source> </video>
  • 36. Tarea 9 Gestionar los errores que se pueden producir durante la ejecución del vídeo Ver: cursoHtml5/audio-video/ejemplos/t9.html http://dev.w3.org/html5/spec/single-page.html#error-codes
  • 37. Tarea 10 Introducir subtítulos en un idioma Formato WebVTT hh:mm:ss.mmm http://dev.w3.org/html5/webvtt/ Los subtítulos deben estar en un servidor web. Ver: cursoHtml5/audio-video/ejemplos/t10.html
  • 38. WebVTT 1 00:00:01,000 --> 00:00:03,000 Hola, primeros 3 segundos... 2 00:00:03,000 --> 00:00:05,000 Otro texto...
  • 39. Tarea 11 Combinación de vídeo y canvas. Crear un canvas que muestre la imagen del vídeo cada 1 seg. Ver: cursoHtml5/audio-video/ejemplos/t11.html
  • 40. Ejemplo Combinación de vídeo y canvas para ir cambiando los colores Ver: http://rocha.la/fun-with-pixels-html5-video-canvas
  • 41. Ejemplo Combinación de vídeo y canvas para hacer explotar la imagen del vídeo Ver: http://craftymind.com/factory/html5video/CanvasVideo.html
  • 42. Tarea 12 Combinación de vídeo y canvas. Crear un canvas que muestre la imagen pixelada del vídeo en el fondo de la página. Ver: cursoHtml5/audio-video/ejemplos/t12.html
  • 43. Fallback Usar Flash con HTML5 fallback Usar HTML5 con Flash fallback
  • 44. Usar Flash con HTML5 fallback <object id="flowplayer" width="700" height="400" data="http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf" type="application/x-shockwave-flash"> <param name="movie" value="videos/frews-intro.mp4 "> <video controls width="700" height="400"> <source src="videos/frews-intro.mp4" type="video/mp4"> <source src="videos/frews-intro.ogg" type="video/ogg"> <img src="freews.jpg" alt=“Freews intro"> <p>No hay soporte ni de HTML5 video ni Flash.</p> <p>Descargar vídeo <a href="videos/frews-intro.mp4">MP4 H.264</a> o <a href="videos/frews-intro.ogg">Ogg Theora</a>. </p> </video> </object>
  • 45. Usar HTML5 con Flash fallback <video controls width=“420" height=“315"> <source src="videos/frews-intro.mp4" type="video/mp4"> <source src="videos/frews-intro.ogg" type="video/ogg"> <object id="flowplayer" width="700" height="400“ data="flowplayer-3.2.7.swf“ type="application/x-shockwave-flash"> <param name="movie" value="flowplayer-3.2.7.swf"> <param name="flashvars" value='config={"clip":"videos/frews-intro.mp4.mp4"}'> <img src="freews.jpg" alt=“Freews intro"> <p>No hay soporte ni de HTML5 video ni Flash.</p> <p>Descargar vídeo <a href="videos/frews-intro.mp4">MP4 H.264</a> o <a href="videos/frews-intro.ogg">Ogg Theora</a>. </p> </object> </video>
  • 46. Herramientas y APIS VideoJS player jPlayer Kaltura HTML5 …. http://html5video.org/wiki/HTML5_Player_Comparison
  • 47. Preguntas abiertas Licencia de los contenidos Streaming desde tú dispositivo Streaming adaptativo Retrasos audio/vídeo Creación dinámica https://wiki.mozilla.org/Audio_Data_API
  • 48. Conclusiones Nuevas posibilidades multimedia Evolución natural de la web Computación ubicua Modelo abierto y accesible Problemas con formatos y versiones Licencias, etc.
  • 49. Enlaces interesantes • http://html5-demos.appspot.com/ • http://www.w3schools.com/html5/html5_audio.asp • http://www.w3schools.com/html5/html5_video.asp • https://developer.mozilla.org/En/Media_formats_supported_by_t he_audio_and_video_elements • http://html5video.org/ • http://net.tutsplus.com/tutorials/html-css-techniques/html5- audio-and-video-what-you-must-know/ • http://html5demos.com/ • http://html5-demos.appspot.com/ • https://developer.mozilla.org/en/Using_audio_and_video_in_Fir efox • https://github.com/etianen/html5media • http://html5doctor.com/ • http://diveintohtml5.info/video.html • http://caniuse.com/ • http://www.html5rocks.com/en/
  • 50.
  • 51. Curso HTML5 y el Futuro de la Web Audio y Vídeo 19 de Julio 2012 Jose María Álvarez Rodríguez WESO-Universidad de Oviedo E-mail: josem.alvarez@weso.es WWW: http://josemalvarez.es