2019-07-02 13:06:52 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import VideoLayout from '../../../modules/UI/videolayout/VideoLayout';
|
2020-05-20 10:57:03 +00:00
|
|
|
import { StateListenerRegistry } from '../base/redux';
|
2019-07-02 13:06:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Updates the on stage participant video.
|
|
|
|
*/
|
|
|
|
StateListenerRegistry.register(
|
|
|
|
/* selector */ state => state['features/large-video'].participantId,
|
|
|
|
/* listener */ participantId => {
|
|
|
|
VideoLayout.updateLargeVideo(participantId, true);
|
|
|
|
}
|
|
|
|
);
|