Source: flash-constants.js

  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. const flashConstants = {
  15. // times in milliseconds
  16. TIME_BETWEEN_CHUNKS: 1,
  17. BYTES_PER_CHUNK: 1024 * 32
  18. };
  19. export default flashConstants;