mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 1158|reply: 11
打印 prevThread nextThread

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

[copyURL]

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
jumpTo
owner
poston 2023-3-8 09:27 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
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 | 显示全部楼层
使用  muted: true,时 播放器扬声器显示静音 但未生效 还是有声音
reply agree Against

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

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

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

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
ground
 Owner| poston 2023-3-10 15:50 | 显示全部楼层
reply agree Against

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
5#
 Owner| poston 2023-3-13 14:46 | 显示全部楼层
yanjinbao post on2023-3-13 14:32
找到对应配置加上红框内容,解决跨域

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

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
6#
 Owner| poston 2023-3-14 09:15 | 显示全部楼层

好的  辛苦
reply agree Against

使用道具 report

2

主题

9

帖子

54

积分

member

Rank: 2

积分
54
7#
 Owner| poston 2023-3-23 17:32 | 显示全部楼层

还是会有405的错误
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-19 15:39 , Processed in 0.063479 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList