定义播放区域大小为标准 352 x 288,而台标画面区域位于左上角,大小为 73 x 66,并且半透明效果。另外还包括了视频画面具有自动适应播放区域大小的功能。台标采用一个普通 jpg 或者 gif 均可,是否具有背景透明象素无关紧要。
<
smil
xmlns
="http://www.w3.org/2001/SMIL20/Language"
xmlns:rn
="http://features.real.com/2001/SMIL20/Extensions"
>
< head >
< layout >
< root-layout width ="352" height ="288" backgroundColor ="black" />
< region id ="video_region" width ="100%" height ="100%" fit ="meet" >
< region id ="video_region_logo" left ="0" top ="0" height ="66" width ="73" />
</ region >
</ layout >
</ head >
< body >
< par >
<!-- flag.jpg 做为台标图片,可实现半透明叠印效果 -->
< img src ="flag.jpg" region ="video_region_logo" rn:mediaOpacity ="35%" fill ="hold" />
< video src ="movie.rm" region ="video_region" regPoint ="center" regAlign ="center" fill ="remove" />
</ par >
</ body >
</ smil >
< head >
< layout >
< root-layout width ="352" height ="288" backgroundColor ="black" />
< region id ="video_region" width ="100%" height ="100%" fit ="meet" >
< region id ="video_region_logo" left ="0" top ="0" height ="66" width ="73" />
</ region >
</ layout >
</ head >
< body >
< par >
<!-- flag.jpg 做为台标图片,可实现半透明叠印效果 -->
< img src ="flag.jpg" region ="video_region_logo" rn:mediaOpacity ="35%" fill ="hold" />
< video src ="movie.rm" region ="video_region" regPoint ="center" regAlign ="center" fill ="remove" />
</ par >
</ body >
</ smil >