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

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

Inserting multimedia objects in Dreamweaver

Images 1/30/2019. Basics of Photography. Photography, In General

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

Adding Multimedia Content to Web Pages

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

UNDERSTANDING MUSIC & VIDEO FORMATS

3.01C Multimedia Elements and Guidelines Explore multimedia systems, elements and presentations.

Lesson 5: Multimedia on the Web

Multimedia im Netz Online Multimedia Winter semester 2015/16

Lesson 5: Multimedia on the Web

CITS3403 Agile Web Development Semester 1, 2016

Adding Multimedia Content to Web Pages

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

Audio,Video & Lighting

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

Meeting Visuals UCF Toolkit User Guide

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Multimedia on the Web

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

Quick start guide to Blackboard at Keele

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

Technologies Web Côté client

Graphics Design and Applied Arts บทท 6 การออกแบบเว บเบ องต น

Digital Audio Basics

TrainingCentre Getting Started with the Universal

Embedding and linking to media

Elementary Computing CSC 100. M. Cheng, Computer Science

Bridges To Computing

MadCap Software. Movies Guide. Flare 2017 r2

Your very own movie studio. menu bar

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

Movie Generation Guide

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

lesson 24 Creating & Distributing New Media Content

Development of Multimedia WebApp on Tizen Platform

M4.2-R4: INTRODUCTION TO MULTIMEDIA

5Lesson 5: Multimedia on the Web

Recording oral histories

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

Screencast.com. Getting the Most from Your Screencast.com Account. July TechSmith Corporation. All rights reserved.

Quicktime Player Error Codec For Avi Per

1.1 Technical Evaluation Guidelines and Checklist:

Best Practice: Attaching Files

Camtasia Studio 5.0 PART I. The Basics

Advanced High Graphics

Prentice Hall. Learning Microsoft PowerPoint , (Weixel et al.) Arkansas Multimedia Applications I - Curriculum Content Frameworks

Skill Area 325: Deliver the Multimedia content through various media. Multimedia and Web Design (MWD)

Lecture 19 Media Formats

Interactive Multimedia. Multimedia and the World Wide Web

Autodesk Moldflow Adviser AMA Reports

Powered by EZCast Software

CMPT 165 Notes on HTML5

Unit 6. Multimedia Element: Animation. Introduction to Multimedia Semester 1

5Lesson 5: Multimedia on the Web Objectives

Different File Types and their Use

Working with Images and Multimedia

QuickTime Pro an inexpensive (but clunky) solution

Creating Content in a Course Area

Computing in the Modern World

UNIVERSITY OF NORTH CAROLINA WILMINGTON

STEP 1: DOWNLOAD THE PROGRAM

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

Video. Add / edit video

Chapter3 Recording Images with the Camera

Image and video processing

1. Introduction to Multimedia

Streaming Technologies Glossary

Tablet 300x x x x1024

Chapter 2 The Internet and World Wide Web

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).

Web Accessibility Checklist

ImTOO MPEG Encoder Help

MEDIA RELATED FILE TYPES

OneClick Video Converter Free Version

The Internet and World Wide Web Chapter4

G-Box System. Introduction: Signage Features. Display Images. Display Video

Multimedia Production and Web Authoring

Online Geometry Computer Requirements (For students using computers other than the HCPS Dell issued laptops)

Networking Applications

4K DVB-T2 / DVB-S2 Android Streaming Box with Fly Mouse

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

Quicktime Player Error Codec For Mac Avi

SciVee Conferences AUTHOR GUIDE

Funcom Multiplayer Online Games - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Obtaining video clips

Moodle Student Introduction

Discovering Computers Chapter 2 The Internet and World Wide Web

Media player for windows 10 free download

Mobile MOUSe WEB SITE DESIGN ONLINE COURSE OUTLINE

Capturing and Editing Digital Audio *

Revision Guide. Creative Imedia R081

Animating Layers with Timelines

Digitization of Multimedia Elements

vinodsrivastava.com FLASH

Archives About ARCHOS TV+ General Questions I have installed a firmware/plug-in/game file on my Archos TV+ but it is not recognized by the device. You

County of Sonoma Web Accessibility Questionnaire

Desktop Video for IT and Communications Programs. Vince DiNoto

ESKIAV3 (SQA Unit Code - F9AM 04) Audio and Video Software

Typing Program For Mac Os X Adobe Flash

Transcription:

LEC. 5 College of Information Technology / Department of Information Networks.... Web Page Design/ Second Class / Second Semester HTML5: MULTIMEDIA Multimedia Multimedia comes in many different formats. It can be almost anything you can hear or see. For example, Pictures, music, sound, videos, records, films, animations, and more. Web pages often contains multimedia elements of different types and formats. Multimedia Formats Multimedia elements (like sounds or videos) are stored in media files. The most common way to discover the type of a file, is to look at the file extension. When a browser sees the file extension.htm or.html, it will treat the file as an HTML file. The.xml extension indicates an XML file, and the.css extension indicates a style sheet file. Pictures are recognized by extensions like.gif,.png and.jpg. Multimedia files also have their own formats and different extensions like:.swf,.wav,.mp3,.mp4,.mpg,.wmv, and.avi. Common Video Formats Format File MPEG AVI WMV QuickTime.mpg.mpeg.avi.wmv.mov MPEG. Developed by the Moving Pictures Expert Group. The first popular video format on the web. Used to be supported by all browsers, but it is not supported in HTML5 (See MP4). AVI (Audio Video Interleave). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers. WMV (Windows Media Video). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers. QuickTime. Developed by Apple. Commonly used in video cameras and TV hardware. Plays well on Apple computers, but not in web browsers. (See MP4) RealVideo.rm RealVideo. Developed by Real Media to allow video streaming 1

Flash Ogg WebM MPEG-4 or MP4.ram.swf.flv.ogg.webm.mp4 with low bandwidths. It is still used for online video and Internet TV, but does not play in web browsers. Flash. Developed by Macromedia. Often requires an extra component (plug-in) to play in web browsers. Theora Ogg. Developed by the Xiph.Org Foundation. Supported by HTML5. WebM. Developed by the web giants, Mozilla, Opera, Adobe, and Google. Supported by HTML5. MP4. Developed by the Moving Pictures Expert Group. Based on QuickTime. Commonly used in newer video cameras and TV hardware. Supported by all HTML5 browsers. Recommended by YouTube. Sound Formats MP3 is the newest format for compressed recorded music. The term MP3 has become synonymous with digital music. If your website is about recorded music, MP3 is the choice. Format File MIDI RealAudio WMA AAC WAV Ogg.mid.midi.rm.ram.wma.aac.wav.ogg MIDI (Musical Instrument Digital Interface). Main format for all electronic music devices like synthesizers and PC sound cards. MIDI files do not contain sound, but digital notes that can be played by electronics. Plays well on all computers and music hardware, but not in web browsers. RealAudio. Developed by Real Media to allow streaming of audio with low bandwidths. Does not play in web browsers. WMA (Windows Media Audio). Developed by Microsoft. Commonly used in music players. Plays well on Windows computers, but not in web browsers. AAC (Advanced Audio Coding). Developed by Apple as the default format for itunes. Plays well on Apple computers, but not in web browsers. WAV. Developed by IBM and Microsoft. Plays well on Windows, Macintosh, and Linux operating systems. Supported by HTML5. Ogg. Developed by the Xiph.Org Foundation. Supported by HTML5. 2

MP3.mp3 MP3 files are actually the sound part of MPEG files. MP3 is the most popular format for music players. Combines good compression (small files) with high quality. Supported by all browsers. MP4.mp4 MP4 is a video format, but can also be used for audio. MP4 video is the upcoming video format on the internet. This leads to automatic support for MP4 audio by all browsers. Plug-in applications Plug-in applications are programs that can easily be installed and used as part of your Web browser. Initially, the Netscape browser allowed you to download, install, and define supplementary programs that played sound or motion video or performed other functions. These were called helper applications. However, these applications run as a separate application and require that a second window be opened. A plug-in application is recognized automatically by the browser and its function is integrated into the main HTML file that is being presented. s of well-known plug-ins are Java applets. Plug-ins can be added to web pages with the <object> tag or the <embed> tag. Plug-ins can be used for many purposes: display maps, scan for viruses, verify your bank id, etc. The <object> Element The <object> element is supported by all browsers. It s defines an embedded object within an HTML document. It is used to embed plug-ins (like Java applets, PDF readers, Flash Players) in web pages. <object width="400" height="50" data="lecture1.pdf"></object> The <object> element can also be used to include HTML in HTML: <object width="100%" height="500px" data="object1.html"></object> Or images if you like: <object data="objc.jpeg"></object> 3

The <embed> Element The <embed> element is supported in all major browsers. And also defines an embedded object within an HTML document. Web browsers have supported the <embed> element for a long time. However, it has not been a part of the HTML specification before HTML5. The element will validate in an HTML5 page, but not in an HTML 4 page. <embed width="400" height="50" src="lecture1.pdf"> The <embed> element can also be used to include HTML in HTML: <embed width="100%" height="500px" src="snippet.html"> Or images if you like: <embed src="audi.jpeg"> Playing Videos in HTML Before HTML5, there was no standard for showing videos on a web page. Before HTML5, videos could only be played with a plug-in (like flash). The HTML5 <video> element specifies a standard way to embed a video in a web page. HTML5 Video Tags Tag <video> <source> <track> Defines a video or movie Defines multiple media resources for media elements, such as <video> and <audio> Defines text tracks in media players 4

The HTML <video> Element To show a video in HTML, use the <video> element: <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> How it Works The controls attribute adds video controls, like play, pause, and volume. It is a good idea to always include width and height attributes. If height and width are not set, the browser does not know the size of the video. The effect will be that the page will change (or flicker) while the video loads. Text between the <video> and </video> tags will only display in browsers that do not support the <video> element. Multiple <source> elements can link to different video files. The browser will use the first recognized format. Video Attribute Specification The HTML5 video tag can have a number of attributes to control the look and feel and various functionalities of the control Attribute autoplay controls height loop preload poster src width This boolean attribute if specified, the video will automatically begin to play back as soon as it can do so without stopping to finish loading the data. If this attribute is present, it will allow the user to control video playback, including volume, seeking, and pause/resume playback. This attribute specifies the height of the video's display area, in CSS pixels. This boolean attribute if specified, will allow video automatically seek back to the start after reaching at the end. This attribute specifies that the video will be loaded at page load, and ready to run. Ignored if autoplay is present. This is a URL of an image to show until the user plays or seeks. The URL of the video to embed. This is optional; you may instead use the <source> element within the video block to specify the video to embed This attribute specifies the width of the video's display area, in CSS pixels. 5

HTML <video> Autoplay To start a video automatically use the autoplay attribute: <video width="320" height="240" autoplay> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> HTML <video> preload The preload attribute specifies if and how the author thinks that the video should be loaded when the page loads. The preload attribute allows the author to provide a hint to the browser about what he/she thinks will lead to the best user experience. This attribute may be ignored in some instances. The preload attribute is ignored if autoplay is present. Attribute Values Value auto none The author thinks that the browser should load the entire video when the page loads The author thinks that the browser should NOT load the video when the page loads <video width="320" height="240" preload = none > <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> HTML <video> poster The poster attribute specifies an image to be shown while the video is downloading, or until the user hits the play button. If this is not included, the first frame of the video will be used instead. <video width="320" height="240" poster= url > <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> 6

HTML5 Audio HTML5 provides a standard for playing audio files. Audio on the Web Before HTML5, there was no standard for playing audio files on a web page. Before HTML5, audio files could only be played with a plug-in (like flash). The HTML5 <audio> element specifies a standard way to embed audio in a web page. HTML5 Audio Tags Tag <audio> <source> Defines sound content Defines multiple media resources for media elements, such as <video> and <audio> The HTML <audio> Element To play an audio file in HTML, use the <audio> element: <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> How It Works The controls attribute adds audio controls, like play, pause, and volume. Text between the <audio> and </audio> tags will display in browsers that do not support the <audio> element. Multiple <source> elements can link to different audio files. The browser will use the first recognized format. 7

Audio Attribute Specification The HTML5 audio tag can have a number of attributes to control the look and feel and various functionalities of the control: Attribute autoplay controls loop preload src This boolean attribute if specified, the audio will automatically begin to play back as soon as it can do so without stopping to finish loading the data. If this attribute is present, it will allow the user to control audio playback, including volume, seeking, and pause/resume playback. This boolean attribute if specified, will allow audio automatically seek back to the start after reaching at the end. This attribute specifies that the audio will be loaded at page load, and ready to run. Ignored if autoplay is present. The URL of the audio to embed. This is optional; you may instead use the <source> element within the video block to specify the video to embed 8