equal
deleted
inserted
replaced
|
1 <?xml version="1.0"?> |
|
2 <svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" |
|
3 xmlns:xlink="http://www.w3.org/1999/xlink" |
|
4 width="100%" height="100%" viewBox="0 0 400 300"> |
|
5 <desc>Example of switching on the http://www.w3.org/TR/SVG12/feature#ComposedVideo feature string</desc> |
|
6 <rect x="2" y="2" width="396" height="296" fill="none" stroke="black" |
|
7 stroke-width="2" /> |
|
8 <rect x="106" y="66" width="184" height="140" fill="none" stroke="blue" |
|
9 stroke-width="4" /> |
|
10 |
|
11 <switch> |
|
12 |
|
13 <!-- Composited video group --> |
|
14 <g transform="translate(100 0)" requiredFeatures="http://www.w3.org/TR/SVG12/feature#ComposedVideo"> |
|
15 <video xlink:href="ski.avi" audio-level=".8" type="video/x-msvideo" |
|
16 x="10" y="70" width="176" height="132"/> |
|
17 <text x="20" y="100" fill-opacity="0.5" fill="blue" font-size="20">Composited title.</text> |
|
18 </g> |
|
19 |
|
20 <!-- Overlayed video group --> |
|
21 <g transform="translate(100 0)" font-size="18"> |
|
22 <video xlink:href="ski.avi" audio-level=".8" type="video/x-msvideo" |
|
23 x="10" y="70" overlay="top" width="176" height="132"/> |
|
24 <text x="15" y="60" fill="blue" fill-opacity="0.5" >Non-composited title.</text> |
|
25 </g> |
|
26 </switch> |
|
27 </svg> |