是否可以在 Cesium 中显示 rtmp 实时流视频?

Is it possible to display rtmp live stream video in Cesium?

我想在 Cesium 中显示一个 rtmp 流视频。我创建了一个实体并使用 <video> 元素作为它的 material。当我使用本地存储的视频(.mp4 格式)时它工作正常,但是当我切换到 rtmp 源并通过 videojs 播放它时,它可以在 <video> 元素中播放,但它不能在实体上播放. rtmp使用flash播放,而普通视频不需要flash,不知是不是因为这个。

这是 <video> 元素

<video id="rtmpStream" class="video-js" controls preload="auto" width="640" height="300" data-setup="{}" autoplay>
        <source src="rtmp://202.69.69.180:443/webcast/bshdlive-pc" type="rtmp/flv">
    </video>

我有解决办法:

使用VLC等视频服务器接收流并以http格式重新发送流link,然后使用nginx代理或其他方式确保新发送的流与源相同cesium 应用程序,之后只需在 cesium 中加载视频元素(使用 http link 作为源),就像在官方沙盒演示中一样。似乎不适用于 rtmp 但适用于其他格式。

可以用,但 VLC 似乎在性能方面不是很好。