flash-constants.js 679 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @file flash-constants.js
  3. */
  4. /**
  5. * The maximum size in bytes for append operations to the video.js
  6. * SWF. Calling through to Flash blocks and can be expensive so
  7. * we chunk data and pass through 4KB at a time, yielding to the
  8. * browser between chunks. This gives a theoretical maximum rate of
  9. * 1MB/s into Flash. Any higher and we begin to drop frames and UI
  10. * responsiveness suffers.
  11. *
  12. * @private
  13. */
  14. "use strict";
  15. Object.defineProperty(exports, "__esModule", {
  16. value: true
  17. });
  18. var flashConstants = {
  19. // times in milliseconds
  20. TIME_BETWEEN_CHUNKS: 1,
  21. BYTES_PER_CHUNK: 1024 * 32
  22. };
  23. exports["default"] = flashConstants;
  24. module.exports = exports["default"];