Azure Media Player在播放视频时中断

时间:2019-04-09 09:41:07

标签: azure azure-media-services

我遇到了一个非常奇怪的问题。直到几天前,Azure的媒体播放器运行良好,直到我真正需要它运行,此后一直没有。我已附上一张图片,以便您每按一次播放即可看到我在看什么:

enter image description here

这是播放器的代码:

<video id="azuremediaplayer" class="azuremediaplayer amp-default-skin amp-big-play-centered" tabindex="0" autoplay controls width="100%" margin="0" margin="0px" poster="{{object.thumbnail.url}}" data-setup='{"logo": { "enabled": false },"nativeControlsForTouch": false, "plugins": {"ga":{ "eventsToTrack": ["playerConfig", "loaded", "playTime", "percentsPlayed", "start", "end", "play", "pause", "error", "buffering", "fullscreen", "seek", "bitrate"], "debug": false}}}'>
    <source
    src="{{object.ingest_url}}"
    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>

我正在使用2.2.4版本:

<link href="http://amp.azure.net/libs/amp/2.2.4/skins/amp-default/azuremediaplayer.min.css" rel="stylesheet">
<script src= "http://amp.azure.net/libs/amp/2.2.4/azuremediaplayer.min.js"></script>

1 个答案:

答案 0 :(得分:0)

我自己的错,流式传输端点意外关闭。