Skip to content

Commit

Permalink
Document restrictions on large timescales
Browse files Browse the repository at this point in the history
Fixes #1667

Change-Id: I00f0e049f6111dffa73c6dce852c9db81373b359
  • Loading branch information
joeyparrish committed Nov 15, 2018
1 parent 1831ce9 commit 4c34b89
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ DASH features **not** supported:
- Manifests without any segment info: https://github.com/google/shaka-player/issues/1088
- Changing codecs during a presentation (unsupported by MSE)
- Multiple trick mode tracks for the same resolution at varying framerates or bitrates
- Timescales so large that timestamps cannot be represented as integers in JavaScript (2^53): https://github.com/google/shaka-player/issues/1667


## HLS features
Expand Down
15 changes: 15 additions & 0 deletions docs/tutorials/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,28 @@ thus are not required to transmux.
In order to force those platforms to transmux, set the
[`.streaming.forceTransmuxTS`][StreamingConfiguration] configuration to true.

<hr>

**Q:** Why do I get 404 errors with very large timescales?

**A:** We can't handle content that creates timestamps too large to be
represented as Numbers in JavaScript (2^53). Very large timescales require very
large timestamps (in timescale units), which means we are unable to substitute
the correct values for `$Time$` in a `<SegmentTemplate>`. [BigInteger.js][] is
too large to become a required dependency for Shaka Player.

We recommend reducing your timescale or avoiding `$Time` in `<SegmentTemplate>`.
See discussion in [#1667][1667] for details.


[386]: https://github.com/google/shaka-player/issues/386#issuecomment-227898001
[489]: https://github.com/google/shaka-player/issues/489#issuecomment-240466224
[743]: https://github.com/google/shaka-player/issues/743
[887]: https://github.com/google/shaka-player/issues/887
[999]: https://github.com/google/shaka-player/issues/999
[1667]: https://github.com/google/shaka-player/issues/1667
[AbrConfiguration]: https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.AbrConfiguration
[BigInteger.js]: https://github.com/peterolson/BigInteger.js
[CORS]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
[DashManifestConfiguration]: https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.DashManifestConfiguration
[StreamingConfiguration]: https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.StreamingConfiguration
Expand Down

0 comments on commit 4c34b89

Please sign in to comment.