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

functions.js 613B

12345678910111213141516
  1. /**
  2. * Determines whether a specific videoTrack should be rendered.
  3. *
  4. * @param {Track} videoTrack - The video track which is to be rendered.
  5. * @param {boolean} waitForVideoStarted - True if the specified videoTrack
  6. * should be rendered only after its associated video has started;
  7. * otherwise, false.
  8. * @returns {boolean} True if the specified videoTrack should be renderd;
  9. * otherwise, false.
  10. */
  11. export function shouldRenderVideoTrack(videoTrack, waitForVideoStarted) {
  12. return (
  13. videoTrack
  14. && !videoTrack.muted
  15. && (!waitForVideoStarted || videoTrack.videoStarted));
  16. }