shaka-player 4.1.6 → 4.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/AUTHORS +1 -0
  2. package/CHANGELOG.md +15 -0
  3. package/CONTRIBUTORS +1 -0
  4. package/dist/deps.js +2 -2
  5. package/dist/locales.js +29 -29
  6. package/dist/shaka-player.compiled.d.ts +5 -1
  7. package/dist/shaka-player.compiled.debug.d.ts +5 -1
  8. package/dist/shaka-player.compiled.debug.externs.js +2 -1
  9. package/dist/shaka-player.compiled.debug.js +82 -81
  10. package/dist/shaka-player.compiled.debug.map +3 -3
  11. package/dist/shaka-player.compiled.externs.js +2 -1
  12. package/dist/shaka-player.compiled.js +516 -513
  13. package/dist/shaka-player.compiled.map +3 -3
  14. package/dist/shaka-player.ui.d.ts +5 -1
  15. package/dist/shaka-player.ui.debug.d.ts +5 -1
  16. package/dist/shaka-player.ui.debug.externs.js +2 -1
  17. package/dist/shaka-player.ui.debug.js +98 -97
  18. package/dist/shaka-player.ui.debug.map +3 -3
  19. package/dist/shaka-player.ui.externs.js +2 -1
  20. package/dist/shaka-player.ui.js +656 -653
  21. package/dist/shaka-player.ui.map +3 -3
  22. package/externs/mux.js +3 -0
  23. package/lib/cast/cast_proxy.js +2 -1
  24. package/lib/cast/cast_receiver.js +19 -5
  25. package/lib/cast/cast_sender.js +2 -1
  26. package/lib/cast/cast_utils.js +16 -6
  27. package/lib/hls/hls_parser.js +9 -2
  28. package/lib/media/media_source_engine.js +6 -0
  29. package/lib/media/playhead.js +23 -1
  30. package/lib/media/streaming_engine.js +3 -12
  31. package/lib/media/transmuxer.js +6 -0
  32. package/lib/player.js +24 -11
  33. package/lib/util/manifest_parser_utils.js +4 -0
  34. package/package.json +1 -1
  35. package/roadmap.md +24 -6
  36. package/test/cast/cast_receiver_integration.js +97 -16
  37. package/test/cast/cast_receiver_unit.js +17 -12
  38. package/test/cast/cast_utils_unit.js +1 -0
  39. package/test/media/media_source_engine_integration.js +31 -0
  40. package/test/media/playhead_unit.js +41 -0
  41. package/test/media/streaming_engine_integration.js +13 -0
  42. package/test/media/streaming_engine_unit.js +36 -23
  43. package/test/player_unit.js +87 -0
  44. package/test/test/util/simple_fakes.js +3 -0
  45. package/ui/controls.js +4 -1
  46. package/ui/settings_menu.js +11 -2
@@ -294,7 +294,7 @@ declare namespace shaka {
294
294
  * If the player has loaded content, and streaming seen an error, but the
295
295
  * could not resume streaming, this will return <code>false</code>.
296
296
  */
297
- retryStreaming ( ) : boolean ;
297
+ retryStreaming (retryDelaySeconds ? : number ) : boolean ;
298
298
  /**
299
299
  * Get the range of time (in seconds) that seeking is allowed. If the player
300
300
  * has not loaded content, this will return a range from 0 to 0.
@@ -3650,6 +3650,10 @@ declare namespace muxjs.mp4 {
3650
3650
  */
3651
3651
  on (type : string , listener : Function | null ) : any ;
3652
3652
  push (data : Uint8Array ) : any ;
3653
+ /**
3654
+ * Reset captions.
3655
+ */
3656
+ resetCaptions ( ) : any ;
3653
3657
  setBaseMediaDecodeTime (time : number ) : any ;
3654
3658
  }
3655
3659
  }
@@ -294,7 +294,7 @@ declare namespace shaka {
294
294
  * If the player has loaded content, and streaming seen an error, but the
295
295
  * could not resume streaming, this will return <code>false</code>.
296
296
  */
297
- retryStreaming ( ) : boolean ;
297
+ retryStreaming (retryDelaySeconds ? : number ) : boolean ;
298
298
  /**
299
299
  * Get the range of time (in seconds) that seeking is allowed. If the player
300
300
  * has not loaded content, this will return a range from 0 to 0.
@@ -3650,6 +3650,10 @@ declare namespace muxjs.mp4 {
3650
3650
  */
3651
3651
  on (type : string , listener : Function | null ) : any ;
3652
3652
  push (data : Uint8Array ) : any ;
3653
+ /**
3654
+ * Reset captions.
3655
+ */
3656
+ resetCaptions ( ) : any ;
3653
3657
  setBaseMediaDecodeTime (time : number ) : any ;
3654
3658
  }
3655
3659
  }
@@ -2866,9 +2866,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
2866
2866
  * <p>
2867
2867
  * If the player has loaded content, and streaming seen an error, but the
2868
2868
  * could not resume streaming, this will return <code>false</code>.
2869
+ * @param {number=} retryDelaySeconds
2869
2870
  * @return {boolean}
2870
2871
  */
2871
- retryStreaming() {}
2872
+ retryStreaming(retryDelaySeconds) {}
2872
2873
  /**
2873
2874
  * Get the manifest that the player has loaded. If the player has not loaded
2874
2875
  * any content, this will return <code>null</code>.