|
|
|
@ -58,7 +58,7 @@ export default { |
|
|
|
// eslint-disable-next-line no-undef |
|
|
|
this.webRtcServer = new WebRtcStreamer('video', location.protocol + '//' + this.camera_ip) |
|
|
|
// 需要查看的rtsp地址,根据自己的摄像头传入对应的rtsp地址即可。注意:视频编码格式必须是H264的,否则无法正常显示,编码格式可在摄像头的后台更改 |
|
|
|
this.webRtcServer.connect('rtsp://' + this.hkConfig.username + ':' + this.hkConfig.password + '@' + this.hkConfig.ip + ':' + this.hkConfig.port + '/h264/ch1/main/av_stream') |
|
|
|
this.webRtcServer.connect('rtsp://' + this.hkConfig.username + ':' + this.hkConfig.devicePassword + '@' + this.hkConfig.ip + ':' + this.hkConfig.port + '/h264/ch1/main/av_stream') |
|
|
|
// 测试用 |
|
|
|
// this.webRtcServer.connect('rtsp://admin:ftzn83560792@192.168.99.120:554/h264/1/1') |
|
|
|
// this.webRtcServer.connect(rtsp_url) |
|
|
|
|