我想为我的 360 度视频添加自动播放功能。将“autoplay=true”或“&autoplay=1”添加到 src 没有帮助。
<div class="row Video-row">
@if (!String.IsNullOrWhiteSpace(Model.Content.VideoID))
{
if (!Model.Content.VideoID.Contains("youtube"))
{
<div class="Video-ratioPusher"></div>
<script src="http://cdnapi.kaltura.com/p/1960461/sp/196046100/embedIframeJs/uiconf_id/@playerID/partner&autoplay=1_id/1960461?autoembed=true&entry_id=@Model.Content.VideoID&playerId=kaltura_player_@Model.Content.VideoID&cache_st=1459302170&maxwidth=0&maxheight=0&flashvars[streamerType]=auto&autoplay=1"></script>
}
else
{
<img class="Video-image" src="@Model.Content.BrandHtmlHelperExt.BrandAsset(this.Html, "images/player_logo_pink-480.png")" />
<div class="Video-ratioPusher"></div>
<iframe class="kWidgetIframeContainer kWidget.embed" src="@Model.Content.VideoID" frameborder="0" allowfullscreen></iframe>
}
}
</div>