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.

Slides:



Advertisements
Similar presentations
Chapter 11 Media and Interactivity Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Advertisements

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
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.
Section 9.1 Identify multimedia design guidelines Identify sources of multimedia files Explain the ethical use of multimedia files Describe multimedia.
HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio.
Neal Stublen Pre-HTML5 Solutions  Audio and video were embedded in pages using plug-ins Apple Quicktime Microsoft Silverlight Adobe.
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.
3.02 Publishing Animations
INF Web Design Using Multimedia on the Web Video - Part 1.
Different Streaming Technologies. Three major streaming technologies include:
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.
Section 9.1 Section 9.2 YOU WILL LEARN TO…
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.
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.
Lesson 10: Adding Flash, Video, and Sound Content Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver.
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.
1 Web Developer Foundations: Using XHTML Chapter 10 Helper Applications and Plug-in Concepts.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Programming Games Show your cannonball. HTML5 video. Miro. Classwork/Homework: Acquire video, convert to multiple formats, and produce simple (just html)
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
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.
Tutorial 7 Working with Multimedia
Tutorial 7 Designing a Multimedia Web Site
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.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
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.
XP Tutorial 8 Adding Interactivity with ActionScript.
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.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
CS 200 Multimedia Objects in Web Pages. MultiMedia Objects Three primary types of multimedia objects  Audio  Video Includes Flash Objects  Images.
Chapter 8 Adding Multimedia Content to Web Pages HTML5 & CSS 7 th Edition.
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.
Advanced HTML Tags:.
Section 9.1 Section 9.2 YOU WILL LEARN TO…
Using Multimedia on the Web
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.
Audio and Video on the Web
Learn HTML Basics Lesson No : 10
Tutorial 7 Working with Multimedia
HTML5 Level II Session II
Playing Audio (Part 2).
Audio and Video Chapter 10.
Integrating Multimedia: Sound, Video and More
Playing Video (Part 2).
Playing Video (Part 1).
HTML5 Media.
Client-Side Internet and Web Programming
Basic HTML and Embed Codes
Working with Multimedia
How to add audio and video to your website
HTML5 Audio & Video By Derek Peacock
Presentation transcript:

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 Internet to humankind?

YouTube videos of cats. 3

4

5 Why would you use audio and video on a web page? Give several examples. Before HTML5 – there was no standard for showing videos on a web page. videos could only be played with a plug-in (like flash). The HTML5 element specifies a standard way to embed a video in a web page.

Encoding: the process of transforming moving image and/or sound into a digital file. Each encoding method known as codec  (short for coder / decoder)  Main video codecs: H.264, Theora, and VP8  Main audio codecs: AAC, MP3, and Vorbis Stream: Encoded set of video or audio data 6

Container: file that contains a video stream  Because video is typically accompanied by audio, a video stream is packaged within a container, which may also contain the accompanying audio stream.  e.g., MPEG-4, Ogg, WebM, Flash Video  Most container formats can accommodate a variety of codecs, but each container is commonly used with a particular audio codec and a particular video codec. 7

Plastic pitcher ( container - file that contains a video stream) that we follow the directions ( codec - each encoding method) to mix together our items ( encoding - the process of transforming moving image and/or sound into a digital file) Then we can pour out the contents to be enjoyed ( stream - encoded set of video or audio data)

Since different plugins deal with different containers or codecs, users often need to download and install multiple software packages to play Web video and audio. Not all browsers natively support containers and codecs Web developers must take steps to ensure usability when publishing media It is important to clarify to users whether a plugin is needed to fully experience your Web site, and, when possible, providing a link to the appropriate software package. 9 Helper program: program that can unpack container and decode video and audio streams Also known as plugin

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 - The src, width, and height attributes correspond to those used with the img element. 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 10

Important to enclose the value for the type attribute in single quotes, so as to avoid confusion with the double quotes that surround codec values. When creating a Web page including video elements, you may need to actively allow blocked content for the video to be displayed. Any text included between the opening and closing tags will be displayed in browsers that do not support the video element. Some videos are copyrighted and/or have license issues. You should ask Web page owners' permission before posting a video downloaded from another site onto their own Web page. 11

Code containing video element 12

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 The source element is used only to specify multiple media resources, and does not represent anything on its own. 13

Code containing multiple source elements nested within a video element 14

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 15

Code for adding video controls controls=“controls” 16

Video controls rendered in different browsers 17

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 The object element was intended to replace the img and applet elements. However, because of bugs and lack of browser support, this has not happened. Therefore, the object element should not be used to add images to a Web page. 18

19 Code for browsers supporting the Adobe Flash version of the video

20 Video displayed in Flash Player

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 21

Code for providing a fallback image 22

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 23

audio and source elements: code and result 24

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 25

The audio button is often marked by an icon resembling a speaker with concentric arcs of increasing size on one side. Uploading video to a video hosting site such as YouTube can be a shortcut to including it in your Web pages. Such sites generally provide links that automatically generate HTML code for any video you upload—and in some cases, for other videos they host as well. In some cases, you can select whether you’d like HTML5 video code, Flash object code, or both. This process can remove a lot of specialized technical work from the task of adding a video to a Web site, while preserving your control over the appearance of your Web pages. 26

Code incorporating fallback version of audio and resulting page 27

If you’re developing Web pages on your own, you may need to convert a single video file into multiple formats. Many tools are available to handle this conversion. While some software that simplifies and automates the process is available for purchase, some powerful tools are available free or on a donation basis as well. These free and low-cost alternatives are often just as powerful as their more expensive counterparts, but may require more configuration and may not be as well documented. If you’re working on a well-funded project with a tight deadline, purchasing software may make the most sense. If you’re working with a budget, it can be well worth your time to familiarize yourself with the free or low-cost tools. Try searching on “HTML5 video encoder” or “video encoder” plus the name of the container type to which you want to convert. Whichever type of software you choose be sure to download or purchase it from a company or organization that you’re familiar with or that is recommended to you by someone you trust. Obtaining software from an untrusted source can expose your computer system to malware. 28

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 element Attributes specify how video is displayed and how user interacts with the video 29

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 30

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 31

32