Skip to content

Commit

Permalink
Add progressive loading via Range-Requests; remove fetch/ReadableStre…
Browse files Browse the repository at this point in the history
…am loading
  • Loading branch information
phoboslab committed Dec 29, 2016
1 parent bff737b commit e06577f
Show file tree
Hide file tree
Showing 2 changed files with 227 additions and 123 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ The `file` argument accepts a URL to a .mpg file or a (yet unconnected) WebSocke
The `options` argument to the `jsmpeg()` supports the following properties:

- `benchmark` whether to log benchmark results to the browser's console
- `progressive` whether to start playback as soon as the first frames have been loaded. Uses the new `fetch` API if available. Default `true`.
- `progressive` whether to start playback as soon as the first chunks have been loaded. Uses HTTP range-requests. Default `false`.
- `progressiveThrottled` whether to throttle downloading chunks until they're needed for playback. Requires `progressive`; default `false`.
- `canvas` the HTML Canvas element to use; jsmpeg will create its own Canvas element if none is provided
- `autoplay` whether playback should start automatically after loading
- `loop` whether playback is looped
Expand Down
Loading

0 comments on commit e06577f

Please sign in to comment.