summaryrefslogtreecommitdiffstats
path: root/tests/excl_timings.smil
blob: 5e8f66ee17400e3ea2c3ea6072205bfcd6d26cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<smil>
  <head>
    <meta name="title" content="excl group test"/>
    <layout>
      <root-layout width="320" height="240" background-color="yellow"/>
      <region id="reg_but1" left="5" top="15" width="80" height="30" background-color="red"/>
      <region id="reg_but2" left="5" top="55" width="80" height="30" background-color="red"/>
      <region id="reg_but3" left="5" top="95" width="80" height="30" background-color="red"/>
      <region left="5" top="135" width="80" height="40">
        <region id="reg_text" left="5" top="0" width="70" height="18""/>
        <region id="reg_ext" left="5" top="22" width="30" height="18""/>
        <region id="reg_int" left="45" top="22" width="30" height="18"/>
      </region>
      <region id="reg_but4" left="5" top="185" width="80" height="30" background-color="red"/>
      <region left="95" top="15" width="210" height="210" background-color="blue">
        <region id="reg_img" left="5" top="5" width="64" height="24" background-color="orange"/>
      </region>
    </layout>
  </head>
  <body>
    <par end="but4.activateEvent">
      <text src="data:,Horizontal" id="but1" region="reg_but1" fill="freeze">
        <param name="fontColor" value="yellow"/>
        <param name="fontSize" value="+1"/>
        <param name="backgroundColor" value="blue"/>
      </text>
      <set targetElement="but1" attributeName="backgroundColor" to="red" begin="but1.activateEvent" dur="0.1"/>
      <text src="data:,Vertical" id="but2" region="reg_but2" fill="freeze">
        <param name="fontColor" value="yellow"/>
        <param name="fontSize" value="+1"/>
        <param name="backgroundColor" value="blue"/>
      </text>
      <set targetElement="but2" attributeName="backgroundColor" to="red" begin="but2.activateEvent" dur="0.1"/>
      <text src="data:,Diagonal" id="but3" region="reg_but3" fill="freeze">
        <param name="fontColor" value="yellow"/>
        <param name="fontSize" value="+1"/>
        <param name="backgroundColor" value="blue"/>
      </text>
      <set targetElement="but3" attributeName="backgroundColor" to="red" begin="but3.activateEvent" dur="0.1"/>
      <text src="data:,Repeat" id="but_rep" region="reg_text" fill="freeze">
        <param name="backgroundColor" value="cyan"/>
      </text>
      <text src="data:,Ext" id="but_ext" region="reg_ext" fill="freeze">
        <param name="backgroundColor" value="green"/>
        <param name="fontColor" value="white"/>
      </text>
      <text src="data:,Int" id="but_int" region="reg_int" fill="freeze">
        <param name="backgroundColor" value="green"/>
        <param name="fontColor" value="white"/>
      </text>
      <excl>
        <set targetElement="but_ext" attributeName="backgroundColor" to="red"
           begin="0" dur="indefinite"/>
        <set targetElement="but_ext" attributeName="backgroundColor" to="red"
           begin="but_ext.activateEvent" dur="indefinite"/>
        <set targetElement="but_int" attributeName="backgroundColor" to="red"
           begin="but_int.activateEvent" dur="indefinite"/>
      </excl>
      <excl>
        <set targetElement="vid" attributeName="src" to="img_scale_rep.smil"
           begin="but_ext.activateEvent" dur="indefinite"/>
        <set targetElement="vid" attributeName="src" to="img_scale.smil"
           begin="but_int.activateEvent" dur="indefinite"/>
      </excl>
      <text src="data:,Stop" id="but4" region="reg_but4" fill="freeze">
        <param name="fontColor" value="green"/>
        <param name="fontSize" value="+1"/>
        <param name="backgroundColor" value="red"/>
      </text>
      <video src="img_scale_rep.smil" id="vid" region="reg_img" fill="freeze" fit="meet" repeatCount="indefinite"/>
      <excl dur="indefinite">
        <animateMotion targetElement="reg_img" from="5,5" to="140,5"
                       begin="but1.activateEvent" dur="2" fill="freeze"
                       calcMode="spline" keySplines="0 .75 .25 1"/>
        <animateMotion targetElement="reg_img" from="5,5" to="5,180"
                       begin="reg_but2.activateEvent" dur="2" fill="freeze"
                       calcMode="spline" keySplines="0.75 0 1 0.25"/>
        <animateMotion targetElement="reg_img" from="5,5" to="140,180"
                       begin="reg_but3.activateEvent" dur="2" fill="freeze"
                       calcMode="spline" keySplines=".5 0 .5 1"/>
      </excl>
    </par>
  </body>
</smil>