mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12NextPage
backToList newPost
view: 1123|reply: 11
打印 prevThread nextThread

web端二次开发,录像,播放等问题

[copyURL]

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
jumpTo
owner
poston 2023-3-8 09:27 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
1.web端 使用 视频对讲功能,播放器初始化设置为静音 未生效
2. web端使用手动录像 接口 : /bvcsp/v1/manualrecord/start 录像完成后 服务器存储的是 mkv 格式的视频文件 是否可以设置格式
静音未生效问题代码:
var strVideoDivId = "video_" + index;
      const { instance } = PuPlayer({
        container: document.getElementById(strVideoDivId),// (可选) 容器节点
        puOption: {
          id: name,// 设备id
          index: 0,// 设备通道号
        },
        muted: true,
        token: localStorage.getItem("RTC-Token"),
        videoFit: "contain",
        fullScreenOnDblclick: false, // (可选) 双击是否全屏
        enableController: true, // (可选) 启用控制器
        disabledControls: [
          "record",
          "ptzControl",
          "information",
          "screenshot",
          "rotate",
          "fullscreen",
        ],//禁用项
      });


reply

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
sofa
 Owner| poston 2023-3-8 09:29 | authorOnly
使用  muted: true,时 播放器扬声器显示静音 但未生效 还是有声音
reply agree Against

使用道具 report

60

主题

1413

帖子

5805

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5805
bench
poston 2023-3-10 09:39 | authorOnly
是我们最新的WEB SDK吧?
reply agree Against

使用道具 report

0

主题

19

帖子

70

积分

member

Rank: 2

积分
70
ground
poston 2023-3-10 10:44 | authorOnly
// 打开连接
    async open() {
      if (!this.instance) return;
      try {
        await this.instance.open();
       await this.instance.mute(true);
        this.closed = false;
      } catch (e) {
        console.log(e);
      }
    }
还需要在open里调用这个方法
reply agree Against

使用道具 report

0

主题

19

帖子

70

积分

member

Rank: 2

积分
70
5#
poston 2023-3-10 11:00 | authorOnly
第二个问题,我们的接口没有设置文件格式的,一般是设备端设置
reply agree Against

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
6#
 Owner| poston 2023-3-10 15:36 | authorOnly
yanjinbao post on2023-3-10 11:00
第二个问题,我们的接口没有设置文件格式的,一般是设备端设置

好的  静音功能实现了 目前剩余最后一个问题 前端本地启用代理方式访问接口没有问题 部署线上后会出现跨域的问题,不使用代理则会出现405的情况  这个情况有什么解决方法么   辛苦了
reply agree Against

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
7#
 Owner| poston 2023-3-10 15:50 | authorOnly
reply agree Against

使用道具 report

0

主题

19

帖子

70

积分

member

Rank: 2

积分
70
8#
poston 2023-3-13 14:32 | authorOnly

找到对应配置加上红框内容,解决跨域
reply agree Against

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
9#
 Owner| poston 2023-3-13 14:46 | authorOnly
yanjinbao post on2023-3-13 14:32
找到对应配置加上红框内容,解决跨域

图片查看不了,显示附件已做防盗链处理,请在源文件中访问该附件
reply agree Against

使用道具 report

0

主题

19

帖子

70

积分

member

Rank: 2

积分
70
10#
poston 2023-3-13 17:25 | authorOnly
112222222222

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-6 21:37 , Processed in 0.068362 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList