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

functions.js 537B

123456789101112131415
  1. // @flow
  2. import { getParticipants } from '../base/participants';
  3. import { YOUTUBE_PARTICIPANT_NAME } from './constants';
  4. /**
  5. * Returns true if there is a youtube video being shaerd in the meeting.
  6. *
  7. * @param {Object | Function} stateful - The Redux state or a function that gets resolved to the Redux state.
  8. * @returns {boolean}
  9. */
  10. export function isYoutubeVideoPlaying(stateful: Object | Function): boolean {
  11. return Boolean(getParticipants(stateful).find(p => p.isFakeParticipant && p.name === YOUTUBE_PARTICIPANT_NAME));
  12. }