shaka-player 4.12.1 → 4.12.2

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/.eslintrc.js CHANGED
@@ -84,6 +84,7 @@ module.exports = {
84
84
  'no-empty': ['error', {'allowEmptyCatch': true}],
85
85
  'no-misleading-character-class': 'error',
86
86
  'no-template-curly-in-string': 'error',
87
+ 'no-fallthrough': ['error', {'allowEmptyCase': true}],
87
88
  // TODO: Try to re-enable this if possible. Right now, it produces way too
88
89
  // many false-positives with eslint 7. It worked well enough in eslint 5.
89
90
  // 'require-atomic-updates': 'error',
package/AUTHORS CHANGED
@@ -32,6 +32,7 @@ Cristian Atehortua <cristian25a32@gmail.com>
32
32
  Damien Deis <developer.deis@gmail.com>
33
33
  Dany L'Hébreux <danylhebreux@gmail.com>
34
34
  Dave Nicholas <davenicholasuk@gmail.com>
35
+ David Pfister <pfisterdd10@gmail.com>
35
36
  Davide Zordan <mail@davide.dev>
36
37
  Dl Dador <dldador@gmail.com>
37
38
  Edgeware AB <*@edgeware.tv>
package/CONTRIBUTORS CHANGED
@@ -48,6 +48,7 @@ Cristian Atehortua <cristian25a32@gmail.com>
48
48
  Damien Deis <developer.deis@gmail.com>
49
49
  Dany L'Hébreux <danylhebreux@gmail.com>
50
50
  Dave Nicholas <davenicholasuk@gmail.com>
51
+ David Pfister <pfisterdd10@gmail.com>
51
52
  Davide Zordan <mail@davide.dev>
52
53
  Dl Dador <dldador@gmail.com>
53
54
  Donato Borrello <donato@jwplayer.com>
package/dist/locales.js CHANGED
@@ -913,50 +913,50 @@ shaka.ui.Locales.addTo = function(localization) {
913
913
  */
914
914
  shaka.ui.Locales.Ids = {
915
915
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
916
- RECENTER_VR: 'RECENTER_VR',
917
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
918
- AD_DURATION: 'AD_DURATION',
919
- AIRPLAY: 'AIRPLAY',
920
- PAUSE: 'PAUSE',
921
- AD_TIME: 'AD_TIME',
922
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
923
- NOT_APPLICABLE: 'NOT_APPLICABLE',
916
+ SEEK: 'SEEK',
924
917
  REPLAY: 'REPLAY',
925
- CAPTIONS: 'CAPTIONS',
918
+ STATISTICS: 'STATISTICS',
919
+ LOOP: 'LOOP',
920
+ MORE_SETTINGS: 'MORE_SETTINGS',
921
+ RESOLUTION: 'RESOLUTION',
926
922
  PLAY: 'PLAY',
927
- TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
923
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
924
+ FAST_FORWARD: 'FAST_FORWARD',
925
+ SURROUND: 'SURROUND',
926
+ AIRPLAY: 'AIRPLAY',
927
+ VOLUME: 'VOLUME',
928
928
  BACK: 'BACK',
929
+ MUTE: 'MUTE',
929
930
  PLAYBACK_RATE: 'PLAYBACK_RATE',
930
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
931
- MORE_SETTINGS: 'MORE_SETTINGS',
931
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
932
932
  AD_STATISTICS: 'AD_STATISTICS',
933
+ OFF: 'OFF',
934
+ QUALITY: 'QUALITY',
933
935
  AUTO_QUALITY: 'AUTO_QUALITY',
934
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
935
- CAST: 'CAST',
936
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
937
- LIVE: 'LIVE',
938
936
  LANGUAGE: 'LANGUAGE',
939
- RESOLUTION: 'RESOLUTION',
940
- FAST_FORWARD: 'FAST_FORWARD',
941
- OFF: 'OFF',
942
- SURROUND: 'SURROUND',
943
- UNMUTE: 'UNMUTE',
944
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
945
- SKIP_AD: 'SKIP_AD',
946
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
947
- STATISTICS: 'STATISTICS',
948
- AD_PROGRESS: 'AD_PROGRESS',
949
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
950
- MUTE: 'MUTE',
951
- ON: 'ON',
937
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
952
938
  CHAPTERS: 'CHAPTERS',
953
- VOLUME: 'VOLUME',
954
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
939
+ TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
940
+ SKIP_AD: 'SKIP_AD',
941
+ FULL_SCREEN: 'FULL_SCREEN',
942
+ PAUSE: 'PAUSE',
943
+ AD_TIME: 'AD_TIME',
944
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
945
+ LIVE: 'LIVE',
946
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
955
947
  DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
956
- LOOP: 'LOOP',
957
- SEEK: 'SEEK',
948
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
949
+ AD_DURATION: 'AD_DURATION',
958
950
  SKIP_TO_LIVE: 'SKIP_TO_LIVE',
959
- QUALITY: 'QUALITY',
960
- FULL_SCREEN: 'FULL_SCREEN',
951
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
952
+ ON: 'ON',
953
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
961
954
  REWIND: 'REWIND',
955
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
956
+ CAPTIONS: 'CAPTIONS',
957
+ CAST: 'CAST',
958
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
959
+ UNMUTE: 'UNMUTE',
960
+ RECENTER_VR: 'RECENTER_VR',
961
+ AD_PROGRESS: 'AD_PROGRESS',
962
962
  };
@@ -4058,6 +4058,13 @@ declare namespace shaka.extern {
4058
4058
  * whereas aborting only means that further work is stopped.
4059
4059
  */
4060
4060
  interface IAbortableOperation < T > {
4061
+ /**
4062
+ * A Promise which represents the underlying operation. It is resolved when
4063
+ * the operation is complete, and rejected if the operation fails or is
4064
+ * aborted. Aborted operations should be rejected with a shaka.util.Error
4065
+ * object using the error code OPERATION_ABORTED.
4066
+ */
4067
+ promise : Promise < T > ;
4061
4068
  /**
4062
4069
  * Can be called by anyone holding this object to abort the underlying
4063
4070
  * operation. This is not cancelation, and will not necessarily result in
@@ -4067,13 +4074,6 @@ declare namespace shaka.extern {
4067
4074
  */
4068
4075
  abort ( ) : Promise < any > ;
4069
4076
  finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
4070
- /**
4071
- * A Promise which represents the underlying operation. It is resolved when
4072
- * the operation is complete, and rejected if the operation fails or is
4073
- * aborted. Aborted operations should be rejected with a shaka.util.Error
4074
- * object using the error code OPERATION_ABORTED.
4075
- */
4076
- promise : Promise < T > ;
4077
4077
  }
4078
4078
  }
4079
4079
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
@@ -4058,6 +4058,13 @@ declare namespace shaka.extern {
4058
4058
  * whereas aborting only means that further work is stopped.
4059
4059
  */
4060
4060
  interface IAbortableOperation < T > {
4061
+ /**
4062
+ * A Promise which represents the underlying operation. It is resolved when
4063
+ * the operation is complete, and rejected if the operation fails or is
4064
+ * aborted. Aborted operations should be rejected with a shaka.util.Error
4065
+ * object using the error code OPERATION_ABORTED.
4066
+ */
4067
+ promise : Promise < T > ;
4061
4068
  /**
4062
4069
  * Can be called by anyone holding this object to abort the underlying
4063
4070
  * operation. This is not cancelation, and will not necessarily result in
@@ -4067,13 +4074,6 @@ declare namespace shaka.extern {
4067
4074
  */
4068
4075
  abort ( ) : Promise < any > ;
4069
4076
  finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
4070
- /**
4071
- * A Promise which represents the underlying operation. It is resolved when
4072
- * the operation is complete, and rejected if the operation fails or is
4073
- * aborted. Aborted operations should be rejected with a shaka.util.Error
4074
- * object using the error code OPERATION_ABORTED.
4075
- */
4076
- promise : Promise < T > ;
4077
4077
  }
4078
4078
  }
4079
4079
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js