Embedding Media into Web Pages

Slides:



Advertisements
Similar presentations
PART IV - EMBED VIDEO, AUDIO, AND DOCUMENTS. Find a video on Youtube.com: Search for a video, then look for the Embed code. Copy this code into the HTML/JavaScript.
Advertisements

The Web Wizards Guide to Freeware/Shareware Chapter Four Essential Tools for Web Page Authors.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 36 How Music and Audio Work on the Internet.
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.
1 Multimedia on the Web: Issues of Bandwidth Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each second.
HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio.
Video, audio, embed, iframe, HTML Form
 Multimedia is everything you can hear or see: texts, books, pictures, music, sounds, CDs, videos, DVDs, Records, Films, and more.  Multimedia comes.
INF Web Design Using Multimedia on the Web Video - Part 1.
Computers Going Online Internet Browsers Browsers retrieve and view Internet-based information interact with servers download and upload information ©
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.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
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.
Using Multimedia on the Web
Chapter 14-Designing for the World Wide Web. Overview Introducing multimedia on the Web. Designing text for the Web. Creating images for the Web. Adding.
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.
CSCI N241: Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Adding Sound.
1 Web Developer Foundations: Using XHTML Chapter 10 Helper Applications and Plug-in Concepts.
1 HTML References: A HTML Tutorial: /HTMLPrimer.html
Audio and Video CGS Some Common Audio Formats Format Use Extension MIDI instrumental music.mid MPEG songs.mp3 RealAudio live broadcasts.ra Wave.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
XP Tutorial 8New Perspectives on HTML and XHTML, Comprehensive 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets Tutorial.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
Sound or Audio, whichever you prefer –MIDI Files.midi or.mid (Musical Instrument Digital Interface) use for instrumental music. –This format is supported.
Contents MULTIMEDIA –Audio –Video –Animation –PDF.
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
Creating Web Documents alt attribute Good and bad uses of ‘multimedia’ Sound files Homework: Discuss with me AND post announcement of Project II. Forms.
Supplementary Materials on Web Authoring. Insert Anchors & Add Hyperlinks Insert other multimedia elements: Flash animations Video clips & Audio clips.
Multimedia From Greenlaw/Hepp, In-line/On-line: Fundamentals of the Internet and the World Wide Web 1 Introduction Important Multimedia Issues Audio Movies.
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.
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
INTERNET. Objectives Explain the origin of the Internet and describe how the Internet works. Explain the difference between the World Wide Web and the.
CS 22: Enhanced Web Site Design - Week 5Slide 1 (of 22) Enhanced Web Site Design Stanford University Continuing Studies CS 22 Mark Branom
Multimedia: Audio and Video Kyle Hawver. BGSOUND element Should be placed in the HEAD section of the HTML document Has 4 key properties: – SRC – URL of.
Using Plug-Ins Adding Multimedia to an HTML Document.
Embedding Multimedia in Web Pages  Multimedia is a popular buzzword for sound, motion video, and interactive animation.  Some problems or obstacles.
Sound and the Web. Transferring sound Download Progressive Download Stream.
Website Design, Development and Maintenance ONLY TAKE DOWN NOTES ON INDICATED SLIDES.
HTML Overview Part 8 – Java Applets 1. Applets 2  A Java applet is a small application embedded in your HTML document which runs in the browser window.
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.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
Outline Introduction Audio and Video
HTML Structure & syntax
Advanced HTML Tags:.
Section 9.1 Section 9.2 YOU WILL LEARN TO…
Using Multimedia on the Web
Web Browser presentation Name/ Hassan AL-Abdulmohsen
Chapter 4: HTML5 Media - <video> & <audio>
Learn HTML Basics Lesson No : 10
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Web Design and Development
Tutorial 7 Working with Multimedia
Integrating Multimedia: Sound, Video and More
Essentials of Web Pages
Playing Audio (Part 1).
HTML5 Media.
Client-Side Internet and Web Programming
Outline Introduction Audio and Video
Basic HTML and Embed Codes
Working with Multimedia
COM 205 Multimedia Applications
The Internet and Electronic mail
HTML5 Audio & Video By Derek Peacock
Presentation transcript:

Embedding Media into Web Pages Lecturer – Steve Clark

Optimizing Audio There are a number of ways to reduce an audio file for downloading via a web page. Length of clip Number of channels Bit depth Sampling Rate

Adding Non-streaming Audio There are many ways to access an audio file by using a HTML document. Link to file with an anchor <a> Embed the plug-in player with <embed> tag Sounds can also be used as backgrounds that begin playing automatically when the page downloads.

Adding Non-streaming Audio A Simple Link You can use an anchor tag <a> to link an audio file from a web page: <a> href=“Majest3.wav”>play the song.</a> When the reader clicks on the linked text the browser will retrieve the file from the server and launch a helper application to play the file. It is good web design to advise user of the size and type of the audio file to be downloaded.

Adding Non-streaming Audio <embed> for use with plug-ins When you use the <embed> tag, the browser places the plug-in controls in the flow of the text like an image. <EMBED SRC="Beethoven's Fur Elise.rmi" CONTROLS="console" HEIGHT=160 WIDTH=145 AUTOSTART="false"></EMBED> Note that when you use a plug-in, the audio will stop playing when the user leaves the page. Load Page

Adding Non-streaming Audio Background Sounds There are several ways to make an audio file start automatically when a web page loads. Note that the disadvantage of using background sounds is that the user has no way of turning the sound off. Also a large audio file will force a potentially lengthy download time.

Adding Non-streaming Audio For internet explorer (only) <bgsound> tag: <BGSOUND> SRC=“Ding.wav” LOOP=3> Load background sound 1 web page For Explorer and Netscape use <bgsound> tag and <embed> tag that hides the control panel: <EMBED SRC=“Drumroll.wav” autostart=true hidden=true></EMBED> <NOEMBED><BGSOUND=“Drumroll.wav”></NOEMBED> Load background sound 2 web page

Adding Non-streaming Audio META TAGS You can also make audio play automatically with client-pull by using the <meta> tag: <META> http-equiv=“refresh” content=“1;url=Fall_01.mid”> This causes the page to refresh and audio to play after 1 second. Load background sound 3 web page

Adding Streaming Audio Like Non-streaming there are two methods for adding streaming audio to a web page. Using a link <a> Using an <embed> tag Embedding controls allows the design of custom interfaces. Note Audio will stop playing when the user leaves the page.

Adding Streaming Audio Each technology’s plug-in has its own set of attributes. Some plug-ins require the link to be made to a go-between or reference file. When accessed via the link, they pass the URL of the actual media file to the appropriate plug-in, which requests the audio stream from the server.

Adding Streaming Audio RealAudio’s reference files are called “metafiles” (suffix .ram). The link is made to the metafile not the RealAudio file itself. <A HREF=“song.ram”>Link to the song</A> The metafile contains the URL that points to the RealAudio file (suffix .ra): pnm://[ip.address]/song.ra

Adding Streaming Audio Metafiles are useful for maintenance and control purposes. To change the audio, all you do is change the tiny metafile, rather than the HTML source code. You can also call multiple streaming media files from one metafile. Where one link plays all files.

Adding Streaming Audio Some attributes for various plug-ins: src=URL – Defines URL of the audio file width=value – sets size of control panel height=value – sets size of control panel loop=true/false/number – to play once set to false autostart=true/false – When true starts automatically

Adding Video Video files can be linked to HTML pages using the same methods as audio files Using a link <a> Using an <embed> tag Customize control panel Indicate video file size (downloading) Indicate speed of transfer – modem, cable Link to reference file for streaming

Adding Video Using an anchor tag to download. <A HREF=“radar.avi”> Check out video (220Kb) </A> Using an embed tag the browser looks for the appropriate plug-in player <EMBED SRC=“radar.avi” AUTOPLAY=false WIDTH=160 HEIGHT=120></EMBED>