Fix Master Mute for Live Grid

rkmpp-v4l2m2m-decode
Moe 2022-12-05 14:55:14 -08:00
parent 2086f3554b
commit 006fa2d9cc
1 changed files with 3 additions and 2 deletions

View File

@ -1208,11 +1208,12 @@ $(document).ready(function(e){
$('.monitor_item video').each(function(n,vidEl){
var el = $(this)
var monitorId = el.parents('[data-mid]').attr('data-mid')
console.log(monitorId,monitorMutes[monitorId])
if(toggleState === 1){
el.attr('muted','muted')
vidEl.muted = true
}else{
if(monitorMutes[monitorId] !== 1){
el.removeAttr('muted')
vidEl.muted = false
}
}
})