Computer Science [3] Java Programming II - Laboratory Course Lab 7: Multimedia: Applets and Applications Faculty of Engineering & IT Software Engineering.

Slides:



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

Computer Fundamentals Multimedia MSCH 233 Lecture 10.
Chapter 11 Media and Interactivity Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
HTML Structure & Web Design Basics
Charmaine NormanCopyright What Is a Web Page Presented by Webpagemaker. Net Left click your mouse to view each frame, Web Page.
Section 9.1 Identify multimedia design guidelines Identify sources of multimedia files Explain the ethical use of multimedia files Describe multimedia.
Macromedia Director 8 Intermediate Level Course. Ink Masks Using the Ink Mask feature will allow you to create parts of a bitmap cast member to become.
Sounds, Images & Other Objects Website Production.
INF Web Design Using Multimedia on the Web Video - Part 1.
Web Programming Presentation on: Flash. How Flash Came to Be Created by Jonathan Gay, current VP of Flash and Generator at Macromedia Created by Jonathan.
1 L45 Multimedia: Applets and Applications. 2 OBJECTIVES  How to get and display images.  To create animations from sequences of images.  To create.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter Java Multimedia: Images, Animation, Audio.
1 Pertemuan 23 Multimedia and Webcasting on the Web Matakuliah: M0284/Teknologi & Infrastruktur E-Business Tahun: 2005 Versi: >
Computers Going Online Internet Browsers Browsers retrieve and view Internet-based information interact with servers download and upload information ©
 Pearson Education, Inc. All rights reserved Multimedia: Applets and Applications.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Multimedia Enabling Software. The Human Perceptual System Since the multimedia systems are intended to be used by human, it is a pragmatic approach to.
HYPERTEXT MARKUP LANGUAGE (HTML)
© 2010 Delmar, Cengage Learning Chapter 6: Preparing and Publishing Movies.
Graphics and Multimedia In visual Studio. Net (C#)
Skill Area 212 Introduction to Multimedia Internet and MultiMedia for SC 2.
Graphics and Multimedia. Outline Introduction to Multimedia Loading, Displaying and Scaling Images Windows Media Player Adding a Flash Movie Microsoft.
MULTIMEDIA M U A T H H U M A I D R a s h A t a l l a h.
1 Lecture 12: Multimedia Not in Web 101 Text  Important Multimedia Issues  Audio  Movies and Video  Multimedia and HTML Documents.
1 SEG3120 Analysis and Design for User Interfaces Flash Anis Zarrad Parallel Simulations and Distributed Systems (PARADISE) Research Laboratory SITE, University.
 2005 Pearson Education, Inc. All rights reserved Multimedia: Applets and Applications.
Lights, Camera, Action! The Role of Multimedia in Web Applications Leading Multimedia Formats in Use Today What You Need to Know to Include Them in Your.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Multimedia and The Web.
Chapter 13-Tools for the World Wide Web. Overview Web servers. Web browsers. Web page makers and site builders. Plug-ins and delivery vehicles. Beyond.
Chapter 17: Applets, Images, and Sound. Objectives Learn about applets Write an HTML document to host an applet Use the init() method Work with JApplet.
HTML Use of Multimedia on web page. HTML Media Q. How to call Image file in our web page ? A. That is the easy syntax for defining an image. 2.
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.
3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations.
1 1 Introduction to Computer Science بسم الله الرحمن الرحيم MULTIMEDIA LEVEL -9 King Khalid University Kingdom of Saudi Arabia Ministry of Higher Education.
Tutorial 7 Working with Multimedia
Tutorial 7 Designing a Multimedia Web Site
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
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.
 2000 Prentice Hall, Inc. All rights reserved. Java Multimedia: Images, Animation, Audio and Video Outline 30.1 Introduction 30.2Loading, Displaying and.
Animation Basic Concepts.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
File Format. Graphics file Format GIF (Graphics Interchange Format) JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) TIFF (Tag.
Multimedia and the Web.
Java Programming Working with Sound and Images. Topics Learn about the paint() and repaint() methods Learn about paintComponent() method Use the drawString()
Game Art & Sound. Sound ● Midi files – Musical Instrument Digital Interface – Advantages ● small ● fast – Disadvantages ● synthesized ● rendered ● Wav.
16.9 Introduction to Multimedia Visual Basic offers many convenient ways to include images and animations in programs Computing field decades ago mainly.
Chapter 16 Multimedia F Audio Files F Playing Audio F Running Audio on a Separate Thread F Displaying Images F Displaying a Sequence of Images  Using.
Chap 14 Presentation Layer Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
1 A Basic Introduction to Flash. Outline What is a flash? Macromedia Flash MX 2004 Flash concepts Flash Demos Conclusion Additional help 2.
Chapter 10. The Role of Video in Multimedia  Any presentation or application that uses sound and graphics qualifies as multimedia  Clip A segment of.
Video 2 Subject:T0934 / Multimedia Programming Foundation Session:11 Tahun:2009 Versi:1/0.
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.
Chapter 14: Multimedia Audio Files Audio Files Playing Audio Playing Audio Running Audio on a Separate Thread Running Audio on a Separate Thread Displaying.
Section 9.1 Section 9.2 Identify multimedia design guidelines
Features of Authoring Tools
VIDEO.
3.01C Multimedia Fair Uses Guidelines and Elements
3.01C Multimedia Elements and Guidelines
3.01C Multimedia Fair Uses Guidelines and Elements
3.01C Multimedia Fair Uses Guidelines and Elements
Lesson 5: Multimedia on the Web
3.01C Multimedia Elements and Guidelines
3.01C Multimedia Fair Uses Guidelines and Elements
Presentation transcript:

Computer Science [3] Java Programming II - Laboratory Course Lab 7: Multimedia: Applets and Applications Faculty of Engineering & IT Software Engineering Department Eng.Omar Al-Nahal Eng.Omar Al-Nahal

b Loading, Displaying and Scaling Images b Animating a Series of Images b Loading and Playing Audio Clips b Playing Video and Other Media with Java Media Framework Multimedia: Applets and Applications

Loading, Displaying and Scaling Images  Classes Image and ImageIcon – used to load and display images b Displaying images Graphics method drawImage – used to draw image referenced by Image object (can be scaled)Graphics method drawImage – used to draw image referenced by Image object (can be scaled) ImageIcon method paintIcon can be used to draw image referenced by ImageIcon objectImageIcon method paintIcon can be used to draw image referenced by ImageIcon object b Loading images Applet method getImage loads an Image into an appletApplet method getImage loads an Image into an applet Applet method getDocumentBase returns location of applet’s HTML file on InternetApplet method getDocumentBase returns location of applet’s HTML file on Internet ImageObserver s receive notifications as Image is loaded and update image on screen if it was not complete when displayedImageObserver s receive notifications as Image is loaded and update image on screen if it was not complete when displayed b Java supports several image formats, including GIF, JPEG and PNG See Img-Example

Animating a Series of Images b Animation can be created by displaying a sequence of similar images  Timer object can be used to specify when each image is displayed  Timer objects generate ActionEvent s at fixed intervals Method start – Timer should start generating eventsMethod start – Timer should start generating events Method stop – Timer should stop generating eventsMethod stop – Timer should stop generating events Method restart – Timer should start generating events againMethod restart – Timer should start generating events again  Component method getPreferredSize determines the preferred width and height of a component  Component method getMinimumSize determines the minimum width and height of a component See Images-Example

Loading and Playing Audio Clips b Java programs can play and manipulate audio clips b Playing sounds in an applet Applet ’s play method – loads sound and plays onceApplet ’s play method – loads sound and plays once AudioClip ’s play, loop and stop methodsAudioClip ’s play, loop and stop methods Additional capabilities provided by JMF and Java Sound APIsAdditional capabilities provided by JMF and Java Sound APIs b Loading sounds in an applet Applet method getAudioClip – retrieves sound, returns reference to an AudioClipApplet method getAudioClip – retrieves sound, returns reference to an AudioClip Applet ’s play method loads soundApplet ’s play method loads sound b Supported file formats include Sun Audio file format, Windows Wave file format, MIDI file format

Loading and Playing Audio Clips See Playing Audio Example

Playing Video and Other Media with Java Media Framework b A simple video can concisely and effectively convey a great deal of information b JMF API enables Java programmers to play, edit, stream and capture popular media types b Supported file types include Microsoft Audio/Video Interleave, Macromedia Flash2 movies, MPEG-1 videos and QuickTime movies

Creating a Simple Media Player  Interface Player used to play video  Class Manager declares utility methods for accessing system resources to play and manipulate media  Manager method createRealizedPlayer obtains a Player for a specified media clip b Loading and playing video Player method getVisualComponent gets component that displays visual aspect of media filePlayer method getVisualComponent gets component that displays visual aspect of media file Player method getControlPanelComponent gets component that provides playback and media controlsPlayer method getControlPanelComponent gets component that provides playback and media controls Player method start begins playing media filePlayer method start begins playing media file

Creating a Simple Media Player See Media Player -Example

Internet and World Wide Web Resources b Internet and web resources for Java Media Framework –Download and documentation for JMF jmf/forDevelopers/ –Site for javax.media API descriptions b Downloadable image, audio, and video galleries Test your multimedia programsTest your multimedia programshttp://