Blame view

node_modules/videojs-contrib-media-sources/src/flash-constants.js 559 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  /**
   * @file flash-constants.js
   */
  /**
   * The maximum size in bytes for append operations to the video.js
   * SWF. Calling through to Flash blocks and can be expensive so
   * we chunk data and pass through 4KB at a time, yielding to the
   * browser between chunks. This gives a theoretical maximum rate of
   * 1MB/s into Flash. Any higher and we begin to drop frames and UI
   * responsiveness suffers.
   *
   * @private
   */
  const flashConstants = {
    // times in milliseconds
    TIME_BETWEEN_CHUNKS: 1,
    BYTES_PER_CHUNK: 1024 * 32
  };
  
  export default flashConstants;