mirror of https://github.com/OpenVidu/openvidu.git
Set audioActive and videoActive for subscriber
Have those values behaving as for publihserpull/443/head
parent
b7a36700f9
commit
20b638d245
|
@ -48,7 +48,8 @@ export class Subscriber extends StreamManager {
|
|||
this.stream.getMediaStream().getAudioTracks().forEach((track) => {
|
||||
track.enabled = value;
|
||||
});
|
||||
console.info("'Subscriber' has " + (value ? 'subscribed to' : 'unsubscribed from') + ' its audio stream');
|
||||
this.stream.audioActive = value;
|
||||
logger.info("'Subscriber' has " + (value ? 'subscribed to' : 'unsubscribed from') + ' its audio stream');
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -60,8 +61,9 @@ export class Subscriber extends StreamManager {
|
|||
this.stream.getMediaStream().getVideoTracks().forEach((track) => {
|
||||
track.enabled = value;
|
||||
});
|
||||
console.info("'Subscriber' has " + (value ? 'subscribed to' : 'unsubscribed from') + ' its video stream');
|
||||
this.stream.videoActive = value;
|
||||
logger.info("'Subscriber' has " + (value ? 'subscribed to' : 'unsubscribed from') + ' its video stream');
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue