[英]Azure media player preview image
有沒有辦法指定海報或從蔚藍媒體播放器獲取視頻的預覽圖像,如本頁上所述
http://amsplayer.azurewebsites.net/azuremediaplayer.html
謝謝你的幫助。
在視頻標簽上使用“海報”屬性。
例如:
<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>
如果您未為海報屬性指定值,則播放器將使用源視頻的第一幀作為海報。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.