You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

subscriber.any.js 771B

1234567891011121314151617181920
  1. // @flow
  2. import { StateListenerRegistry } from '../base/redux';
  3. import { updateRemoteParticipants } from './functions';
  4. /**
  5. * Listens for changes to the screensharing status of the remote participants to recompute the reordered list of the
  6. * remote endpoints.
  7. */
  8. StateListenerRegistry.register(
  9. /* selector */ state => state['features/video-layout'].remoteScreenShares,
  10. /* listener */ (remoteScreenShares, store) => updateRemoteParticipants(store));
  11. /**
  12. * Listens for changes to the dominant speaker to recompute the reordered list of the remote endpoints.
  13. */
  14. StateListenerRegistry.register(
  15. /* selector */ state => state['features/base/participants'].dominantSpeaker,
  16. /* listener */ (dominantSpeaker, store) => updateRemoteParticipants(store));