shaka-player 4.7.6 → 4.7.8

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 (40) hide show
  1. package/AUTHORS +2 -0
  2. package/CONTRIBUTORS +2 -0
  3. package/dist/locales.js +30 -30
  4. package/dist/shaka-player.compiled.d.ts +1 -1
  5. package/dist/shaka-player.compiled.debug.d.ts +1 -1
  6. package/dist/shaka-player.compiled.debug.externs.js +2 -1
  7. package/dist/shaka-player.compiled.debug.js +94 -93
  8. package/dist/shaka-player.compiled.debug.map +3 -3
  9. package/dist/shaka-player.compiled.externs.js +2 -1
  10. package/dist/shaka-player.compiled.js +1105 -1099
  11. package/dist/shaka-player.compiled.map +3 -3
  12. package/dist/shaka-player.ui.d.ts +13 -2
  13. package/dist/shaka-player.ui.debug.d.ts +13 -2
  14. package/dist/shaka-player.ui.debug.externs.js +3 -1
  15. package/dist/shaka-player.ui.debug.js +257 -256
  16. package/dist/shaka-player.ui.debug.map +3 -3
  17. package/dist/shaka-player.ui.externs.js +3 -1
  18. package/dist/shaka-player.ui.js +1229 -1223
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/lib/hls/hls_parser.js +14 -6
  21. package/lib/media/drm_engine.js +9 -0
  22. package/lib/mss/mss_parser.js +2 -0
  23. package/lib/offline/storage.js +4 -0
  24. package/lib/player.js +14 -3
  25. package/lib/polyfill/media_capabilities.js +23 -3
  26. package/lib/transmuxer/aac_transmuxer.js +2 -0
  27. package/lib/transmuxer/ac3_transmuxer.js +2 -0
  28. package/lib/transmuxer/ec3_transmuxer.js +2 -0
  29. package/lib/transmuxer/h264.js +28 -1
  30. package/lib/transmuxer/h265.js +25 -5
  31. package/lib/transmuxer/mp3_transmuxer.js +2 -0
  32. package/lib/transmuxer/ts_transmuxer.js +12 -0
  33. package/lib/util/cmcd_manager.js +13 -0
  34. package/lib/util/manifest_parser_utils.js +2 -0
  35. package/lib/util/mp4_generator.js +31 -2
  36. package/lib/util/stream_utils.js +2 -10
  37. package/lib/util/ts_parser.js +7 -4
  38. package/package.json +1 -1
  39. package/ui/externs/ui.js +24 -0
  40. package/ui/play_button.js +3 -0
package/AUTHORS CHANGED
@@ -60,6 +60,7 @@ Lucas Gabriel Sánchez <unkiwii@gmail.com>
60
60
  Martin Stark <martin.stark@eyevinn.se>
61
61
  Matthias Van Parijs <matvp91@gmail.com>
62
62
  Mattias Wadman <mattias.wadman@gmail.com>
63
+ Mirego <*@mirego.com>
63
64
  Mohamed Rashid <ge_rashid@hotmail.co.uk>
64
65
  Morten Hansen <mimo@mimo-design.com>
65
66
  Nick Desaulniers <nick@mozilla.com>
@@ -88,6 +89,7 @@ Swank Motion Pictures Inc. <*@swankmp.com>
88
89
  TalkTalk Plc <*@talktalkplc.com>
89
90
  Tatsiana Gelahova <tatsiana.gelahova@gmail.com>
90
91
  Tian Shao <tyrelltle@gmail.com>
92
+ Thomas Champion <thchampi@gmail.com>
91
93
  Tomas Tichy <mr.tichyt@gmail.com>
92
94
  Tomohiro Matsuzawa <thmatuza75@hotmail.com>
93
95
  Toshihiro Suzuki <t.suzuki326@gmail.com>
package/CONTRIBUTORS CHANGED
@@ -88,6 +88,7 @@ Loïc Raux <loicraux@gmail.com>
88
88
  Lucas Gabriel Sánchez <unkiwii@gmail.com>
89
89
  Martin Stark <martin.stark@eyevinn.se>
90
90
  Matias Russitto <russitto@gmail.com>
91
+ Mathieu Côté <mcote@mirego.com>
91
92
  Matthias Van Parijs <matvp91@gmail.com>
92
93
  Mattias Wadman <mattias.wadman@gmail.com>
93
94
  Michelle Zhuo <michellezhuo@google.com>
@@ -128,6 +129,7 @@ Thomas Stephens <thomas@ustudio.com>
128
129
  Tian Shao <tyrelltle@gmail.com>
129
130
  Tim Plummer <objelisks@google.com>
130
131
  Timothy Drews <tdrews@google.com>
132
+ Thomas Champion <thchampi@gmail.com>
131
133
  Tomas Bucher <collapsingtesseract@gmail.com>
132
134
  Tomas Tichy <mr.tichyt@gmail.com>
133
135
  Tomohiro Matsuzawa <thmatuza75@hotmail.com>
package/dist/locales.js CHANGED
@@ -724,46 +724,46 @@ shaka.ui.Locales.addTo = function(localization) {
724
724
  * @const
725
725
  */
726
726
  shaka.ui.Locales.Ids = {
727
- SEEK: 'SEEK',
728
- AD_PROGRESS: 'AD_PROGRESS',
729
- CAST: 'CAST',
730
- SKIP_AD: 'SKIP_AD',
727
+ AUTO_QUALITY: 'AUTO_QUALITY',
728
+ ON: 'ON',
729
+ MUTE: 'MUTE',
731
730
  FULL_SCREEN: 'FULL_SCREEN',
732
- SURROUND: 'SURROUND',
731
+ MORE_SETTINGS: 'MORE_SETTINGS',
732
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
733
+ SEEK: 'SEEK',
733
734
  UNMUTE: 'UNMUTE',
735
+ FAST_FORWARD: 'FAST_FORWARD',
736
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
737
+ LOOP: 'LOOP',
738
+ REPLAY: 'REPLAY',
739
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
740
+ PLAY: 'PLAY',
734
741
  AD_TIME: 'AD_TIME',
735
- AUTO_QUALITY: 'AUTO_QUALITY',
736
- STATISTICS: 'STATISTICS',
737
- OFF: 'OFF',
742
+ AIRPLAY: 'AIRPLAY',
743
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
744
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
745
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
738
746
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
747
+ PAUSE: 'PAUSE',
739
748
  NOT_APPLICABLE: 'NOT_APPLICABLE',
740
- RESOLUTION: 'RESOLUTION',
741
- REPLAY: 'REPLAY',
742
- PLAY: 'PLAY',
743
- QUALITY: 'QUALITY',
744
749
  VOLUME: 'VOLUME',
750
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
751
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
745
752
  BACK: 'BACK',
746
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
747
- FAST_FORWARD: 'FAST_FORWARD',
748
- LOOP: 'LOOP',
753
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
754
+ CAST: 'CAST',
755
+ STATISTICS: 'STATISTICS',
756
+ SKIP_AD: 'SKIP_AD',
749
757
  AD_DURATION: 'AD_DURATION',
750
- PAUSE: 'PAUSE',
751
- MORE_SETTINGS: 'MORE_SETTINGS',
752
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
753
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
754
- ON: 'ON',
755
- MUTE: 'MUTE',
756
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
757
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
758
- AIRPLAY: 'AIRPLAY',
759
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
760
- CAPTIONS: 'CAPTIONS',
758
+ QUALITY: 'QUALITY',
759
+ SURROUND: 'SURROUND',
761
760
  LANGUAGE: 'LANGUAGE',
762
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
761
+ AD_PROGRESS: 'AD_PROGRESS',
763
762
  LIVE: 'LIVE',
763
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
764
764
  REWIND: 'REWIND',
765
- PLAYBACK_RATE: 'PLAYBACK_RATE',
766
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
767
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
768
765
  EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
766
+ CAPTIONS: 'CAPTIONS',
767
+ OFF: 'OFF',
768
+ RESOLUTION: 'RESOLUTION',
769
769
  };
@@ -3601,7 +3601,7 @@ declare namespace shaka.util {
3601
3601
  * The code is based on hls.js
3602
3602
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
3603
3603
  */
3604
- parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
3604
+ parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
3605
3605
  static Timescale : number ;
3606
3606
  /**
3607
3607
  * Check if the passed data corresponds to an MPEG2-TS
@@ -3601,7 +3601,7 @@ declare namespace shaka.util {
3601
3601
  * The code is based on hls.js
3602
3602
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
3603
3603
  */
3604
- parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
3604
+ parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
3605
3605
  static Timescale : number ;
3606
3606
  /**
3607
3607
  * Check if the passed data corresponds to an MPEG2-TS
@@ -2242,9 +2242,10 @@ shaka.util.TsParser = class {
2242
2242
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
2243
2243
  * @param {shaka.extern.MPEG_PES} pes
2244
2244
  * @param {?shaka.extern.VideoNalu=} lastNalu
2245
+ * @param {?number=} lastState
2245
2246
  * @return {!Array.<shaka.extern.VideoNalu>}
2246
2247
  */
2247
- parseNalus(pes, lastNalu) {}
2248
+ parseNalus(pes, lastNalu, lastState) {}
2248
2249
  /**
2249
2250
  * Return the ID3 metadata
2250
2251
  * @return {!Array.<shaka.extern.ID3Metadata>}