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.

1234567891011121314
  1. import { IReduxState } from '../app/types';
  2. import { getParticipantById } from '../base/participants/functions';
  3. /**
  4. * Selector for the participant currently displaying on the large video.
  5. *
  6. * @param {Object} state - The redux state.
  7. * @returns {Object}
  8. */
  9. export function getLargeVideoParticipant(state: IReduxState) {
  10. const { participantId } = state['features/large-video'];
  11. return getParticipantById(state, participantId ?? '');
  12. }