Neal Stublen Pre-HTML5 Solutions  Audio and video were embedded in pages using plug-ins Apple Quicktime Microsoft Silverlight Adobe.

Slides:



Advertisements
Similar presentations
What is Multimedia ? Multi ( Multiple ) and Media ! So…. Information in multiple formats, including text, images, audio, video and animation :) It makes.
Advertisements

1 HTML5 Audio and Video Credits: Dr. Jay Urbain
Chapter 11 Media and Interactivity Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
Chapter 11 Media and Interactivity Basics Key Concepts
HTML Structure & Web Design Basics
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 17: Video, Audio, and Other MultiMedia.
HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
UNIT K: INCORPORATING VIDEO AND AUDIO 1 Encoding: the process of transforming moving image and/or sound into a digital file. Each encoding method known.
HTML5 Application Development Fundamentals
HTML5 (H YPER T EXT M ARKUP L ANGUAGE ) Lab 223 潘建廷 何偉聖
Video, audio, embed, iframe, HTML Form
INF Web Design Using Multimedia on the Web Video - Part 1.
M ULTIMEDIA ON THE W EB. Multimedia Purpose of Multimedia Multimedia Issues Animation Digital Audio fundamentals Browser Plug-ins Java Applets.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
XP 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets Tutorial 8.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Session: 11. © Aptech Ltd. 2HTML5 Audio and Video / Session 11  Describe the need for multimedia in HTML5  List the supported media types in HTML5 
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
CIS 1310 – HTML & CSS 11 Web Multimedia & Interactivity.
Video on the Web. The Evolution of web video formats… WebM (Supported by Google) Ogg (Supported by Theora) Mp4 (h264 video encoding) WebM (Supported by.
CHAPTER 18 INTEGRATING AUDIO AND VIDEO. LEARNING OBJECTIVES How the HTML 5 and tag pair can be used to include a video file within a webpage How video.
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
E0262 – MIS – Multimedia Storage Techniques SMIL – Synchronized Multimedia Integration Language.
Using HTML 5.  HTML 5 uses a standard method to embed audio into Web pages.  Prior to HTML 5, browser plug-ins or separate applications such as Windows.
Multimedia and Web Technology Prepared by: Asst. Prof. Maryam Eskandari.
Tutorial 7 Working with Multimedia. XP Introducing Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline.
Building the User Interface by Using HTML5: Text, Graphics, and Media Lesson 2.
1 Lecture 12: Multimedia Not in Web 101 Text  Important Multimedia Issues  Audio  Movies and Video  Multimedia and HTML Documents.
Programming Games Show your cannonball. HTML5 video. Miro. Classwork/Homework: Acquire video, convert to multiple formats, and produce simple (just html)
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 11 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 11 Key Concepts 1 Copyright © Terry Felke-Morris.
XP Tutorial 8New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and.
Your Metro style app, video and audio, Part 1
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
HTML5 Audio and Video. Slide 2 History Playing audio and video used to be something of a novelty You would embed a control (with the element) into your.
HTML 5 Tutorial Chapter 3 Video. Video HTML 5.0 provides a standard for showing video. Using the element we can easily embed video within our web page.
HTML 5. Introduction In modern browsers, adding a video to your page is as easy as adding an image. No longer do you need to deal with special plug-ins.
Embedding Multimedia in Web Pages  Multimedia is a popular buzzword for sound, motion video, and interactive animation.  Some problems or obstacles.
HTML 5 The Future of Web Development. What is HTML5? “HTML5 is a specification of how the web’s core language, HTML, should be formatted and utilized.
2 If aliens came to this solar system and observed humans over the last several years, what would they think is the most significant benefits of the.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
Chapter 8 Adding Multimedia Content to Web Pages HTML5 & CSS 7 th Edition.
INT222 – Internet Fundamentals Week 8: Using New HTML features 1.
CHAPTER 8 Multimedia 1. Using Multimedia ❖ Multimedia: the combination of text, sound, and video to express an idea or convey a message. ❖ Podcasts: a.
M ULTIMEDIA ON THE W EB. Multimedia Purpose of Multimedia Multimedia Issues HTML5 and elements CSS Transitions and Animations Animation to avoid.
Copyright © Terry Felke-Morris Web Development & Design Foundations with HTML5 8 th Edition CHAPTER 11 KEY CONCEPTS 1.
CHAPTER 10 AUDIO AND VIDEO. MEDIA PLAYER API HTML5 contains an API (Application Programming Interface) for controlling audio and video players embedded.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 9 HTML 5 Video and Audio
HOW FLASH WORKS The Flash authoring environment is used to create Flash movies The .fla file is exported to a format called .swf The .swf file is.
Chap 3. Audio/Video api.
Chapter 4: HTML5 Media - <video> & <audio>
Audio and Video on the Web
HTML5 Level II Session II
Playing Audio (Part 2).
Audio and Video Chapter 10.
Playing Audio (Part 1).
Playing Video (Part 2).
Playing Video (Part 1).
Client-Side Internet and Web Programming
Basics of Web Design Chapter 11 Media and Interactivity Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
How to add audio and video to your website
HTML5 Audio & Video By Derek Peacock
Show your animation project. HTML5 video. Miro.
Presentation transcript:

Neal Stublen

Pre-HTML5 Solutions  Audio and video were embedded in pages using plug-ins Apple Quicktime Microsoft Silverlight Adobe Flash

Native Audio and Video  HTML5 provides audio and video elements for built-in media support Not supported pre-IE9  Audio Roughly 85% support  Video Roughly 85% support

Video Container Format  Containers are specific file formats for transporting audio and video Wraps a video track, audio track, and data to synchronize the tracks Language information Media metadata  Containers for HTML5 include MPEG-4, Ogg, WebM

Audio and Video Codecs  Codecs define algorithms used to encode or decode a media stream Coder/decoder  Video codecs relevant to HTML5 include H.264, Theora, and VP8  Audio codecs relevant to HTML5 include AAC and Vorbis

Browser Support  Audio and video streaming requires browser support for the container and codecs used for a specific media stream  Audio and video tags provide a standard way of incorporating media on a web page, but the browser/OS still need to support chosen data formats  details support

Including Video  Basic tag use:  Typical tag use: <video src=“example.webm” width=“800” height=“480” controls>

Built-in Controls  The controls attribute specifies that the browser should display built-in controls for controlling playback  Controls are browser-specific No standard appearance Standard appearance would require use of additional markup and JavaScript

The autoplay attribute  Media will not begin playing automatically  The autoplay attribute will start playback after the page has loaded <video src=“example.webm” autoplay>

The loop attribute  Seeks back to the start of the media after reaching the end  Most likely use may be background sounds or music (perhaps in a game) <video src=“example.webm” loop>

The preload attribute  preload=“auto” Begins loading the media stream before the user presses the play button Faster response  preload=“none” Prevents loading the video before pressing play Less bandwidth  preload=“metadata” Loads media metadata (duration, dimensions)  Browsers determine the default value

The poster attribute  Specifies an image that should appear as the “teaser” for a video element poster=“teaser.png”

The audio attribute  Allows the audio track to be muted by default audio=“muted”

Handling Supported Formats  Provide source elements instead of a src attribute <source src=“example.mp4” type=“video/mp4” /> <source src=“example.webm” type=“video/webm” />

Specifying Codecs <source src=“example.mp4” type=‘video/mp4; codecs=“avc1.42E01E, mp4a.40.2” /> <source src=“example.webm” type=‘video/webm; codecs=“vp8, vorbis” />

source Order  Browsers will use the first compatible source element even if they support multiple available formats

Fallback Support  Browsers that don’t support the audio and video tags will simply render the content within the tags  An object tag can be used to embed support for older methods, such as Flash  Modern browsers will ignore the additional content within the tag that’s not a source element  Fallback support could be a download link

MIME Types  The type attribute specifies the MIME type for the media Multipurpose Internet Mail Extensions  Your web server may need to be properly configured to serve specific MIME types correctly

Video Encoding  If you have video that is not in a supported format, it will need to be encoded again Miro Video Converter  You should be able to encode a single source into the multiple formats that cover most browsers

Custom Controls  Audio and video tags can be accessed from JavaScript just like any other elements  Additional markup can be used to create your own controls

Audio and Video Events  canplay – indicates playback can begin  error  loadeddata  loadedmetadata  playing – also indicates looping  seeking  seeked

Audio and Video Attributes  playbackRate  src (from attribute)  currentSrc (from attribute or element)  readyState  duration  buffered  videoWidth/videoHeight (source sizes)

Audio Differences  Invisible unless controls are specified  Allows possibility of using multiple audio elements for background sounds  MP3 and Ogg/Vorbis formats will cover all major browsers

Text Tracks  Including track elements within a video element allows inclusion of subtitles, captions <track kind=“subtitle” src=“subtitles.en.vtt” srclang=“en” label=“English” />