如何在视频对象标签中设置缩略图?

时间:2015-05-26 10:19:00

标签: html object

我正在使用object tag在浏览器中播放视频。

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="fitvid473410"><param name="movie" value="http://demo.assetbank.co.uk/assetbank-standard/tools/jwplayer/player.swf">
<param name="flashvars" value="file=http://win-hk4iec2ge2r:1111/sites/KL007/Lists/KLDocumentLibrary/other.mp4&amp;autostart=false&amp;image=?previewFileLocation?&amp;backcolor=000000&amp;frontcolor=EEEEEE&amp;lightcolor=FFFFFF&amp;screencolor=000000&amp;autostart=false&amp;stretching=exactfit&amp;provider=video&amp;duration?">
<param name="allowfullscreen" value="true">
<param name="scale" value="default">
<param name="wmode" value="transparent">
<param name="allowscriptaccess" value="always">
<embed id="player1" width="300px" height="500px" type="application/x-shockwave-flash" src="http://demo.assetbank.co.uk/assetbank-standard/tools/jwplayer/player.swf" flashvars="file=http://win-hk4iec2ge2r:1111/sites/KL007/Lists/KLDocumentLibrary/other.mp4&amp;autostart=false&amp;image=?previewFileLocation?&amp;backcolor=000000&amp;frontcolor=EEEEEE&amp;lightcolor=FFFFFF&amp;screencolor=000000&amp;autostart=false&amp;stretching=exactfit&amp;provider=video&amp;duration?" allowfullscreen="true" allowscriptaccess="always">
</object>

请告诉我,在哪里可以在上面的对象标签中设置预览图像(我有图像网址)?

1 个答案:

答案 0 :(得分:2)

你可以这样做:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="fitvid473410"><param name="movie" value="http://demo.assetbank.co.uk/assetbank-standard/tools/jwplayer/player.swf">
    <param name="flashvars" value="file=http://win-hk4iec2ge2r:1111/sites/KL007/Lists/KLDocumentLibrary/other.mp4&amp;autostart=false&amp;image=<image path>?previewFileLocation?&amp;backcolor=000000&amp;frontcolor=EEEEEE&amp;lightcolor=FFFFFF&amp;screencolor=000000&amp;autostart=false&amp;stretching=exactfit&amp;provider=video&amp;duration?">
    <param name="allowfullscreen" value="true">
    <param name="scale" value="default">
    <param name="wmode" value="transparent">
    <param name="allowscriptaccess" value="always">
    <embed id="player1" width="300px" height="500px" type="application/x-shockwave-flash" src="http://demo.assetbank.co.uk/assetbank-standard/tools/jwplayer/player.swf" flashvars="file=http://win-hk4iec2ge2r:1111/sites/KL007/Lists/KLDocumentLibrary/other.mp4&amp;autostart=false&amp;image=?previewFileLocation?&amp;backcolor=000000&amp;frontcolor=EEEEEE&amp;lightcolor=FFFFFF&amp;screencolor=000000&amp;autostart=false&amp;stretching=exactfit&amp;provider=video&amp;duration?" allowfullscreen="true" allowscriptaccess="always">
    </object>