0
私はビデオjs player.Butでrtmp urlを試していますが、動作していませんでした。ウェブブラウザでrtmpライブストリームを再生するには?
ビデオjsでは、ソース(application/x-mpegURL | video/mp4)タイプを指定する必要があります。
<video id="wiPlayer" class="video-js vjs-default-skin"
controls codecs="avc1.4D401E, mp4a.40.2" preload="auto" width="1200" height="400" poster="<?=$post->screenShotUrl?>"
data-setup='{"aspectRatio":"640:320", "autoplay": true, "controlBar": {"fullscreenToggle": true, "progressControl": true}}'>
<p class="vjs-no-js">We're sorry, but your browser doesn't support Video</p>
</video>
jsのコードは私のために
player = videojs('wiPlayer');
player.src({
src: stream_url,
type: mPlayerType,// "video/mp4",//application/x-mpegURL
useCueTags: true
});
window.onOrientation(player, 'wiPlayer');
player.play();
されるURLは次のようである:
rtmp://vid-11239002.pull.usnecenter.broadcastapp.agora.cn/live/public1265537
は、どのように私はビデオJSとライブストリームのURLのこの種を再生することができますか?それとも他の解決方法がありますか?