CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.

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

Chapter 15 HTML 5 Video and Audio Intro to HTML5 “Computers and Creativity” Richard D. Webster, COSC 109 Instructor Office: 7800 York Road, Room 422 |
HTML5, OVERVIEW AND NEW FEATURES PowerPoint by Mason O’Mara.
Iframes & Images Using HTML.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 17: Video, Audio, and Other MultiMedia.
More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54
SHAREPOINT PAKISTAN USER GROUP #1 SHAREPOINT COMMUNITY IN PAKISTAN AND ASIA HTML5 and SharePoint 2013.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
INF Web Design Using Multimedia on the Web Video - Part 1.
HTML 5 Tutorial Chapter 1 Introduction. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML.
M ULTIMEDIA ON THE W EB. Multimedia Purpose of Multimedia Multimedia Issues Animation Digital Audio fundamentals Browser Plug-ins Java Applets.
HTML Advanced: HTML 5. Welcome This slideshow presentation is designed to introduce you to HTML 5. It is the third of three HTML workshops available at.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
Chapter 14 Introduction to HTML
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
Web Design Basic Concepts.
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.
Mark Branom, Continuing Studies.  HTML5 overview – what’s new?  New HTML5 elements  New HTML5 features  Guided Demonstrations  Forms  Video  Geolocation.
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.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Media and Interactivity with Flash and Spry.
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.
CPSC 594B: Software Engineering Project Lecture 1: Introduction to HTML5 Lecturer: Ayman Issa Office: ICT 555.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
HTML 5 and Content Strategy for the Web By: Christina Fregosi ISC 496.
Director of Computer Center, DaYeh University Ku-Yaw Chang.
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.
Computer Concepts 2014 Chapter 7 The Web and .
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.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
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.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
Proglan Session 1. .  HTML5 will be the new standard for HTML.  The previous version of HTML, HTML 4.01, came in The web has changed a lot since.
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.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
U NDERSTAND THE W EB AND D IGITAL C OMMUNICATIONS P ATHWAY 4.02 U NDERSTAND HOW W EBPAGES ARE CREATED AND USED.
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.
By Tharith Sriv. To write a web page you use: HHTML (HyperText Markup Language), AASP (Active Server Page), PPHP (HyperText Preprocessor), JJavaScript,
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.
(1) HTML5, CSS, Twitter Bootstrap. (2) HTML5 Will be the new standard New features Drag and Drop and Support for local storage,,,, New input types Removed.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
Let’s look what flash can do: OK, that wasn’t flash! That was HTML5.
What is HTML5? HTML5 will be the new standard for HTML. The previous version of HTML, HTML 4.01, came in The web has changed a lot since then. HTML5.
CHAPTER 10 AUDIO AND VIDEO. MEDIA PLAYER API HTML5 contains an API (Application Programming Interface) for controlling audio and video players embedded.
HTML Structure & syntax
Chapter 9 HTML 5 Video and Audio
The HTML5 logo was introduced by W3C in 2010
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 9 HTML 5 Video and Audio
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 4: HTML5 Media - <video> & <audio>
HTML 5 Tutorial Chapter 1 Introduction.
Dive Into HTML5 - Start Using It Now! Mark Branom, Continuing Studies
Tutorial 7 Working with Multimedia
Audio and Video Chapter 10.
Essentials of Web Pages
WEB PROGRAMMING JavaScript.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Lesson 5: Multimedia on the Web
Show your animation project. HTML5 video. Miro.
Presentation transcript:

CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1

In this lecture, you will learn: A list of new features in HTML5 Key differences between HTML5 and XHTML Basic structure of an HTML5 document 2

HTML 5 Latest revision of HTML Backward compatible New key features: video and audio tags content-specific tags tags for form elements canvas element storage of user data 3

HTML 5 Basic Structure This is a title of the page This is the content of the Web page 4

An HTML 5 Document OK to still follow the rules of XHTML This is a title of the page This is the content of the Web page. Arbitrary: cases for tags, pairing tags, uses of quotation marks. Still a valid HTML 5 document. This is a title of the page This is the content of the Web page. 5 Easy to readHard to read

Traditional methods of adding video and audio on Web pages vs. HTML5 and Key difference: What applications play the media Traditional method (non-HTML5): browser plug-in (such as Flash Player and QuickTime) or external application (such as QuickTime player) Using HTML5 and : browser's built-in player 6

Video and Audio Tags Allow simple code for adding video and audio on Web pages Video and audio are played back by the Web browser's built-in player, not plug-ins Main focus of this chapter 7

Video 8 Your browser does not support the video tag.

Canvas Allows drawing graphics and placing images dynamically inside canvas using JavaScript Visual content inside the canvas can be scripted to change over time (hence animation) and in response to the user interaction (mouse clicks and key presses) The canvas element together with JavaScript is used for animation and game development 9

Canvas with JavaScript 10 Your browser does not support the HTML5 canvas tag. var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.fillStyle="#FF0000"; ctx.fillRect(0,0,150,75);

Content-Specific Tags Tag examples:,,,,,,, Provide a standardized system to classify the information on Web pages by semantics This facilitates computers to process the information by its meaning and thereby potentially help users to find the right information. 11

Form Elements New form controls examples: date picker, color picker, numeric stepper, new input types ( , url, and search) To enhance user experience of filling out forms 12

Storage of User Data Before HTML5, user data is stored at cookies and server- side storage. Web storage feature of HTML5 allows storage and retrieval of data on the user machine without user login or servers; i.e., no need for server-side databases or user accounts set up on the server Approx. 5 MB storage limit depending on browsers Larger data limit than cookies (4 KB limit) 13

Geolocation GetCurrentPosition() method to get the user’s position 14 Click the button to get your coordinates: Try It var x=document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else{ x.innerHTML="Geolocation is not supported by this browser."; } function showPosition(position) { x.innerHTML="Latitude: " + position.coords.latitude + " Longitude: " + position.coords.longitude; }

Effects on User Experience HTML5 Video and Audio Each Web browser may support different features of video and audio playback Each Web browser has its own visual design of the player controller Traditional non-HTML5 The same plug-in or external application has the same interface across Web browsers 15

Screenshot of Video Player: Firefox Controller: Overlaid on the video; appears when mouse over the video current timetotal time

Screenshot of Video Player: Safari 5 17 Controller: Added at the bottom; always showing current timefull screen

Screenshot of Video Player: Chrome Controller: Overlaid on the video; appears when mouse over the video current time

Screenshot of Video Player: IE 9 19 Controller: Overlaid on the video; appears when mouse over the video audio volumecurrent time

Use of Tag The simplest form of tag to add an HTML5 video on a Web page: 20 source attributefile path of the media controls attribute: to show the controller

Use of Tag The simplest form of tag to add an HTML5 audio on a Web page: 21 source attributefile path of the media controls attribute: to show the controller

HTML 5 Video Formats H.264 MPEG-4/AVC:.mp4 OGG:.ogg,.ogv WebM:.webm 22

HTML 5 Audio Formats WAV:.wav OGG Vorbis:.ogg,.oga MP3:.mp3 AAC:.m4a 23

Browser Support for HTML 5 Video H.264 MPEG/AVC OGGWebM Firefox Safari3.0+ IE9.0+ ChromeYes, but will discontinue support Opera Note: No one browser supports all three video formats No one video format is supported by all browsers

Browser Support for HTML 5 Audio WAVOGG VorbisMP3AAC Firefoxxx Safarixxx IExx Chromexxxx Operaxx 25 Note: No one audio format is supported by all browsers

Why Fallback Strategies? Not all browsers support HTML5 video and audio Use fallback strategies to provide alternatives for those browsers 26

Basic Idea of Fallback Strategies In element, add extra HTML code, which is not HTML5 specific This extra code tells the browser what to display If the browser does not support HTML5 video and audio, it will: ignore the and tags use that extra code intended for fallback Your browser does not support HTML5 video. 27

Fallback Strategies Use of Flash Video Has been widely used on the Web Almost all browsers have Flash Video Player tag to embed an alternative video Use of links to download video Simply add links for users to download the video Also a fallback for devices that do not support Flash video playback tag to present links to video Use of a static image Simply use an image (often a representative frame of the video) in place of the video Also a fallback for devices that do not support Flash video playback 28

Creating HTML5 Video and Audio If your video/audio editor does not support exporting all or any of the HTML5 video/audio formats, you can: 1. Export your video/audio to a common format, e.g. Video: QuickTime (.mov), Flash Video (.f4v) Audio: WAV (.wav) 2. Convert your video/audio to HTML5 formats 29

Free Tools for Converting Video/Audio to HTML5 Video/Audio Formats ToolWeb SiteSupported OSOutput MediaCoder Windows, Mac OS, Linux Video: MP4, WebM, Ogg Audio: MP3, Ogg, AAC HandBrake Windows, Mac OS, Linux Video: MP4 Firefogg (As a Firefox 6+ plug-in) Video: WebM, Ogg VLC Media Player Windows, Mac OS, Linux Audio: MP3, AAC, Ogg 30