Timing is applied to a clip using one or more timing attributes
Attributes begin end and dur are the most frequently used
Timing can be defined relative to other clips
Begin playing audio 5 seconds before video ends
Timing behaviour of clips depends on their group context
Examples
Images in a <par> group
Timing is relative to the start of the group
RealONE
Internet Explorer v6
Images in a <seq> group
Timing is relative to the previous element in the group
RealONE
Internet Explorer v6
7.4 Element Timing Within Groups
Elements always located within a least one group
Group may be the implicit default behaviour
Elements time is relative to the containing group element
<seq>
Timing defined is relative the preceding element in the group
<par> and <excl>
Timing defined is relative to the beginning of the group
Default for top-level group element is begin=“0”
Examples
Timing within a <seq> group
RealONE
Internet Explorer v6
Quicktime (not handled correctly)
Timing within a <par> group
RealONE
Internet Explorer v6
QuickTime (make .mov)
Timing within an <excl> group
RealONE
Internet Explorer v6
7.5 Timing in Nested Element Groups
Element groups can be nested within each other
Element takes timing from the enclosing element group
par or excl element inside seq element
Timing of each par or excl element group is relative to the end of the previous par or excl element group in the sequence
seq element inside a par or excl group
Timing of each seq element group is relative to the start of the enclosing par or exclusive group
Timing of elements within any of the groups still observes the timing rules
Elements in a <par> group
Timing is relative to the start of the group
Elements in a <seq> group
Timing is relative to the preceding element in the group
7.5.1 Example of Nested Timing
Examples
RealONE
Internet Explorer v6
Alternative solutions
<par> <!-- Start by playing slideshow with audio --> <audio … /> <seq> <!-- Images for slide show --> </seq> <par> <!-- Add one or more buttons for control: client specific --> <img … /> … <excl …/> <!-- An exclusive group --> </excl …/> </par> <!-- Play out with a video and some audio --> <video … /> <audio … /> </par>
7.6 Timing Attributes Time & Synch repeatCount Time & Synch repeatDur Time & Synch fill Time & Synch endsync Media clipBegin clipEnd Time & Synch begin end dur QT IEv6 RealONE SMIL2 SMIL1 Module Attribute
7.7 begin end and dur attributes
Remember timing depends upon the containing group element
begin controls when clips start to play
End always starts from “0”
Better used when defined with a clip event
Duration of clip is end minus begin
20 -10 = 10 seconds
Simpler to use dur attribute to set a clips duration
Do not use both end and dur
Attribute giving the shortest playback time is used
Use dur to override media clips inherent duration
Examples
RealONE
Internet Explorer v6
QuickTime
<video src=“…” begin=“10”> <audio src=“audio-file” begin=“10” end=“20” … /> <!-- This is equivalent to the above example --> <audio src=“audio_file” begin=“10” dur=“10” … />
7.7.1 dur attribute continued
Using the media clip’s inherent duration
Supported in RealONE
Ignored for elements that do not define media
par , seq and excl elements
Using an indefinite duration
Can be used with media and group elements
Maintain an element until an event is caught
Use in SMIL file that is a wrapper for a live event
7.9.1 endsync attribute values IEv6 only. Ends when the group ends ignoring the enclosed clips (elements) This is the same as the behaviour in RealONE when a group has a dur or end attribute value set which overrides the endsync value. none Ends the group when the clip (element) with this id has finished. Note in EIv6 this does not appear to work with time based media id This is the default. Ends the group once the last clip (element) has finished last Ends the group when the first clip (element) has finished first Ends a group once all clips (elements) have finished all
7.10 Using the fill attribute
Used primarily with visual elements: images, video and text
Does not apply to audio clips
Define state when clip ends but its group is still active
Values
freeze hold remove transition
Default fillDefault can be defined for a group element
0 comments
Post a comment