您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

subscriber.ts 568B

123456789101112131415161718
  1. import { IReduxState, IStore } from '../../app/types';
  2. import StateListenerRegistry from '../redux/StateListenerRegistry';
  3. /**
  4. * Notifies when the local audio mute state changes.
  5. */
  6. StateListenerRegistry.register(
  7. /* selector */ (state: IReduxState) => state['features/base/media'].audio.muted,
  8. /* listener */ (muted: boolean, store: IStore, previousMuted: boolean) => {
  9. if (typeof APP !== 'object') {
  10. return;
  11. }
  12. if (muted !== previousMuted) {
  13. APP.API.notifyAudioMutedStatusChanged(muted);
  14. }
  15. }
  16. );