版本:93.0 (64 位)
使用:使用localhost或者127.0.0.1不能访问,但是使用ip地址如192.168.0.241就能访问。查看webrtc流也正常,就是看不到视频画面
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- </head>
- <body>
- <video id="video-webrtc" controls></video>
- <script type="text/javascript" src="./js/jswebrtc.min.js"></script>
- <script type="text/javascript">
- var video = document.getElementById('video-webrtc');
- var url = 'webrtc://xxxxxx/live/mystream‘
- var player = new JSWebrtc.Player(url, { video: video, autoplay: true, onPlay: (obj) => { console.log("start play") } });
- </script>
- </body>
- </html>
复制代码
|
|