Video js 不播放来自 Red5pro 服务器的流的声音

Video js doen't play the sound of the stream from Red5pro server

我正在尝试使用视频 js 从 RED5pro 服务器播放视频 player.The 视频显示正常但没有声音。

当我联系服务器支持时,他们给出了以下回复:

This is a known issue with Flash publishing and HLS playback. You can use OBS instead of our player. You will have to configure it to use aac. We are currently not transcoding speex audio to aac for playback over HLS, so that's why the sound is not coming through. Our next release will have full WebRTC support which you can use instead of Flash.

我的代码示例如下:

<video id=red5pro-video width=600 height=300 class="video-js vjs-default-skin" controls></video>

<script src="http://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="videojs/video.min.js"></script>
<script src="videojs/videojs-media-sources.min.js"></script>
<script src="videojs/videojs.hls.min.js"></script>
<!-- Red5 Pro SDK -->
<script src="red5pro/red5pro-sdk.min.js"></script>
<script src="script/hls-metadata.js"></script>

<script>
(function () {
var player = videojs('red5pro-video');
player.src({
src: "http://52.77.235.152:5080/live/pub130141120161141537.m3u8", 
type: "application/x-mpegURL",
useCueTags: true
});
window.onOrientation(player, 'red5pro-video');
player.play();
})();
</script>

我该如何解决这个问题?请给我一些想法。

尝试检查Red5 pro的后台server.I意味着Red5pro上的必要设置是否启用。那将是唯一的问题。 请浏览 R5P 博客: https://www.red5pro.com/docs/server/hlsdocs/