简体   繁体   English

Azure媒体播放器预览图像

[英]Azure media player preview image

Is there a way to specify the poster or get the preview image of the video from the azure media player as mentioned on this page 有没有办法指定海报或从蔚蓝媒体播放器获取视频的预览图像,如本页上所述

http://amsplayer.azurewebsites.net/azuremediaplayer.html http://amsplayer.azurewebsites.net/azuremediaplayer.html

Thanks for any help. 谢谢你的帮助。

Use the "poster" attribute on the video tag. 在视频标签上使用“海报”属性。

For example: 例如:

<video id="azuremediaplayer" poster="~/Content/img/preview.png" class="azuremediaplayer amp-default-skin amp-big-play-centered"  controls width="640" height="480" data-setup='{"logo": { "enabled": false}, "nativeControlsForTouch": false}' tabindex="0">
    <source src="{video_src}" type="application/vnd.ms-sstr+xml" />
    <p class="amp-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video</p>
</video>

If you don't specify a value for the poster attribute then the player will use the first frame of the source video as the poster. 如果您未为海报属性指定值,则播放器将使用源视频的第一帧作为海报。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM