Practical File of Multimedia Technology
Practical File of Multimedia Technology
Submitted To
Mr. SatishDadarwal Asst. Professor CSE Deptt.
Submitted By
Pankaj Gill 11/CSE/168 CSE-B
2013
INDEX
Aim
1. 2. 3. 4. 5. 6 Write a Program to include a paragraph in Web Page using HTML Write a Program of include image in Web Page using HTML Write a Program of including table in Web Page using HTML Write a Program of including video in Web Page using HTML A case study of macromedia flash version 5.0 Write a program to show animation using micro media flash player Write a Program to show animation using frame by frame technique using macromedia flash. Write a Program to show tween shape of an object using macromedia flash. Write a Program to show Multilayer in macromedia flash player. A Case Study Of Visual Basics Program to Add Sound in Visual Basics 5.0
Date
Page
2 4 6 9 11 16
Remarks
7.
18
8.
20
9.
23
10. 11.
25 28
PANKAJ GILL
11/CSE/168
Page
2013
Practical No.1
PANKAJ GILL
11/CSE/168
Page
2013
Output
PANKAJ GILL
11/CSE/168
Page
2013
Practical No.2
PANKAJ GILL
11/CSE/168
Page
</html>
2013
Output
PANKAJ GILL
11/CSE/168
Page
2013
Practical No.3
PANKAJ GILL
11/CSE/168
Page
</tr>
2013
<td>Electronics & Communication Engineering</td> </tr> <tr> <td>Electronics & Communication Engineering</td> <td>Information Technology</td> </tr> <tr> <td>Information Technology</td> </tr> <tr> <td>Electrical Engineering</td></tr>
PANKAJ GILL
11/CSE/168
Page
2013
Output
PANKAJ GILL
11/CSE/168
Page
2013
Practical No.4
</body> </html>
PANKAJ GILL
11/CSE/168
Page
2013
Output
PANKAJ GILL
11/CSE/168
Page
10
2013
Practical No. 5
Adobe Flash (formerly Macromedia Flash) is a multimedia platform used to add animation, video, and interactivity to web pages. Flash is frequently used for advertisements, games and flash animations for broadcast. More recently, it has been positioned as a tool for "Rich Internet Applications" ("RIAs"). Flash manipulates vector and raster graphics to provide animation of text, drawings, and still images. It supports bidirectional streaming of audio and video, and it can capture user input via mouse, keyboard, microphone, and camera. Flash contains an object-oriented language called ActionScript and supports automation via the JavaScript Flash language (JSFL). Flash content may be displayed on various computer systems and devices, using Adobe Flash Player, which is available free of charge for common web browsers, some mobile phones, and a few other electronic devices (using Flash Lite). Some users feel that Flash enriches their web experience, while others find the extensive use of Flash animation, particularly in advertising, intrusive and annoying. Flash has also been criticized for adversely affecting the usability of web pages.
Flash Video
Virtually all browser plugins for video are free of charge and cross-platform, including Adobe's offering of Flash Video, which was first introduced with Flash version 6. Flash Video has been a popular choice for websites due to the large installed user base and programmability of Flash. In 2010, Apple publicly criticized Adobe Flash, including its implementation of video playback for not taking advantage of hardware acceleration, one reason Flash is not to be found on Apple's mobile devices. Soon after Apple's criticism, Adobe demoed and released a beta version of Flash 10.1, which takes advantage of GPU hardware acceleration even on a Mac. Flash 10.2 beta, released December 2010, adds hardware acceleration for the whole video rendering pipeline.
Flash Audio
Flash Audio is most commonly encoded in MP3 or AAC (Advanced Audio Coding) however it does also support ADPCM, Nellymoser(Nellymoser Asao Codec) and Speex audio codecs. Flash allows sample rates of 11, 22 and 44.1 kHz. It does not support 48 kHz audio sample rate, which is the standard TV and DVD sample rate.
PANKAJ GILL
11/CSE/168
Page
11
2013
On August 20, 2007, Adobe announced on its blog that with Update 3 of Flash Player 9, Flash Video will also support some parts of the MPEG-4 international standards. Specifically, Flash Player will have support for video compressed in H.264 (MPEG-4 Part 10), audio compressed using AAC (MPEG-4 Part 3), the F4V, MP4 (MPEG-4 Part 14), M4V, M4A, 3GP and MOV multimedia container formats, 3GPP Timed Text specification (MPEG-4 Part 17), which is a standardized subtitle format and partial parsing support for the 'ilst' atom, which is the ID3 equivalent iTunes uses to store metadata. MPEG-4 Part 2 and H.263 will not be supported in F4V file format. Adobe also announced that it will be gradually moving away from the FLV format to the standard ISO base media file format (MPEG-4 Part 12) owing to functional limits with the FLV structure when streaming H.264. The final release of the Flash Player supporting some parts of MPEG-4 standards had become available in Fall 2007.
Runtime
Adobe Flash Player is a runtime that executes and displays content from a provided SWF file, although it has no in-built features to modify the SWF file at runtime. It can execute code written in the ActionScript programming language which enables the runtime manipulation of text, data, graphics, bitmaps, sound and video. Flash Player is used internally by the Adobe Integrated Runtime (Adobe AIR), in order to provide a cross-platform runtime environment for desktop applications and mobile applications. The runtime supports installable applications on Windows, Linux, Mac OS, and some mobile operating systems such as IOS and Android. Flash applications must specifically be built for the Adobe AIR runtime in order to utilize additional features provided, such as file system integration, native client extensions, native window/screen integration, taskbar/dock integration, and hardware integration with connected Accelerometer and GPSdevices
History
Flash originated with the application SmartSketch, developed by Jonathan Gay. It was published by FutureWave Software, which was founded by Charlie Jackson.SmartSketch was a drawing application for pen computers running the PenPoint OS. When PenPoint failed in the marketplace, SmartSketch was ported to Microsoft Windows and Mac OS. As the Internet became more popular, FutureWave added cell animation editing to the vector drawing capabilities of SmartSketch and released FutureSplash Animator on multiple platforms. FutureWave approached Adobe Systems with an offer to sell them FutureSplash in 1995, but Adobe turned them down at that time. FutureSplash was used by Microsoft in its early work with the Internet (MSN), and also by Disney Online for their subscriptionbased service, Disney's Daily Blast. In 1996, FutureSplash was acquired by Macromedia and released as Flash, contracting "Future" and "Splash". Flash is currently developed and distributed by Adobe Systems, as the result of their 2005 purchase of Macromedia.
PANKAJ GILL
11/CSE/168
Page
12
2013
PANKAJ GILL
11/CSE/168
Page
13
2013
Despite the rise of the mobile-friendly HTML5, the Flash Player is still required for streaming the content of many radio and TV websites, often making this content unavailable on mobile devices.
Other uses
Adobe Flash continues to be a favored animation program for low-cost 2D television and commercial animation, in competition with Toon Boom Animation. Notable users of the software includeDHX Media Vancouver for productions including Pound Puppies and My Little Pony: Friendship is Magic, Nelvana for 6teen and Clone High, Williams Street for Metalocalypse and Squidbillies, andNickelodeon Animation Studios for Wow! Wow! Wubbzy! El Tigre: The Adventures of Manny Rivera, Danny Phantom and Happy Tree Friends . Flash is less commonly used for feature-length animated films; however, 2009's The Secret of Kells, an Irish film, was animated primarily in Adobe Flash, and was nominated for an Academy Award for Best Animated Feature at the 82nd Academy Awards.
Format
Flash files are in the SWF format, traditionally called "ShockWave Flash" movies, "Flash movies," or "Flash applications", usually have a .swf file extension, and may be used in the form of a web page plug-in, strictly "played" in a standalone Flash Player, or incorporated into a self-executing Projector movie (with the .exe extension in Microsoft Windows). Flash Video files have a .flv file extension and are either used from within .swf files or played through a flv-aware player, such as VLC, or QuickTime and Windows Media Player with external codecs added. The use of vector graphics combined with program code allows Flash files to be smaller and thus allows streams to use less bandwidththan the corresponding bitmaps or video clips. For content in a single format (such as just text, video, or audio), other alternatives may provide better performance and consume less CPU power than the corresponding Flash movie, for example when using transparency or making large screen updates such as photographic or text fades. In addition to a vector-rendering engine, the Flash Player includes a virtual machine called the ActionScript Virtual Machine (AVM) for scripting interactivity at run-time, with video, MP3-based audio, and bitmap graphics. As of Flash Player 8, it offers two video codecs: On2 Technologies VP6 and Sorenson Spark, and run-time JPEG, Progressive JPEG, PNG, and GIF capability. In the next version, Flash is slated to use a just-in-time compiler for the ActionScript engine. Flash Player is a browser plugin, and cannot run within traditional e-mail clients, such as Microsoft Outlook or Mozilla Thunderbird. Instead, a link must open a browser window.
Flash Video
PANKAJ GILL
11/CSE/168
Page
14
2013
Virtually all browser plugins for video are free of charge and cross-platform, including Adobe's offering of Flash Video, which was first introduced with Flash version 6. Flash Video has been a popular choice for websites due to the large installed user base and programmability of Flash. In 2010, Apple publicly criticized Adobe Flash, including its implementation of video playback for not taking advantage of hardware acceleration, one reason Flash is not to be found on Apple's mobile devices. Soon after Apple's criticism, Adobe demoed and released a beta version of Flash 10.1, which takes advantage of GPU hardware acceleration even on a Mac. Flash 10.2 beta, released December 2010, adds hardware acceleration for the whole video rendering pipeline.
Flash Audio
Flash Audio is most commonly encoded in MP3 or AAC (Advanced Audio Coding) however it can also use ADPCM, Nellymoser (Nellymoser Asao Codec) and Speex audio codecs. Flash allows sample rates of 11, 22 and 44.1 kHz. It cannot have 48 kHz audio sample rate, which is the standard TV and DVD sample rate. On August 20, 2007, Adobe announced on its blog that with Update 3 of Flash Player 9, Flash Video will also implement some parts of the MPEG-4 international standards. Specifically, Flash Player will work with video compressed in H.264 (MPEG-4 Part 10), audio compressed using AAC (MPEG-4 Part 3), the F4V, MP4 (MPEG-4 Part 14), M4V, M4A, 3GP and MOV multimediacontainer formats, 3GPP Timed Text specification (MPEG-4 Part 17), which is a standardized subtitle format and partial parsing capability for the 'ilst' atom, which is the ID3 equivalent iTunesuses to store metadata. MPEG-4 Part 2 and H.263 will not work in F4V file format. Adobe also announced that it will be gradually moving away from the FLV format to the standard ISO base media file format (MPEG-4 Part 12) owing to functional limits with the FLV structure when streaming H.264. The final release of the Flash Player implementing some parts of MPEG-4 standards had become available in Fall 2007. Adobe Flash Player 10.1 does not have acoustic echo cancellation, unlike the VoIP offerings of Skype and Google Voice, making this and earlier versions of Flash less suitable for group calling or meetings. Flash Player 10.3 Beta incorporates acoustic echo cancellation.
Scripting language
ActionScript is the programming language used by Flash. It is an enhanced superset of the ECMAScript programming language, with a classical Java-style class model, rather than JavaScript's prototype model.
PANKAJ GILL
11/CSE/168
Page
15
2013
Experiment No.6
Steps to create object blinking: 1. Click a frame and add the object that you want to make blink. 2. Skip some frames on timeline and add a key frame after 25 frames. 3. Go to the 25th frame and remove that object from that frame.
Flash view:
PANKAJ GILL
11/CSE/168
Page
Output
16
2013
PANKAJ GILL
11/CSE/168
Page
17
2013
Write a Program to show animation using frame by frame technique using macromedia flash
Steps to create motion tweening: 1. Click a layer name to make it the current layer, and select an empty key frame in the layer where you want the animation to start. 2. Create an instance, group, or text block on the Stage, or drag an instance of a symbol from the Library window. To motion tween an object you have drawn, you must convert it to a symbol. 3. Create a second key frame where you want the animation to end. 4. Do one of the following to modify the instance, group, or text block in the ending frame: Move the item to a new position. Modify the item's size, rotation, or skew. Modify the item's color (instance or text block only). To tween the color of elements other than instances or text blocks, use shape tweening.
Experiment No.7
PANKAJ GILL
11/CSE/168
Page
18
2013
Output
PANKAJ GILL
11/CSE/168
Page
19
2013
Experiment No.8
Flash view:
PANKAJ GILL
11/CSE/168
Page
20
2013
PANKAJ GILL
11/CSE/168
Page
21
2013
Output
PANKAJ GILL
11/CSE/168
Page
22
2013
Experiment No.9
Flash View:
PANKAJ GILL
11/CSE/168
Page
23
2013
Output
PANKAJ GILL
11/CSE/168
Page
24
2013
Program No. 10
Language features
Like the BASIC programming language, Visual Basic was designed to accommodate beginner programmers. Programmers can not only create simple GUI applications, but to also develop complex applications. Programming in VB is a combination of visually arranging components or controls on a form, specifying attributes and actions for those components, and writing additional lines of code for more functionality. Since VB defines default attributes and actions for the components, a programmer can develop a simple program without writing much code. Programs built with earlier versions suffered performance problems, but faster computers and native code compilation has made this less of an issue. Though VB programs can be compiled into native code executable from version 5 on, they still require the presence of around 1 MB of runtime libraries. Runtime libraries are included by default in Windows 2000 and later. Earlier versions of Windows (95/98/NT) require that the runtime libraries be distributed with the executable.
PANKAJ GILL
11/CSE/168
Page
25
2013
Forms are created using drag-and-drop techniques. A tool is used to place controls (e.g., text boxes, buttons, etc.) on the form (window). Controls have attributes and event handlers associated with them. Default values are provided when the control is created, but may be changed by the programmer. Many attribute values can be modified during run time based on user actions or changes in the environment, providing a dynamic application. For example, code can be inserted into the form resize event handler to reposition a control so that it remains centred on the form, expands to fill up the form, etc. By inserting code into the event handler for a key press in a text box, the program can automatically translate the case of the text being entered, or even prevent certain characters from being inserted. Programs, can you create with Visual Basic 6? With VB 6, you can create any program depending on your objective. For example, if you are a college or university lecturer, you can create educational programs to teach business, economics, engineering, computer science, accountancy, financial management, information system and more to make teaching more effective and interesting. If you are in business, you can also create business programs such as inventory management system, point-of-sale system, payroll system, financial program as well as accounting program to help manage your business and increase productivity. For those of you who like what games and working as games programmer, you can create those programs as well. Indeed, there is no limit to what program you can create! There are many such programs in this tutorial, so you must spend more time on the tutorial in order to learn how to create those programs.
PANKAJ GILL
11/CSE/168
Page
26
2013
PANKAJ GILL
11/CSE/168
Page
27
2013
Program No. 12
End If
PANKAJ GILL
11/CSE/168
Page
28
Command1.Caption = "Play"
2013
PlaySound "C:\WINDOWS\MEDIA\chimes.WAV", ByVal 0&, SND_ASYNC Or SND_LOOP Else Command2.Caption = "Play" PlaySound "C:\WINDOWS\MEDIA\chimes.WAV", ByVal 0&, SND_MEMORY End If flag = Not flag End Sub Private Sub Command3_Click() If Not flag Then Command3.Caption = "Stop" PlaySound "C:\WINDOWS\MEDIA\chord.WAV", ByVal 0&, SND_ASYNC Or SND_LOOP Else Command3.Caption = "Play" PlaySound "C:\WINDOWS\MEDIA\chord.WAV", ByVal 0&, SND_MEMORY End If flag = Not flag End Sub Private Sub Command4_Click() If Not flag Then Command4.Caption = "Stop" PlaySound "C:\WINDOWS\MEDIA\ding.WAV", ByVal 0&, SND_ASYNC Or SND_LOOP
PANKAJ GILL
11/CSE/168
Page
29
2013
PlaySound "C:\WINDOWS\MEDIA\ding.WAV", ByVal 0&, SND_MEMORY End If flag = Not flag End Sub Private Sub Command5_Click() If Not flag Then Command5.Caption = "Stop" PlaySound "C:\WINDOWS\MEDIA\flourish.WAV", ByVal 0&, SND_ASYNC Or SND_LOOP Else Command5.Caption = "Play" PlaySound "C:\WINDOWS\MEDIA\flourish.WAV", ByVal 0&, SND_MEMORY End If flag = Not flag End Sub Private Sub Command6_Click() If Not flag Then Command6.Caption = "Stop" PlaySound "C:\WINDOWS\MEDIA\ir_begin.WAV", ByVal 0&, SND_ASYNC Or SND_LOOP Else Command6.Caption = "Play" PlaySound "C:\WINDOWS\MEDIA\ir_begin.WAV", ByVal 0&, SND_MEMORY End If flag = Not flag
PANKAJ GILL
11/CSE/168
Page
30
2013
PANKAJ GILL
11/CSE/168
Page
31
2013
Output
PANKAJ GILL
11/CSE/168
Page
32