shaka-player 4.10.7 → 4.10.9
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/dist/locales.js +34 -34
- package/dist/shaka-player.compiled.d.ts +5 -0
- package/dist/shaka-player.compiled.debug.d.ts +5 -0
- package/dist/shaka-player.compiled.debug.externs.js +16 -0
- package/dist/shaka-player.compiled.debug.js +220 -217
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +16 -0
- package/dist/shaka-player.compiled.js +250 -246
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +5 -0
- package/dist/shaka-player.ui.debug.d.ts +5 -0
- package/dist/shaka-player.ui.debug.externs.js +16 -0
- package/dist/shaka-player.ui.debug.js +239 -236
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +16 -0
- package/dist/shaka-player.ui.js +346 -342
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/ads.js +5 -0
- package/externs/shaka/net.js +1 -0
- package/lib/ads/client_side_ad.js +8 -0
- package/lib/ads/interstitial_ad.js +7 -0
- package/lib/ads/interstitial_ad_manager.js +8 -6
- package/lib/ads/media_tailor_ad.js +7 -0
- package/lib/ads/server_side_ad.js +7 -0
- package/lib/dash/dash_parser.js +8 -4
- package/lib/hls/hls_parser.js +8 -2
- package/lib/media/adaptation_set.js +6 -0
- package/lib/media/streaming_engine.js +13 -16
- package/lib/player.js +6 -2
- package/lib/text/ui_text_displayer.js +37 -10
- package/lib/util/periods.js +1 -1
- package/lib/util/stream_utils.js +16 -8
- package/package.json +1 -1
- package/ui/seek_bar.js +1 -1
- package/ui/skip_ad_button.js +1 -1
package/dist/locales.js
CHANGED
|
@@ -771,50 +771,50 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
771
771
|
* @const
|
|
772
772
|
*/
|
|
773
773
|
shaka.ui.Locales.Ids = {
|
|
774
|
-
|
|
775
|
-
AD_TIME: 'AD_TIME',
|
|
776
|
-
AD_DURATION: 'AD_DURATION',
|
|
777
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
778
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
779
|
-
LOOP: 'LOOP',
|
|
780
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
774
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
781
775
|
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
782
|
-
MUTE: 'MUTE',
|
|
783
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
784
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
785
776
|
SURROUND: 'SURROUND',
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
777
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
778
|
+
STATISTICS: 'STATISTICS',
|
|
779
|
+
LOOP: 'LOOP',
|
|
780
|
+
OFF: 'OFF',
|
|
781
|
+
SEEK: 'SEEK',
|
|
789
782
|
PLAY: 'PLAY',
|
|
783
|
+
MUTE: 'MUTE',
|
|
784
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
785
|
+
BACK: 'BACK',
|
|
786
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
790
787
|
SKIP_AD: 'SKIP_AD',
|
|
788
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
789
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
790
|
+
CAPTIONS: 'CAPTIONS',
|
|
791
|
+
LIVE: 'LIVE',
|
|
791
792
|
PAUSE: 'PAUSE',
|
|
792
|
-
BACK: 'BACK',
|
|
793
|
-
REWIND: 'REWIND',
|
|
794
|
-
REPLAY: 'REPLAY',
|
|
795
|
-
LANGUAGE: 'LANGUAGE',
|
|
796
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
797
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
798
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
799
793
|
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
800
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
801
|
-
SEEK: 'SEEK',
|
|
802
794
|
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
803
|
-
|
|
804
|
-
LIVE: 'LIVE',
|
|
805
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
806
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
795
|
+
AD_TIME: 'AD_TIME',
|
|
807
796
|
UNMUTE: 'UNMUTE',
|
|
808
|
-
|
|
809
|
-
QUALITY: 'QUALITY',
|
|
797
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
810
798
|
RESOLUTION: 'RESOLUTION',
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
799
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
800
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
801
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
802
|
+
REWIND: 'REWIND',
|
|
803
|
+
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
804
|
+
AD_DURATION: 'AD_DURATION',
|
|
805
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
806
|
+
REPLAY: 'REPLAY',
|
|
807
|
+
ON: 'ON',
|
|
808
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
809
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
810
|
+
QUALITY: 'QUALITY',
|
|
811
|
+
LANGUAGE: 'LANGUAGE',
|
|
812
|
+
AIRPLAY: 'AIRPLAY',
|
|
814
813
|
CAST: 'CAST',
|
|
815
|
-
|
|
814
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
815
|
+
VOLUME: 'VOLUME',
|
|
816
816
|
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
817
|
-
|
|
817
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
818
818
|
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
819
|
-
|
|
819
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
820
820
|
};
|
|
@@ -754,6 +754,7 @@ declare namespace shaka.ads {
|
|
|
754
754
|
isMuted ( ) : any ;
|
|
755
755
|
isPaused ( ) : any ;
|
|
756
756
|
isSkippable ( ) : any ;
|
|
757
|
+
needsSkipUI ( ) : any ;
|
|
757
758
|
pause ( ) : any ;
|
|
758
759
|
play ( ) : any ;
|
|
759
760
|
release ( ) : any ;
|
|
@@ -791,6 +792,7 @@ declare namespace shaka.ads {
|
|
|
791
792
|
isMuted ( ) : any ;
|
|
792
793
|
isPaused ( ) : any ;
|
|
793
794
|
isSkippable ( ) : any ;
|
|
795
|
+
needsSkipUI ( ) : any ;
|
|
794
796
|
pause ( ) : any ;
|
|
795
797
|
play ( ) : any ;
|
|
796
798
|
release ( ) : any ;
|
|
@@ -828,6 +830,7 @@ declare namespace shaka.ads {
|
|
|
828
830
|
isMuted ( ) : any ;
|
|
829
831
|
isPaused ( ) : any ;
|
|
830
832
|
isSkippable ( ) : any ;
|
|
833
|
+
needsSkipUI ( ) : any ;
|
|
831
834
|
pause ( ) : any ;
|
|
832
835
|
play ( ) : any ;
|
|
833
836
|
release ( ) : any ;
|
|
@@ -865,6 +868,7 @@ declare namespace shaka.ads {
|
|
|
865
868
|
isMuted ( ) : any ;
|
|
866
869
|
isPaused ( ) : any ;
|
|
867
870
|
isSkippable ( ) : any ;
|
|
871
|
+
needsSkipUI ( ) : any ;
|
|
868
872
|
pause ( ) : any ;
|
|
869
873
|
play ( ) : any ;
|
|
870
874
|
release ( ) : any ;
|
|
@@ -4177,6 +4181,7 @@ declare namespace shaka.extern {
|
|
|
4177
4181
|
isMuted ( ) : boolean ;
|
|
4178
4182
|
isPaused ( ) : boolean ;
|
|
4179
4183
|
isSkippable ( ) : boolean ;
|
|
4184
|
+
needsSkipUI ( ) : boolean ;
|
|
4180
4185
|
pause ( ) : any ;
|
|
4181
4186
|
play ( ) : any ;
|
|
4182
4187
|
resize (width : number , height : number ) : any ;
|
|
@@ -754,6 +754,7 @@ declare namespace shaka.ads {
|
|
|
754
754
|
isMuted ( ) : any ;
|
|
755
755
|
isPaused ( ) : any ;
|
|
756
756
|
isSkippable ( ) : any ;
|
|
757
|
+
needsSkipUI ( ) : any ;
|
|
757
758
|
pause ( ) : any ;
|
|
758
759
|
play ( ) : any ;
|
|
759
760
|
release ( ) : any ;
|
|
@@ -791,6 +792,7 @@ declare namespace shaka.ads {
|
|
|
791
792
|
isMuted ( ) : any ;
|
|
792
793
|
isPaused ( ) : any ;
|
|
793
794
|
isSkippable ( ) : any ;
|
|
795
|
+
needsSkipUI ( ) : any ;
|
|
794
796
|
pause ( ) : any ;
|
|
795
797
|
play ( ) : any ;
|
|
796
798
|
release ( ) : any ;
|
|
@@ -828,6 +830,7 @@ declare namespace shaka.ads {
|
|
|
828
830
|
isMuted ( ) : any ;
|
|
829
831
|
isPaused ( ) : any ;
|
|
830
832
|
isSkippable ( ) : any ;
|
|
833
|
+
needsSkipUI ( ) : any ;
|
|
831
834
|
pause ( ) : any ;
|
|
832
835
|
play ( ) : any ;
|
|
833
836
|
release ( ) : any ;
|
|
@@ -865,6 +868,7 @@ declare namespace shaka.ads {
|
|
|
865
868
|
isMuted ( ) : any ;
|
|
866
869
|
isPaused ( ) : any ;
|
|
867
870
|
isSkippable ( ) : any ;
|
|
871
|
+
needsSkipUI ( ) : any ;
|
|
868
872
|
pause ( ) : any ;
|
|
869
873
|
play ( ) : any ;
|
|
870
874
|
release ( ) : any ;
|
|
@@ -4177,6 +4181,7 @@ declare namespace shaka.extern {
|
|
|
4177
4181
|
isMuted ( ) : boolean ;
|
|
4178
4182
|
isPaused ( ) : boolean ;
|
|
4179
4183
|
isSkippable ( ) : boolean ;
|
|
4184
|
+
needsSkipUI ( ) : boolean ;
|
|
4180
4185
|
pause ( ) : any ;
|
|
4181
4186
|
play ( ) : any ;
|
|
4182
4187
|
resize (width : number , height : number ) : any ;
|
|
@@ -3788,6 +3788,10 @@ shaka.ads.ClientSideAd = class {
|
|
|
3788
3788
|
* @param {HTMLMediaElement} video
|
|
3789
3789
|
*/
|
|
3790
3790
|
constructor(imaAd, imaAdManager, video) {}
|
|
3791
|
+
/**
|
|
3792
|
+
* @override
|
|
3793
|
+
*/
|
|
3794
|
+
needsSkipUI() {}
|
|
3791
3795
|
/**
|
|
3792
3796
|
* @override
|
|
3793
3797
|
*/
|
|
@@ -4103,6 +4107,10 @@ shaka.ads.InterstitialAd = class {
|
|
|
4103
4107
|
* @param {number} adPosition
|
|
4104
4108
|
*/
|
|
4105
4109
|
constructor(video, isSkippable, onSkip, sequenceLength, adPosition) {}
|
|
4110
|
+
/**
|
|
4111
|
+
* @override
|
|
4112
|
+
*/
|
|
4113
|
+
needsSkipUI() {}
|
|
4106
4114
|
/**
|
|
4107
4115
|
* @override
|
|
4108
4116
|
*/
|
|
@@ -4235,6 +4243,10 @@ shaka.ads.MediaTailorAd = class {
|
|
|
4235
4243
|
* @param {HTMLMediaElement} video
|
|
4236
4244
|
*/
|
|
4237
4245
|
constructor(mediaTailorAd, adPosition, totalAds, isLinear, video) {}
|
|
4246
|
+
/**
|
|
4247
|
+
* @override
|
|
4248
|
+
*/
|
|
4249
|
+
needsSkipUI() {}
|
|
4238
4250
|
/**
|
|
4239
4251
|
* @override
|
|
4240
4252
|
*/
|
|
@@ -4365,6 +4377,10 @@ shaka.ads.ServerSideAd = class {
|
|
|
4365
4377
|
* @param {HTMLMediaElement} video
|
|
4366
4378
|
*/
|
|
4367
4379
|
constructor(imaAd, video) {}
|
|
4380
|
+
/**
|
|
4381
|
+
* @override
|
|
4382
|
+
*/
|
|
4383
|
+
needsSkipUI() {}
|
|
4368
4384
|
/**
|
|
4369
4385
|
* @override
|
|
4370
4386
|
*/
|