mirror of https://github.com/OpenVidu/openvidu.git
22 lines
362 B
TypeScript
22 lines
362 B
TypeScript
![]() |
import { Injectable } from '@angular/core';
|
||
|
import { Subject } from 'rxjs/Subject';
|
||
|
|
||
|
@Injectable()
|
||
|
export class MuteSubscribersService {
|
||
|
|
||
|
muted = false;
|
||
|
mutedEvent$ = new Subject<boolean>();
|
||
|
|
||
|
constructor() { }
|
||
|
|
||
|
getMuted() {
|
||
|
return this.muted;
|
||
|
}
|
||
|
|
||
|
updateMuted(muted: boolean) {
|
||
|
this.muted = muted;
|
||
|
this.mutedEvent$.next(this.muted);
|
||
|
}
|
||
|
|
||
|
}
|