I am working on a project using webRTC API. Check the speaking status of the participant using the totalAudioEnergy property in the peerConnection’s stats object. The totalAudioEnergy property exists in chrome, but the totalAudioEnergy property itself does not exist in safari 15 version on macOS. If you know a solution please help
pc.getStats().then(stats=>{
stats.forEach(res=>{
if(res.type == 'media-source'){
console.log(res)
}
})
})