HTML 5 and CSS 3, Illustrated Complete. Unit K: Incorporating Video and Audio

Similar documents
IDM 221. Web Design I. IDM 221: Web Authoring I 1

HTML5: MULTIMEDIA. Multimedia. Multimedia Formats. Common Video Formats

Technologies Web Côté client

Flash, Video. How to add Flash movies into your site How to add video and audio to your site HTML5 <video> and <audio> elements

CITS3403 Agile Web Development Semester 1, 2016

How Libre can you go?

Until HTML5, there has never been a standard for showing video on a web page. Previously, most videos were shown through a plugin (mainly Flash).

HTML5 HTML & Fut ure o Web M edi dia Streami a est Work h op, ov 2010 Michael Dale Zohar Babin eve oper o Dev R l e t a i tions & C

Video. Add / edit video

Interactive feature: HTML5 video for

Lesson 5: Multimedia on the Web

HTML Forms. CITS3403 Agile Web Development. 2018, Semester 1

QuickTime Pro an inexpensive (but clunky) solution

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 11 Test Bank

DIGITAL AD SPECS. Rectangle 2 Dimensions: 300x250 File Size: 60 kb max. File Format: JPG, PNG, GIF. Animation: GIF; 15 sec max. Video: Yes (RRM/IBV)

FOUNDATION. Matthew David AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO

Table of contents. HTML5 MP3 Player Manual DMXzone.com

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Helper Applications & Plug-Ins

Universal Ad Package (UAP)

Adding Multimedia Content to Web Pages

Revision 4.1.x /2.x.x [ ] Creating Media for Modulo Player & Kinetic

DIGITAL AD SPECS. Rectangle Dimensions: 300x250. File Size: 60 kb Max. File Format: JPG, PNG, GIF, ad tags Animation: GIF, HTML5, 15 sec max; IBV

Multimedia. File formats. Image file formats. CSE 190 M (Web Programming) Spring 2008 University of Washington

Inserting multimedia objects in Dreamweaver

What is HTML5? The previous version of HTML came in The web has changed a lot since then.

Install Flash Plugin Manually Internet Explorer 9 Webm

HTML5 - INTERVIEW QUESTIONS

Digital Audio Basics

HTML5 INTRODUCTION & SEMANTICS

Lesson 5: Multimedia on the Web

DVS-200 Configuration Guide

HTML5 for Java Developers. Sang Shin Founder and Chief Instructor JPassion.com

Autodesk Moldflow Adviser AMA Reports

Related Solution(s) Note: Standard Ad Solution. KBB.com Advertising Specifications Medium Rectangle (MREC) Ad Unit

The World In. Advertising specs

Media Suite 2.0. Getting Started with sharing media on your Website

Debunking HTML5 Video Myths: A Guide for Video Publishers. by Robert Reinhardt

ITEC447 Web Projects CHAPTER 10 FLASH & SILVERLIGHT 1

HTML5 INTRODUCTION & SEMANTICS

Technical Requirements

The Economist Apps. Advertising Specs

SpaceNews.com Specifications

CS474 MULTIMEDIA TECHNOLOGY

Adding Audio and Video Content to Web pages. Audio Content - Add some Audio content to your page. Audio & Video 1

Technical Specifications ONLINE 2019 Q1. De Standaard Het Nieuwsblad Gazet van Antwerpen Het Belang van Limburg

HTML5 INTRODUCTION & SEMANTICS

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Video Developer Report 2017

BeaqleJS: HTML5 and JavaScript based Framework for the Subjective Evaluation of Audio Quality

HTML: Inline & HTML5 Elements, and More

Recording oral histories

SAMSUNG SOC FOR ICOMPEL CONTENT COMMANDER

UNDERSTANDING MUSIC & VIDEO FORMATS

Streaming Audio and Video on the Web

VIDEO PLAYER FOR RASPBERRY PI (update 2017/11/13)

DVS-200 Configuration Guide

How to lay out a web page with CSS

DIGITAL AD SPECS. Rectangle Dimensions: 300x250. File Size: 60 kb Max. File Format: JPG, PNG, GIF, ad tags Animation: GIF, HTML5, 15 sec max; IBV

Completing the Multimedia Architecture

Contents. Getting Set Up Contents 2

Technical Specifications ONLINE

WoundClinic. PodiatryToday Digital Rate Card & Specification Guide. PodiatryToday

How to Troubleshoot Panopto Viewing Issues

Top Trends in elearning. September 15 & 16, Is HTML5 Ready for elearning? Debbie Richards, Creative Interactive Ideas

Tablet 300x x x x1024

Audio and Video Standards for Internet Resources

DNA Evolution 4.0 Workflow Guide for Automated Third-party Preview Generation

Quicktime Player Error Codec For Avi Per

Embedding and linking to media

Real Player 10 Manual For Windows 7 New Version

The new official site jw.org is still in construction but here are some tips you might find useful.

HTML5 Video. Streaming Parameters. Example (HTML) Example (JavaScript) Streaming Video ON THIS PAGE

STAROS user manual. Headquarter Flat D, 5/F, Excelsior Building, 364 Nathan Rd., Kowloon, H.K TEL: (852) FAX: (852)

Mov codec for wmp xdcam. Mov codec for wmp xdcam.zip

Movie Generation Guide

TEACHERS INITIAL DIMENSIONS (PX) Medium Rectangle 300x250 Expansion not allowed for this unit

Technical Specifications ONLINE 2018 Q4. De Standaard Het Nieuwsblad Gazet van Antwerpen Het Belang van Limburg Vier & Vijf Zes

Create, Add, and Manage Videos

Webcaster Frequently Asked Questions

Part I. Web Technologies for Interactive Multimedia

Envivio Mindshare Presentation System. for Corporate, Education, Government, and Medical

MAX 2007 Integrating Flex and Video

Technical Specifications ONLINE 2019 Q1. De Standaard Het Nieuwsblad Gazet van Antwerpen Het Belang van Limburg Vier & Vijf Zes

Objective Execute advanced production methods to design and develop websites.

Image and video processing

VIDEO PLAYER FOR RASPBERRY PI (update 2018/12/25)

CMPT 165 Notes on HTML5

Audio,Video & Lighting

Manual Html Image Src Url Path Not Working

Everything you need to know to get you started. By Kevin DeRudder

JANUARY 2018 PRIVATE MEDIA CREATIVE SPECIFICATIONS

WCMS Responsive Design Template Upgrade Training

ADVERTISING SPECIFICATION

HTML5. Language of the Modern Web. By: Mayur Agrawal. Copyright TIBCO Software Inc.

MENU button until a padlock icon appears in the top-left corner of the screen. This will not affect the volume control. To unlock the buttons, hold do

Chapter 15 Plug-ins, ActiveX, and Applets

计算原理导论. Introduction to Computing Principles 智能与计算学部刘志磊

liquivid Easy Cinemagraph v1.1.x Installation Instructions for Windows, macos Manual

Your Target Audience. Programmatically Optimized Media Mix. Reaching Your Audience on Their Favorite Devices

Transcription:

HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio

Objectives Understand Web video and audio Use the video element Incorporate the source element Control playback HTML 5 and CSS 3 Illustrated Complete 2

Objectives (continued) Add video support for older browsers Provide a fallback image Implement the audio element Add audio support for older browsers HTML 5 and CSS 3 Illustrated Complete 3

Understanding Web Video and Audio Video and audio are widespread Need to make choices on how to incorporate video and audio into Web pages Encoding: transforming moving image and/or sound into a digital file Each encoding method known as codec Main video codecs: H.264, Theora, and VP8 Main audio codecs: AAC, MP3, and Vorbis HTML 5 and CSS 3 Illustrated Complete 4

Understanding Web Video and Audio (continued) Stream: encoded set of video or audio data Container: file that contains a video stream May contain accompanying audio stream e.g., MPEG-4, Ogg, WebM, Flash Video Each container commonly used with specific audio codec and specific video codec HTML 5 and CSS 3 Illustrated Complete 5

Understanding Web Video and Audio (continued) Helper program: program that can unpack container and decode video and audio streams Also known as plugin Users often need to download appropriate software packages Not all browsers natively support containers and codecs Web developers must take steps to ensure usability when publishing media HTML 5 and CSS 3 Illustrated Complete 6

Using the video Element <video> element: used to add video to a Web page Only works in HTML5 Attributes indicate how video is presented to users of the Web page src: specifies video file to display width and height: dimensions of the video element within Web page type: specifies container format and codecs used to encode the file Container format expressed using MIME type HTML 5 and CSS 3 Illustrated Complete 7

Using the video Element (continued) Code containing video element HTML 5 and CSS 3 Illustrated Complete 8

Incorporating the source Element Not all browsers support all containers <source> element: used to specify a media file to be displayed Multiple source elements can be nested within HTML5 elements Can be used to reference multiple video files each specifying the same video in different container and encoding formats Dimensions of the video still set in video tag attributes HTML 5 and CSS 3 Illustrated Complete 9

Incorporating the source Element (continued) Code containing multiple source elements nested within a video element HTML 5 and CSS 3 Illustrated Complete 10

Controlling Playback Attributes of the video element provide control over how element is displayed and how user interacts with video controls: instruct browser to add default controls to the video element preload: when browser should download the video loop: restart playback when end of video is reached autoplay: start playback when page is loaded HTML 5 and CSS 3 Illustrated Complete 11

Controlling Playback (continued) Code for adding video controls HTML 5 and CSS 3 Illustrated Complete 12

Controlling Playback (continued) Video controls rendered in different browsers HTML 5 and CSS 3 Illustrated Complete 13

Adding Video Support for Older Browsers Older browsers do not recognize HTML5 elements You can add support for older browsers while maintaining HTML5 features for browsers that support it To make video available, use object and param elements object element defines video type / data param elements define settings of the video HTML 5 and CSS 3 Illustrated Complete 14

Adding Video Support for Older Browsers (continued) Code for browsers supporting the Adobe Flash version of the video HTML 5 and CSS 3 Illustrated Complete 15

Adding Video Support for Older Browsers (continued) Video displayed in Flash Player HTML 5 and CSS 3 Illustrated Complete 16

Providing a Fallback Image It is likely that some potential viewers will be unable to view video content To preserve layout of Web page video and object element allow you to specify a fallback image Gives users a taste of the content in the video For video tag, use poster attribute For object tag, create a nested img tag HTML 5 and CSS 3 Illustrated Complete 17

Providing a Fallback Image (continued) Code for providing a fallback image HTML 5 and CSS 3 Illustrated Complete 18

Implementing the audio Element <audio> element: HTML5 element for linking audio files to a Web page and enabling user to control playback Takes the same attributes as the video element Accepts nested source elements for source files in multiple formats Important to display the controls because without them, audio element is invisible on the Web page HTML 5 and CSS 3 Illustrated Complete 19

Implementing the audio Element (continued) audio and source elements: code and result HTML 5 and CSS 3 Illustrated Complete 20

Adding Audio Support for Older Browsers Not all older browsers recognize the HTML5 audio tag Use an object element and nested param elements to specify fallback content Just like you would use for fallback video Even though a file contains no video, its location is indicated using the movie parameter HTML 5 and CSS 3 Illustrated Complete 21

Adding Audio Support for Older Browsers (continued) Code incorporating fallback version of audio and resulting page HTML 5 and CSS 3 Illustrated Complete 22

Summary Media files can be included in a Web page, provided that you take into consideration: Encoding and container formats Inclusion of helper programs and plugins Providing support for older browsers Video is added using <video> element Attributes specify how video is displayed and how user interacts with the video HTML 5 and CSS 3 Illustrated Complete 23

Summary (continued) source elements allow you to provide multiple copies of the file in different formats Various attributes of video element enable control of video playback Video support for older browsers is added using object and param elements HTML 5 and CSS 3 Illustrated Complete 24

Summary (continued) Fallback image can be provided For video tag, use the poster attribute For object tag, nest an img tag before closing object tag Audio is added using the audio element Similar attributes to video element Use object and param elements to provide audio support for old browsers HTML 5 and CSS 3 Illustrated Complete 25