Browse Source

视频播放rts静音

master
yxq 4 months ago
parent
commit
c25aee0669
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      SafeCampus.WEB/public/static/rtsPlayer.html

+ 1
- 0
SafeCampus.WEB/public/static/rtsPlayer.html View File

@@ -66,6 +66,7 @@
// 当RTS拉流成功时触发,通过订阅该事件,可以获取到RTS TraceId
player.on('rtsTraceId', function (data) {
console.log('[EVENT]rtsTraceId', data.paramData);
player.setVolume(0)
let fullscreenBtn = document.querySelector('.prism-controlbar .prism-fullscreen-btn')
if(fullscreenBtn)fullscreenBtn.style.display = 'none'
// event.paramData.traceId 拉流的TraceId


Loading…
Cancel
Save