選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

constants.ts 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * Default last-n value used to be used for "HD" video quality setting when no channelLastN value is specified.
  3. *
  4. * @type {number}
  5. */
  6. export const DEFAULT_LAST_N = 20;
  7. /**
  8. * The supported remote video resolutions. The values are currently based on
  9. * available simulcast layers.
  10. *
  11. * @type {object}
  12. */
  13. export const VIDEO_QUALITY_LEVELS = {
  14. ULTRA: 2160,
  15. HIGH: 720,
  16. STANDARD: 360,
  17. LOW: 180,
  18. NONE: 0
  19. };
  20. /**
  21. * Indicates unlimited video quality.
  22. */
  23. export const VIDEO_QUALITY_UNLIMITED = -1;
  24. /**
  25. * The maximum video quality from the VIDEO_QUALITY_LEVELS map.
  26. */
  27. export const MAX_VIDEO_QUALITY = Math.max(...Object.values(VIDEO_QUALITY_LEVELS));
  28. /**
  29. * Maps quality level names used in the config.videoQuality.minHeightForQualityLvl to the quality level constants used
  30. * by the application.
  31. *
  32. * @type {Object}
  33. */
  34. export const CFG_LVL_TO_APP_QUALITY_LVL = {
  35. 'low': VIDEO_QUALITY_LEVELS.LOW,
  36. 'standard': VIDEO_QUALITY_LEVELS.STANDARD,
  37. 'high': VIDEO_QUALITY_LEVELS.HIGH,
  38. 'ultra': VIDEO_QUALITY_LEVELS.ULTRA
  39. };