Playing Video (Part 1).

Slides:



Advertisements
Similar presentations
2.02F Publishing Animated Videos 2.02 Develop Computer Animations.
Advertisements

What is Multimedia ? Multi ( Multiple ) and Media ! So…. Information in multiple formats, including text, images, audio, video and animation :) It makes.
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.
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 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:
Define objects and their relationships to multimedia Explain the fundamentals of C, C++, Java, JavaScript, JScript, C#, ActiveX and VBScript Discuss security.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
© 2010 Delmar, Cengage Learning Chapter 6: Preparing and Publishing Movies.
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 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.
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.
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.
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
Programming Games Show your cannonball. HTML5 video. Miro. Classwork/Homework: Acquire video, convert to multiple formats, and produce simple (just html)
2.02G Publishing Animated Videos 2.02 Develop Computer Animations.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
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.
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.
PLUG INS flash, quicktime, java applets, etc. Browser Plug-ins Netscape wanted a method to extend features of the browser became an unofficial standard.
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.
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.
FLASH, VIDEO & AUDIO How to add Flash movies into your site How to add video and audio to your site HTML5 and elements.
CS 200 Multimedia Objects in Web Pages. MultiMedia Objects Three primary types of multimedia objects  Audio  Video Includes Flash Objects  Images.
CHAPTER 8 Multimedia 1. Using Multimedia ❖ Multimedia: the combination of text, sound, and video to express an idea or convey a message. ❖ Podcasts: a.
Web Design, 5 th Edition 6 Multimedia and Interactivity Elements.
CHAPTER 10 AUDIO AND VIDEO. MEDIA PLAYER API HTML5 contains an API (Application Programming Interface) for controlling audio and video players embedded.
The HTML5 logo was introduced by W3C in 2010
Advanced HTML Tags:.
Section 9.1 Section 9.2 Identify multimedia design guidelines
Using Multimedia on the Web
© 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.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Chapter 4: HTML5 Media - <video> & <audio>
Learn HTML Basics Lesson No : 10
3.02 Publishing Animations
Tutorial 7 Working with Multimedia
Introduction to Silverlight
HTML5 Level II Session II
2.02G Publishing Animated Videos
Playing Audio (Part 2).
2.02F Publishing Animated Videos
Audio and Video Chapter 10.
Integrating Multimedia: Sound, Video and More
Essentials of Web Pages
Playing Audio (Part 1).
Playing Video (Part 2).
HTML5 Media.
Client-Side Internet and Web Programming
The Canvas.
Basic HTML and Embed Codes
DREAMWEAVER MX 2004 Chapter 9 Adding Media Elements
Basics of Web Design Chapter 11 Media and Interactivity Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Working with Multimedia
Introduction to Applet, Application and JDK
Lesson 5: Multimedia on the Web
HTML5 Audio & Video By Derek Peacock
Show your animation project. HTML5 video. Miro.
Presentation transcript:

Playing Video (Part 1)

Playing Video in HTML (1) Much as we saw with audio files, older versions of HTML could not play video files natively. Instead, they relied on external resources, such as: Browser plug-ins (Adobe Flash, Apple QuickTime, Microsoft Silverlight) JavaScript players, such as jPlayer or VideoJS External applications, such as Windows Media Player The predominant method of playing video in HTML was to use Adobe Flash, which had a very high installed base across all browsers and platforms. To call the Flash player, we used the <embed> or <object> elements: <embed src="video/example.swf" height="300" width="300"> <object data="video/example.swf" height="300" width="300"></object> A file with the swf (pronounced "swiff") extension is in Shockwave Flash format and is designed to be played by the Adobe Flash plug-in.

Playing Video in HTML (2) Another common method for inserting video into an HTML page was to upload the video to YouTube and then use the copy-and-paste <embed> code provided by YouTube: <embed width="420" height="315" src="http://www.youtube.com/v/DqGOquw2K_U" type="application/x-shockwave-flash"></embed> YouTube videos (using the <embed> code) still used the Flash plugin installed on browsers. By utilizing YouTube, though, web designers did not have to do their own file format conversions, did not have to store the large video files on their local servers, and could let YouTube stream the video instead of using up their own web hosting bandwidth. Using Flash for internet video has some problematic issues: The Flash plug-in needs to be installed and maintained and crashes occasionally. The player interface and features are outside of our direct control. Apple iPhones and iPads do not support Flash and will display an empty box on the screen instead.

Playing Video in HTML5 HTML5 introduced the <video> element. The goal is to play video files natively within the browser, which carries the same advantages as we saw with the <audio> element: No longer necessary to install and maintain specific browser plug-ins. Faster and smoother performance, as no plug-ins or JavaScript need to be loaded prior to play. More consistent behavior across different browsers, versions, and platforms. Wider control over player features. Just as we saw with the <audio> element, there are many browser support and file/encoding format issues that stand in the way of embracing the <video> element fully.

The <video> Element Let's use the new <video> element to add a video directly to our page: <p>Watch the majesty of Rocky Mountain National Park:</p> <video src="video/rmnp.mp4" controls></video> Chrome 25.0 IE 10.0 The "controls" attribute works the same way as it did in the <audio> element. Once again, be sure to include the closing </video> tag.

Attributes for <video> Element The <video> element uses the same preload attribute to recommend to the browser what to do with the video file when the web page loads. The same three settings (auto, metadata, and none) apply: <video src="video/rmnp.mp4" preload="auto" controls></video> The autoplay attribute works the same way with <video> as it did with <audio>. Once again, it is not recommended, unless the visitor is expecting a video to begin playing on the page. To enable the feature, we just add the attribute: <video src="video/rmnp.mp4" controls autoplay></video> The loop attribute performs the same function as we saw before, continually restarting the video from the beginning once it has completed: <video src="video/rmnp.mp4" controls loop></video>

Height and Width Attributes The <video> element also allows us to specify the height and width of our video window. Players will usually auto-size to the dimensions of the video, but the best approach is to list these dimensions for all videos: <p>Watch the majesty of Rocky Mountain National Park:</p> <video src="video/rmnp.mp4" width="640" height="428" controls></video> <video src="video/rmnp.mp4" width="480" height="321" controls></video> <video src="video/rmnp.mp4" width="320" height="214" controls></video> IE 10.0

The Poster Attribute The poster attribute lets us select an image to display in the video window instead of the first frame of the video, which is the default. This is a useful feature, as it will also display our selected image in the following instances: The preload attribute is set to "none". The video file is missing. <p>Watch the majesty of Rocky Mountain National Park:</p> <video src="video/rmnp.mp4" poster="images/rmnp.jpg" width="480" height="321" controls> </video> IE 10.0

Current Browser Support for <video> Just like its <audio> counterpart, <video> is well-supported across the major web browsers, including IE9.0 and most mobile browsers. But once again, support for different formats makes for an implementation challenge, which we will take on in the next lesson.