Page 174 - Web Applications (803) Class 12
P. 174
Method 1: Using <object> and <embed> Tags
Example: <object width=”500” height=”450”>
<embed src=”myfile.swf” width=”500” height=”450”> </embed>
</object>
Method 2: Let the Flash software generate the embed code
Step 1: Select File > Publish. The object, param, and embed tags will now be created for you by Flash. Additionally,
the classid and pluginspage attributes will be added.
Step 2: View the HTML source in the HTML document that Flash prepared and copy the code into the HTML page
where you want your Flash movie to appear.
Step 3: Confirm that “myfile.swf” is present in your Web folder.
Step 4: Enter the HTML file’s URL into your browser to view your Flash movie.
6. What is MIDI? How can you use MIDI to embed an audio?
Ans. MIDI or Musical Instrument Digital Interface, serves as a bridge between an instrument and a sound-generating
device. The application that controls the sound card on the Internet is a midi file. Unlike .wav or .au files, midi files
cannot only be read and played back. In a sense, the sound card is “played” by the midi file. The sound card is
instructed on what note to play and for how long.
<embed src=”music.mid” width= “150” height=”50”>
</embed>
7. What are .tiff files used for?
Ans. Uncompressed true colour images are stored in TIFF (Tag Image File Format) files. You can store TIFFs with
compression in the majority of graphics applications. Many graphics software, including XV Image Viewer,
CorelDraw and Photoshop can open these files.
8. List the drawbacks of Multimedia.
Ans. i. It is expensive. It utilises a variety of resources, some of which might be rather costly.
ii. An excessive amount of data can be stored all at once due to how easy it is to utilise.
iii. The size of your presentation’s loading time is impacted by huge resources like music and video. If you include
too much, you might need to use a bigger memory to store the data.
iv. Despite its versatility, creating the initial version takes time. Critical Thinking
C. Competency-based/Application-based questions: Computational Thinking
1. Vidit has to embed a media file “grows.mp3” in his web page. He wants that the file should start running as soon as
the web page is loaded and should play till the web page is viewed. He doesn’t want to display the controls on the
web page. Consider the following code and write appropriate values in the blanks: [CBSE SAMPLE PAPER 2022]
<EMBED SRC=”_____” HIDDEN= “_____” AUTOSTART = “_____”
LOOP = “_____” Height=145 width=160> </EMBED>
Ans. <EMBED SRC=”grows.mp3” HIDDEN= “true” AUTOSTART = “true”
LOOP = “infinite” Height=145 width=160> </EMBED>
2. How do I play an audio continuously and automatically in the background of the webpage. Write the code.
Ans. <audio autoplay loop src=”mymusicfile.mp3” type=”audio/mpeg”> </audio>
172 Touchpad Web Applications-XII

