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 1.1KB

123456789101112131415161718192021222324252627
  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 remote screenshare participants to recompute the reordered list of the remote endpoints.
  13. */
  14. StateListenerRegistry.register(
  15. /* selector */ state => state['features/base/participants'].sortedRemoteVirtualScreenshareParticipants,
  16. /* listener */ (sortedRemoteVirtualScreenshareParticipants, store) => updateRemoteParticipants(store));
  17. /**
  18. * Listens for changes to the dominant speaker to recompute the reordered list of the remote endpoints.
  19. */
  20. StateListenerRegistry.register(
  21. /* selector */ state => state['features/base/participants'].dominantSpeaker,
  22. /* listener */ (dominantSpeaker, store) => updateRemoteParticipants(store));