<< Chapter < Page Chapter >> Page >

Video

Embedding videos attached to the module

Movies can be added to your module using the same basic structure as with other media types. <figure id='moviefig2'><media id="movie" alt="Building on the Past"><video mime-type="video/mpeg" src="Building_on_the_Past.mpg"width="350" height="300"autoplay="false" /></media><caption>The Creative Commons movie: "Building on the Past". Click the Play button to start the movie.</caption></figure> The movie is displayed below:

The Creative Commons movie: "Building on the Past". Click the Play button to start the movie.

Flash objects

You can insert Flash objects in your module. Here is an example of the CNXML code required to include a Flash object: <figure id='flashfig'><media id="new_flash" alt="flash animation of the connexions logo"><flash mime-type="application/x-shockwave-flash" src="flash.swf"height="250" width="250" /></flash></media><caption>"Welcome to Connexions" example Flash object.</caption></figure> The Flash object appears in your module the same way in which a movie or an image appears:

"Welcome to Connexions" example Flash object.

Audio files

Audio files such as mp3, real audio, and wav files can be inserted into your module quickly and easily. To include audio files in yourdocument, upload the corresponding audio file and include code similar to the following in your "index.cnxml" document: <figure id='musicscale'><media id="music_example" alt="chromatic scale slurred"><audio mime-type="audio/x-wav" src="chromatic_slurred.wav"/></media><caption>A chromatic scale performed on clarinet by Michael Lawrence.</caption></figure>

The actual display for the previous CNXML example is:

A chromatic scale performed on clarinet by Michael Lawrence.

Java applets

Java applets are another media type you can use in your Connexions modules: <figure id="javafig"><media id="java_example" alt="a complex sinusoid"><java-applet mime-type="application/x-java-applet" code="PhasorDemo.class"width="430" height="500" /></media><caption>3D Animation of a Complex Sinusoid. Click the Run button to start the animation.</caption></figure> The actual display for the previous CNXML example is:

3D Animation of a Complex Sinusoid. Click the Run button to start the animation.
If the graphic does not appear in the figure above, you may need to install or upgrade the Java plug-in on your computer. Pleasego to java.com to download the latest version of the Java plug-in.

Labview demonstrations

For information on including LabVIEW demonstrations in your module, please see Creating LabVIEW demonstrations for Connexions .

Parameters

Some multimedia objects need options or parameters to display properly. You can pass this information to the multimedia objectswith the param tag. The param tag allows you to specify the run-time settings for an object inserted into XHTML documents.

Here is an example of a param tag for an audio (wav) object: <figure id="audio2"><media id="music_example2" alt="Slurred chromatic scale"><audio mime-type="audio/x-wav" src="chromatic_slurred.wav"><param name="title" value="Chromatic Scale"/></audio></media></figure>

Questions & Answers

A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
Aislinn Reply
cm
tijani
what is titration
John Reply
what is physics
Siyaka Reply
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Jude Reply
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
David Reply
what is viscosity?
David
what is inorganic
emma Reply
what is chemistry
Youesf Reply
what is inorganic
emma
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
Krampah Reply
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
Sahid Reply
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
Samuel Reply
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Joseph Reply
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what's motion
Maurice Reply
what are the types of wave
Maurice
answer
Magreth
progressive wave
Magreth
hello friend how are you
Muhammad Reply
fine, how about you?
Mohammed
hi
Mujahid
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
yasuo Reply
Who can show me the full solution in this problem?
Reofrir Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Ideas and tools for improving connexions modules and collections. OpenStax CNX. Mar 22, 2010 Download for free at http://cnx.org/content/col11184/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ideas and tools for improving connexions modules and collections' conversation and receive update notifications?

Ask