Witten
Bainbridge
Nichols
HOME HELP PREFERENCES SEARCHFIGURESTABLES

SMIL example

 1 <?xml version="1.1" encoding="UTF-8"?>
 2 <!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 Language//EN" 
      "http://www.w3.org/2008/SMIL30/SMIL30Language.dtd">
 3 <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
 4   <head>
 5     <meta name="title" content="Introductory demonstration of SMIL"/>
 6     <meta name="author" content="David Bainbridge"/>
 7     <layout>
 8       <root-layout xml:id="root" backgroundColor="white"
           backgroundImage="kudosbackground.gif" backgroundRepeat="repeat"
           width="460" height="310"/>
 9       <region xml:id="background" width="460" height="270" z-index="1"/>
10       <region xml:id="video" left="50" top="10" width="360" height="270" 
            z-index="2"/>
11       <region xml:id="text" left="50" top="290" width="360" height="20"
              backgroundColor="white" z-index="3"/>
12     </layout>
13   </head>
14
15   <body>
16     <seq>
17       <par dur="10s">
18         <img src="thekudos.gif" region="background" left="150" top="90"/>
19         <smilText region="text" begin="5s">
20           Announcing the winner of the ICT Category ...
21         </smilText>
22       </par>
23    
24       <par>
25         <seq>
26           <smilText region="text" begin="2s" dur="20s">
27             The Greenstone Digital Library Research Group
28           </smilText>
29           <smilText region="text" dur="40s">
30             Spreading the practical impact of digital libraries
31           </smilText>
32           <smilText region="text">
33             For further details: www.thekudos.org.nz
34             <area href="http://www.thekudos.org.nz" show="new" external="true"/>
35           </smilText>
36         </seq>
37
38         <switch>
39           <video src="interview128.flv" systemBitrate="12800" region="video"/>
40           <video src="interview256.flv" region="video"/>
41         </switch>
42       </par>
43  
44     </seq>
45   </body>
46 </smil>

Figure 5.22e: SMIL example; Underlying XML