我有一个IP摄像头,可以在URL上生成flv流,比如:
http://192.168.0.6/flv?port=1234&app=bcs&stream=channel0_main.bcs
video.js
根据这个
previous question
<head>
<link href="https://vjs.zencdn.net/7.10.2/video-js.css" rel="stylesheet" />
</head>
<body>
<video id="example_video_1" class="video-js vjs-default-skin"
controls preload="auto" width="640" height="480"
data-setup='{"example_option":true}'>
<source src="http://192.168.0.6/flv?port=1234&app=bcs&stream=channel0_main.bcs" type="video/x-flv">
</video>
<script src="https://vjs.zencdn.net/7.10.2/video.min.js"></script>
</body>
我在桌面上本地创建了HTML文件,浏览器中出现以下错误:
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media.
我被困在这里,我不明白为什么它不显示视频。