flv.js播放flv

flv cdn
https://www.bootcdn.cn/flv.js/

举例

		<script src="dist/js/flv.min.js"></script>
		<video id="videoElement" controls autoplay width="1024" height="576"></video>
		<script>
			if (flvjs.isSupported()) {
				var videoElement = document.getElementById(‘videoElement‘);
				var flvPlayer = flvjs.createPlayer({
					type: ‘flv‘,
					url: ‘http://39.106.70.134:8100/flv?port=1935&app=live‘
				});
				flvPlayer.attachMediaElement(videoElement);
				flvPlayer.load();
				flvPlayer.play();
			}
		</script>

运行效果
flv.js播放flv

flv.js播放flv

上一篇:React 之 jsx


下一篇:JAVA版本号微信公众账号开源项目版本号公布-jeewx1.0(捷微)