shaka-player 4.7.3 → 4.7.4
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.
- package/README.md +3 -1
- package/dist/locales.js +34 -34
- package/dist/shaka-player.compiled.d.ts +4 -0
- package/dist/shaka-player.compiled.debug.d.ts +4 -0
- package/dist/shaka-player.compiled.debug.externs.js +5 -0
- package/dist/shaka-player.compiled.debug.js +72 -71
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +5 -0
- package/dist/shaka-player.compiled.js +674 -674
- package/dist/shaka-player.compiled.map +2 -2
- package/dist/shaka-player.ui.d.ts +4 -0
- package/dist/shaka-player.ui.debug.d.ts +4 -0
- package/dist/shaka-player.ui.debug.externs.js +5 -0
- package/dist/shaka-player.ui.debug.js +92 -90
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +5 -0
- package/dist/shaka-player.ui.js +795 -795
- package/dist/shaka-player.ui.map +2 -2
- package/lib/ads/client_side_ad.js +4 -2
- package/lib/ads/client_side_ad_manager.js +5 -3
- package/lib/cea/cea608_memory.js +1 -1
- package/lib/cea/cea_decoder.js +1 -1
- package/lib/hls/hls_parser.js +16 -0
- package/lib/media/media_source_engine.js +3 -3
- package/lib/media/presentation_timeline.js +11 -0
- package/lib/offline/session_deleter.js +0 -8
- package/lib/player.js +12 -6
- package/lib/polyfill/patchedmediakeys_apple.js +0 -6
- package/lib/text/vtt_text_parser.js +5 -0
- package/package.json +1 -1
- package/ui/play_button.js +17 -0
- package/ui/small_play_button.js +2 -2
package/README.md
CHANGED
|
@@ -303,7 +303,7 @@ Shaka Player supports:
|
|
|
303
303
|
|
|
304
304
|
|
|
305
305
|
## Content Steering support
|
|
306
|
-
Shaka Player supports Content Steering (v1) in DASH.
|
|
306
|
+
Shaka Player supports Content Steering (v1) in DASH and HLS.
|
|
307
307
|
|
|
308
308
|
Content Steering features supported:
|
|
309
309
|
- TTL, if missing, the default value is 300 seconds.
|
|
@@ -317,6 +317,8 @@ Content Steering features **not** supported:
|
|
|
317
317
|
## Documentation & Important Links ##
|
|
318
318
|
|
|
319
319
|
* [Demo](https://shaka-player-demo.appspot.com)([sources](demo/))
|
|
320
|
+
* [Nightly Demo](https://nightly-dot-shaka-player-demo.appspot.com)
|
|
321
|
+
* [Demo index](https://index-dot-shaka-player-demo.appspot.com)
|
|
320
322
|
* [API documentation](https://shaka-player-demo.appspot.com/docs/api/index.html)
|
|
321
323
|
* [Tutorials](https://shaka-player-demo.appspot.com/docs/api/tutorial-welcome.html)
|
|
322
324
|
* [Hosted builds on Google Hosted Libraries](https://developers.google.com/speed/libraries/#shaka-player)
|
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
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
PLAY: 'PLAY',
|
|
732
|
-
SEEK: 'SEEK',
|
|
733
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
734
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
735
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
727
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
728
|
+
STATISTICS: 'STATISTICS',
|
|
729
|
+
QUALITY: 'QUALITY',
|
|
730
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
736
731
|
UNMUTE: 'UNMUTE',
|
|
737
|
-
|
|
738
|
-
|
|
732
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
733
|
+
AD_DURATION: 'AD_DURATION',
|
|
734
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
735
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
736
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
739
737
|
SURROUND: 'SURROUND',
|
|
740
|
-
|
|
738
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
739
|
+
LIVE: 'LIVE',
|
|
740
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
741
|
+
RESOLUTION: 'RESOLUTION',
|
|
742
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
743
|
+
SEEK: 'SEEK',
|
|
744
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
745
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
746
|
+
MUTE: 'MUTE',
|
|
747
|
+
PAUSE: 'PAUSE',
|
|
748
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
749
|
+
CAPTIONS: 'CAPTIONS',
|
|
741
750
|
ON: 'ON',
|
|
742
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
743
|
-
OFF: 'OFF',
|
|
744
751
|
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
AD_DURATION: 'AD_DURATION',
|
|
752
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
753
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
748
754
|
AIRPLAY: 'AIRPLAY',
|
|
755
|
+
OFF: 'OFF',
|
|
756
|
+
PLAY: 'PLAY',
|
|
757
|
+
CAST: 'CAST',
|
|
749
758
|
LANGUAGE: 'LANGUAGE',
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
754
|
-
REPLAY: 'REPLAY',
|
|
759
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
760
|
+
REWIND: 'REWIND',
|
|
761
|
+
AD_TIME: 'AD_TIME',
|
|
755
762
|
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
756
|
-
|
|
757
|
-
VOLUME: 'VOLUME',
|
|
758
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
759
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
760
|
-
STATISTICS: 'STATISTICS',
|
|
761
|
-
LIVE: 'LIVE',
|
|
762
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
763
|
-
QUALITY: 'QUALITY',
|
|
764
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
765
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
766
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
767
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
763
|
+
LOOP: 'LOOP',
|
|
768
764
|
BACK: 'BACK',
|
|
765
|
+
REPLAY: 'REPLAY',
|
|
766
|
+
VOLUME: 'VOLUME',
|
|
767
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
768
|
+
SKIP_AD: 'SKIP_AD',
|
|
769
769
|
};
|
|
@@ -1101,6 +1101,10 @@ declare namespace shaka.media {
|
|
|
1101
1101
|
getSegmentAvailabilityStart ( ) : number ;
|
|
1102
1102
|
isInProgress ( ) : boolean ;
|
|
1103
1103
|
isLive ( ) : boolean ;
|
|
1104
|
+
/**
|
|
1105
|
+
* Returns if the presentation timeline's start time is locked.
|
|
1106
|
+
*/
|
|
1107
|
+
isStartTimeLocked ( ) : boolean ;
|
|
1104
1108
|
/**
|
|
1105
1109
|
* Lock the presentation timeline's start time. After this is called, no
|
|
1106
1110
|
* further adjustments to presentationStartTime_ will be permitted.
|
|
@@ -1101,6 +1101,10 @@ declare namespace shaka.media {
|
|
|
1101
1101
|
getSegmentAvailabilityStart ( ) : number ;
|
|
1102
1102
|
isInProgress ( ) : boolean ;
|
|
1103
1103
|
isLive ( ) : boolean ;
|
|
1104
|
+
/**
|
|
1105
|
+
* Returns if the presentation timeline's start time is locked.
|
|
1106
|
+
*/
|
|
1107
|
+
isStartTimeLocked ( ) : boolean ;
|
|
1104
1108
|
/**
|
|
1105
1109
|
* Lock the presentation timeline's start time. After this is called, no
|
|
1106
1110
|
* further adjustments to presentationStartTime_ will be permitted.
|
|
@@ -2420,6 +2420,11 @@ shaka.media.PresentationTimeline = class {
|
|
|
2420
2420
|
* windows to jump around on updates.
|
|
2421
2421
|
*/
|
|
2422
2422
|
lockStartTime() {}
|
|
2423
|
+
/**
|
|
2424
|
+
* Returns if the presentation timeline's start time is locked.
|
|
2425
|
+
* @return {boolean}
|
|
2426
|
+
*/
|
|
2427
|
+
isStartTimeLocked() {}
|
|
2423
2428
|
/**
|
|
2424
2429
|
* Gives PresentationTimeline a Stream's minimum segment start time.
|
|
2425
2430
|
* @param {number} startTime
|