mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: fanghj90
打印 prevThread nextThread

Web 二次开发支持(请勿回帖,另起新帖)

 关闭 [copyURL]

0

主题

6

帖子

28

积分

newBie

Rank: 1

积分
28
owner
poston 2020-3-25 18:01 | 显示全部楼层
登录成功后,获取url的时候报错如下:  HandleResponse.js:1469 cmd: WEB_BVCU_OPEN_CHANLE fail RC_CODE_E_BVCU_NOTFOUND,怎么个情况呢
reply agree Against

使用道具 report

0

主题

6

帖子

28

积分

newBie

Rank: 1

积分
28
sofa
poston 2020-3-25 18:05 | 显示全部楼层
web端SDK的使用:
1、登录成功后,获取url的时候报错如下:  HandleResponse.js:1469 cmd: WEB_BVCU_OPEN_CHANLE fail RC_CODE_E_BVCU_NOTFOUND,怎么个情况呢?
2、登录成功后,再次用此账号登录系统,一小会儿后自动退出了,怎么回事儿?
3、登录成功后,刷新页面后就需要重新登录,怎么保持此上次的登状态?
reply agree Against

使用道具 report

0

主题

6

帖子

28

积分

newBie

Rank: 1

积分
28
bench
poston 2020-3-25 22:07 | 显示全部楼层
登录成功后,获取设备列表能够成功,但是打开设备后获取url时显示 “on open chanle, result Failed”,报错信息:"HandleResponse.js:1469 cmd: WEB_BVCU_OPEN_CHANLE fail RC_CODE_E_BVCU_NOTFOUND" ,获取到不到url.不知道是哪里的原因,求解答!!
reply agree Against

使用道具 report

0

主题

6

帖子

28

积分

newBie

Rank: 1

积分
28
ground
poston 2020-3-26 14:13 | 显示全部楼层
关闭设备视频的时候,调用swClose()方法,控制台提示 “can't find the dialog from you hdlg” ,怎么回事儿呢?
相关代码:

// 关闭设备视频
  closeVideo(item: any) {
    const chanel = this.session.swGetPuChanel(item._id_pu, 0);
    chanel.swClose();
  }
reply agree Against

使用道具 report

0

主题

6

帖子

28

积分

newBie

Rank: 1

积分
28
5#
poston 2020-3-26 18:14 | 显示全部楼层
我们现在有个需求,在获取的设备列表后将列表显示在页面中,想知道哪些设备未在线,能够标识出来,请回返回的设备列表中有没有字段显示是否在线?获取有其他的办法?急等,谢谢
reply agree Against

使用道具 report

0

主题

6

帖子

28

积分

newBie

Rank: 1

积分
28
6#
poston 2020-3-27 16:39 | 显示全部楼层
对讲功能,我开开发文档上面的demo是可以实现的,但是我按照demo些的代码,不行,只听到头盔发出“嘀”的一声,但是页面就上面没有图像和声音,浏览器控制台没有报错,我用的谷歌浏览器,请问,对讲有哪些需要注意的地方?相关代码如下:
this.session = new jSW.SWSession({
      server: '127.0.0.1',
      port: 9701,
      onopen(sess: any) {
        sess.swLogin({ user: `${credentials.username}`, password: `${credentials.password}` });
      }
    });

// 登录回调
    this.session.swAddCallBack('login', (sender: any, event: any, json: any) => {
      if (json.code === jSW.RcCode.RC_CODE_S_OK) {
      } else {
        this.logger.info(`账户或密码错误`);
      }
    });

    // 获取设备列表回调
    this.session.swAddCallBack('pulist', (sender: any, event: any, json: any) => {
      if (json.code === jSW.RcCode.RC_CODE_S_OK) {
        this.puList = this.session._arr_pu;
        this.puList.forEach((item: any) => {
          const random = Math.random();
          item.random = random;
          this.showdomList.push({ isHave: false, _id_pu: item._id_pu, domId: `dom${random}`, random })
        });

        console.log('this.puList:', this.puList);
      }
    });
const m_media = (jSW.MEDIADIR.AUDIOSEND) + (jSW.MEDIADIR.AUDIORECV);

const result = chanel.swOpenEx({
        tag: this,
        div: _this.getDomId(),
        ismuti: true,  // 设置可以被打开多次,
        prototype: 'auto',
        bovertcp: true,
        media: m_media,
        callback(options: any, response: any, event: any) {

          const pthis = options.tag;
          const code = response.emms.code;

          if (code === 0) { // code === 0 成功
            item.isOpen = true;
            _this.addMediaToShowdomList(item, event.hdlg); // 唯一标识该路播放的句柄(关闭设备时需传入)

            // 获取url
            item.url = pthis.session.swGetPuChanel(`${item._id_pu}`, 0).swGetUrl();
            _this.removeFlag();
          } else if (code === 20106) {
            _this.emptySpaceDomId();
            _this.logger.info(`${item._name_pu} 未连接!`);
          }
        },
      });


reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-19 02:01 , Processed in 0.058594 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList