This commit is contained in:
acgist
2023-03-14 08:08:17 +08:00
parent 0cd054dbb0
commit dfec49892d
2 changed files with 5 additions and 4 deletions

View File

@@ -586,11 +586,11 @@ class Taoyao extends RemoteClient {
/************************ 管理 ************************/
getProducer(producerId) {
const me = this;
if(me?.audioProducer.id === producerId) {
if(me.audioProducer?.id === producerId) {
return me.audioProducer;
} else if(me?.videoProducer.id === producerId) {
} else if(me.videoProducer?.id === producerId) {
return me.videoProducer;
} else if(me?.dataProducer.id === producerId) {
} else if(me.dataProducer?.id === producerId) {
return me.dataProducer;
} else {
return null;