Replace Pictures with Videos
This exercise will demonstrate the simplicity of changing the presentation
from using images to using videos.
Videos are media elements similar to images. Thus change the <image>
element into a <video> element.
The duration is changed to get the duration from the video file
instead of explicitly giving a duration. Images must have a duration
that is specified because they are discrete elements. A video's
duration can be matched to it's length by indicating its duration
using the dur="media" attribute value..
The src attribute needs to be updated to point to the video file.
<xmt-o ...>
<head> ... </head>
<body>
<par>
...
<video ... src="../multimedia/Flamingos.mp4" dur="media"/>
<video ... src="../multimedia/Giraffe.mp4" dur="media"/>
<video ... src="../multimedia/Gorilla.mp4" dur="media"/>
<video ... src="../multimedia/TortoiseFlatTailed.mp4" dur="indefinite"/>
...
</par>
</body>
</xmt-o>
Modify the picture titles to match the new pictures.
<xmt-o ...>
<head> ... </head>
<body>
<par>
...
<string ... textLines=""Flamingos""> ... </string>
<string ... textLines=""Giraffe""> ... </string>
<string ... textLines=""Gorilla""> ... </string>
<string ... textLines=""Flat Tailed Tortoise""> ... </string>
...
</par>
</body>
</xmt-o>
The following is the complete XMT-O file used for this exercise:
IBMSlideShow10.xml
Here is a snap shot of the exercise:
|