| HTML Tutorials |
|
|
| XML Tutorials |
|
|
| Browser Scripting |
|
|
| Server Scripting |
|
|
| .NET (dotnet) |
|
|
| Multimedia |
|
|
| Web Building |
|
|
| Java Tutorials |
|
|
| Programming Langauges |
|
|
| Soft Skills |
|
|
|
|
SMIL Sequence
|
To play a sequence of clips by using SMIL.
|
|
Playing Clips
|
If you want to use SMIL timing and linking with the clips, though, it is
easier to define the sequence within a SMIL file. So instead of writing a
separate SMIL file for each clip, you write only one SMIL file that defines all of
the features of the sequence. A sequence is the simplest type of SMIL group to create.
In the order that you want to play Just list the clips
within <seq> and </seq> tags.
Following example shows the entire SMIL markup required to play three audio
clips in sequence:
|
<smil xmlns="http://www.w3.org/2001/SMIL20/Language"xmlns:rn="http://features.real.com/2001/SMIL20/Extensions">
<body> <seq> <audio src="rtsp://helixserver.example.com/song1.rm"/> <audio src="rtsp://helixserver.example.com/song2.rm"/>
<audio src="rtsp://helixserver.example.com/song3.rm"/> </seq> </body>
</smil>
|
|
In the preceding example, the second clip begins when the first clip
finish and the third clip begins when the second clip finish. A sequence
can include any number of clips, and the clips can be of any type. You could add
a video clip to the sequence also.
RealOne Player treats the sequence as a single presentation when you enclose clips in <seq> and </seq> tags.
If each clip in the preceding example is two
minutes in length. e.g. the RealOne Player status bar indicates that the
presentation is six minutes long. Because RealOne Player treats the sequence as
a single presentation, viewers can use the timeline slider to seek through all
the clips, but cannot choose individual clips through the RealOne Player
Play>Next Clip command.
|
|
Creating Sequences Without the <seq> Tag
|
It is not necessary to always use <seq> and </seq> tags to create a clip sequence.
Whenever clips are not listed in a groups, RealOne Player play them in sequence.
For instance, the following markup, which has no <seq> and </seq> tags, play
three audio clips in sequence just like the preceding example:
|
|
<smil xmlns="http://www.w3.org/2001/SMIL20/Language"xmlns:rn="http://features.real.com/2001/SMIL20/Extensions">
<body> <audio src="rtsp://helixserver.example.com/song1.rm"/> <audio src="rtsp://helixserver.example.com/song2.rm"/>
<audio src="rtsp://helixserver.example.com/song3.rm"/> </body></smil>
|
|
RealOne Player treats each clip as a separate presentation when you do not use a <seq> group.
Suppose that each clip in the preceding example
lasts two minutes. When the sequence start the RealOne Player status bar
indicate that the presentation lasts two minutes. When the first clip ends,
RealOne Player's timeline slider resets, the second clip starts, and the status
bar indicate another two-minute presentation. This action repeats when the
third clip plays. At any point, the viewer can select a different clip with the
RealOne Player Play>Next Clip command.
|
|
List of SMIL elements and attributes:
|
SMIL Timing Elements
|
| Element |
Description |
Ver |
| <excl> |
Defines elements to be displayed exclusively |
2 |
| <par> |
Defines elements to be displayed in parallel |
1 |
| <seq> |
Defines elements to be displayed in a sequence |
1 |
| Attribute |
Description |
Ver |
| begin |
Sets the delay before the element is displayed |
1 |
| dur |
Sets the duration for the display |
1 |
| endsync |
Synchronizes the stopping of parallel elements |
1 |
| repeatCount |
Sets the number of repetitions for the display |
1 |
| Element |
Description |
Ver |
| <animation> |
Defines an animation |
1 |
| <audio> |
Defines an audio clip |
1 |
| <brush> |
Defines a brush |
1 |
| <img> |
Defines an image |
1 |
| <param> |
Defines a parameter |
1 |
| <ref> |
Defines a generic media reference |
1 |
| <text> |
Defines a text |
1 |
| <textstream> |
Defines a textstream |
1 |
| <video> |
Defines a video |
1 |
| Element |
Description |
Ver |
| <body> |
Defines the body of a SMIL document |
1 |
| <smil> |
Defines a SMIL document |
1 |
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords: xml sequence,
xsl sequence,
smil format,
smil tutorial,
smil player,
xsd sequence,
smil example,
smil video,
smil file,
smil files,
smil audio,
smil multimedia,
mms smil,
schema sequence,
smil text,
mpeg sequence,
template sequence,
format sequence,
protein sequence,
database sequence,
attribute sequence,
element sequence,
video sequence,
example sequence,
sequence vector,
data sequence,
reference sequence,
using sequence,
generate sequence,
tag sequence
|
|
| HTML Quizes |
|
|
| XML Quizes |
|
|
| Browser Scripting Quizes |
|
|
| Server Scripting Quizes |
|
|
| .NET (dotnet) Quizes |
|
|
| Multimedia Quizes |
|
|
| Web Building Quizes |
|
|
| Java Quizes |
|
|
| Programming Langauges Quizes |
|
|
| Soft Skills Quizes |
|
|
|