播放图标覆盖在主视图区域上。 它会在视频暂停或到达视频结尾时显示,并且还取决于iconeffect参数。
播放图标的外观由以下CSS类选择器控制:
.s7interactivevideoviewer . s7videoplayer .s7iconeffect
播放图标的CSS属性
background-image |
播放图标显示的图像。 |
background-position |
如果使用CSS sprite,则定位在图稿sprite内。 参见 CSS脚本 . |
width |
播放图标的宽度。 |
height |
播放图标的高度。 |
图标效果支持 state
属性选择器。 属性 state="play"
在播放过程中暂停视频时使用,并且 state="replay"
当播放头位于流结尾时使用。
设置100 x 100像素播放图标。
.s7interactivevideoviewer .s7videoplayer .s7iconeffect {
width: 100px;
height: 100px;}
.s7interactivevideoviewer .s7videoplayer .s7iconeffect[state="play"] {
background-image: url(images/playIcon.png);
}
.s7interactivevideoviewer .s7videoplayer .s7iconeffect[state="replay"] {
background-image: url(images/replayIcon.png);
}