shaka-player 3.2.9 → 3.2.12
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/.github/workflows/build-and-test.yaml +67 -15
- package/.github/workflows/compute-incremental-coverage.py +251 -0
- package/.github/workflows/report-incremental-coverage.yaml +39 -0
- package/.github/workflows/selenium-lab-tests.yaml +179 -31
- package/CHANGELOG.md +34 -0
- package/CONTRIBUTORS +2 -0
- package/README.md +20 -6
- package/demo/index.html +0 -2
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/deps.js +2 -2
- package/dist/locales.js +29 -29
- package/dist/shaka-player.compiled.d.ts +12 -1
- package/dist/shaka-player.compiled.debug.d.ts +12 -1
- package/dist/shaka-player.compiled.debug.externs.js +49 -38
- package/dist/shaka-player.compiled.debug.js +105 -96
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +49 -38
- package/dist/shaka-player.compiled.js +759 -755
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +12 -1
- package/dist/shaka-player.ui.debug.d.ts +12 -1
- package/dist/shaka-player.ui.debug.externs.js +49 -38
- package/dist/shaka-player.ui.debug.js +119 -110
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +49 -38
- package/dist/shaka-player.ui.js +866 -863
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/welcome.md +6 -3
- package/karma.conf.js +3 -11
- package/lib/dash/dash_parser.js +5 -0
- package/lib/hls/hls_parser.js +6 -2
- package/lib/media/drm_engine.js +1 -1
- package/lib/media/presentation_timeline.js +24 -1
- package/lib/media/streaming_engine.js +1 -0
- package/lib/player.js +7 -6
- package/lib/polyfill/media_capabilities.js +3 -0
- package/lib/polyfill/videoplaybackquality.js +3 -1
- package/lib/text/cue.js +0 -5
- package/lib/text/simple_text_displayer.js +21 -9
- package/lib/text/ui_text_displayer.js +91 -19
- package/lib/util/buffer_utils.js +3 -0
- package/lib/util/object_utils.js +1 -0
- package/lib/util/platform.js +41 -1
- package/lib/util/stream_utils.js +23 -3
- package/lib/util/string_utils.js +102 -13
- package/maintained-branches.md +15 -0
- package/package.json +3 -5
- package/test/player_src_equals_integration.js +2 -0
- package/test/test/assets/small.mp4 +0 -0
- package/test/text/simple_text_displayer_unit.js +27 -0
- package/test/text/ui_text_displayer_unit.js +65 -0
- package/test/util/string_utils_unit.js +46 -8
- package/ui/less/ad_controls.less +4 -0
- package/app-engine/README.md +0 -9
- package/app-engine/demo-version-index/README.md +0 -14
- package/app-engine/demo-version-index/app.yaml +0 -2
- package/app-engine/demo-version-index/main.py +0 -162
- package/app-engine/demo-version-index/requirements.txt +0 -6
- package/app-engine/demo-version-index/templates/index.html +0 -114
- package/app-engine/shaka-player-demo/README.md +0 -18
- package/app-engine/shaka-player-demo/app.yaml +0 -61
- package/app-engine/shaka-player-demo/main.py +0 -95
- package/app-engine/shaka-player-demo/posters/10yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/10yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/1yo.jpg +0 -0
- package/app-engine/shaka-player-demo/posters/2yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/2yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/3yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/3yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/4yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/4yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/5yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/5yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/6yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/6yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/7yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/7yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/8yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/8yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/9yo.png +0 -0
- package/app-engine/shaka-player-demo/posters/9yo.xcf +0 -0
- package/app-engine/shaka-player-demo/posters/audioOnly.gif +0 -0
- package/app-engine/shaka-player-demo/posters/audioRickRoll.gif +0 -0
- package/app-engine/shaka-player-demo/posters/colorbars.gif +0 -0
- package/app-engine/shaka-player-demo/posters/fireworks.jpg +0 -0
- package/app-engine/shaka-player-demo/posters/party-hat.png +0 -0
- package/app-engine/shaka-player-demo/posters/sources.txt +0 -46
- package/app-engine/shaka-player-demo/posters/standard.png +0 -0
- package/app-engine/shaka-player-demo/posters/trek.jpg +0 -0
- package/app-engine/shaka-player-demo/posters/valentines.png +0 -0
- package/app-engine/shaka-player-demo/posters/zombie.jpg +0 -0
- package/app-engine/shaka-player-demo/posters.py +0 -110
- package/app-engine/shaka-player-demo/requirements.txt +0 -5
- package/app-engine/shaka-player-demo/time.txt +0 -1
- package/build/README.md +0 -127
- package/build/__init__.py +0 -0
- package/build/all.py +0 -150
- package/build/apps.py +0 -186
- package/build/build.py +0 -392
- package/build/check.py +0 -354
- package/build/checkversion.py +0 -84
- package/build/compiler.py +0 -513
- package/build/conformance.textproto +0 -321
- package/build/docker/Dockerfile +0 -20
- package/build/docker/docker-compose.yml +0 -10
- package/build/docs.py +0 -54
- package/build/eslint-plugin-shaka-rules/arg-comment-spacing.js +0 -72
- package/build/eslint-plugin-shaka-rules/index.js +0 -24
- package/build/eslint-plugin-shaka-rules/package.json +0 -7
- package/build/eslint-plugin-shaka-rules/private.js +0 -109
- package/build/gendeps.py +0 -71
- package/build/generateExterns.js +0 -867
- package/build/generateLocalizations.py +0 -262
- package/build/generateTsDefs.py +0 -137
- package/build/install-linux-prereqs.sh +0 -136
- package/build/license-header +0 -5
- package/build/misspellings.txt +0 -38
- package/build/pixelsChanged.js +0 -35
- package/build/shaka-lab.yaml +0 -163
- package/build/shakaBuildHelpers.py +0 -356
- package/build/stats.py +0 -816
- package/build/subprocessWindowsPatch.py +0 -103
- package/build/test.py +0 -541
- package/build/types/ads +0 -8
- package/build/types/cast +0 -6
- package/build/types/cea +0 -13
- package/build/types/complete +0 -9
- package/build/types/core +0 -106
- package/build/types/dash +0 -8
- package/build/types/hls +0 -9
- package/build/types/manifests +0 -5
- package/build/types/networking +0 -6
- package/build/types/offline +0 -21
- package/build/types/polyfill +0 -19
- package/build/types/text +0 -11
- package/build/types/ui +0 -37
- package/build/updateScreenshots.py +0 -85
- package/build/wrapper.template.js +0 -52
|
@@ -441,7 +441,6 @@ shaka.text.Cue.prototype.direction;
|
|
|
441
441
|
shaka.text.Cue.prototype.endTime;
|
|
442
442
|
/**
|
|
443
443
|
* @override
|
|
444
|
-
* @type {string}
|
|
445
444
|
*/
|
|
446
445
|
shaka.text.Cue.prototype.payload;
|
|
447
446
|
/**
|
|
@@ -758,6 +757,7 @@ shaka.util.BufferUtils = class {
|
|
|
758
757
|
* @param {?BufferSource} arr1
|
|
759
758
|
* @param {?BufferSource} arr2
|
|
760
759
|
* @return {boolean}
|
|
760
|
+
* @suppress {strictMissingProperties}
|
|
761
761
|
*/
|
|
762
762
|
static equal(arr1, arr2) {}
|
|
763
763
|
/**
|
|
@@ -826,6 +826,43 @@ shaka.dependencies = class {
|
|
|
826
826
|
shaka.dependencies.Allowed = {
|
|
827
827
|
muxjs: 'muxjs'
|
|
828
828
|
};
|
|
829
|
+
/**
|
|
830
|
+
* A timer allows a single function to be executed at a later time or at
|
|
831
|
+
* regular intervals.
|
|
832
|
+
* @final
|
|
833
|
+
*/
|
|
834
|
+
shaka.util.Timer = class {
|
|
835
|
+
/**
|
|
836
|
+
* Create a new timer. A timer is committed to a single callback function.
|
|
837
|
+
* While there is no technical reason to do this, it is far easier to
|
|
838
|
+
* understand and use timers when they are connected to one functional idea.
|
|
839
|
+
* @param {function()} onTick
|
|
840
|
+
*/
|
|
841
|
+
constructor(onTick) {}
|
|
842
|
+
/**
|
|
843
|
+
* Have the timer call |onTick| now.
|
|
844
|
+
* @return {!shaka.util.Timer}
|
|
845
|
+
*/
|
|
846
|
+
tickNow() {}
|
|
847
|
+
/**
|
|
848
|
+
* Have the timer call |onTick| after |seconds| has elapsed unless |stop| is
|
|
849
|
+
* called first.
|
|
850
|
+
* @param {number} seconds
|
|
851
|
+
* @return {!shaka.util.Timer}
|
|
852
|
+
*/
|
|
853
|
+
tickAfter(seconds) {}
|
|
854
|
+
/**
|
|
855
|
+
* Have the timer call |onTick| every |seconds| until |stop| is called.
|
|
856
|
+
* @param {number} seconds
|
|
857
|
+
* @return {!shaka.util.Timer}
|
|
858
|
+
*/
|
|
859
|
+
tickEvery(seconds) {}
|
|
860
|
+
/**
|
|
861
|
+
* Stop the timer and clear the previous behaviour. The timer is still usable
|
|
862
|
+
* after calling |stop|.
|
|
863
|
+
*/
|
|
864
|
+
stop() {}
|
|
865
|
+
};
|
|
829
866
|
/**
|
|
830
867
|
* @namespace shaka.util.StringUtils
|
|
831
868
|
* @summary A set of string utility functions.
|
|
@@ -953,43 +990,6 @@ shaka.text.TextEngine = class {
|
|
|
953
990
|
*/
|
|
954
991
|
destroy() {}
|
|
955
992
|
};
|
|
956
|
-
/**
|
|
957
|
-
* A timer allows a single function to be executed at a later time or at
|
|
958
|
-
* regular intervals.
|
|
959
|
-
* @final
|
|
960
|
-
*/
|
|
961
|
-
shaka.util.Timer = class {
|
|
962
|
-
/**
|
|
963
|
-
* Create a new timer. A timer is committed to a single callback function.
|
|
964
|
-
* While there is no technical reason to do this, it is far easier to
|
|
965
|
-
* understand and use timers when they are connected to one functional idea.
|
|
966
|
-
* @param {function()} onTick
|
|
967
|
-
*/
|
|
968
|
-
constructor(onTick) {}
|
|
969
|
-
/**
|
|
970
|
-
* Have the timer call |onTick| now.
|
|
971
|
-
* @return {!shaka.util.Timer}
|
|
972
|
-
*/
|
|
973
|
-
tickNow() {}
|
|
974
|
-
/**
|
|
975
|
-
* Have the timer call |onTick| after |seconds| has elapsed unless |stop| is
|
|
976
|
-
* called first.
|
|
977
|
-
* @param {number} seconds
|
|
978
|
-
* @return {!shaka.util.Timer}
|
|
979
|
-
*/
|
|
980
|
-
tickAfter(seconds) {}
|
|
981
|
-
/**
|
|
982
|
-
* Have the timer call |onTick| every |seconds| until |stop| is called.
|
|
983
|
-
* @param {number} seconds
|
|
984
|
-
* @return {!shaka.util.Timer}
|
|
985
|
-
*/
|
|
986
|
-
tickEvery(seconds) {}
|
|
987
|
-
/**
|
|
988
|
-
* Stop the timer and clear the previous behaviour. The timer is still usable
|
|
989
|
-
* after calling |stop|.
|
|
990
|
-
*/
|
|
991
|
-
stop() {}
|
|
992
|
-
};
|
|
993
993
|
/**
|
|
994
994
|
* @summary
|
|
995
995
|
* <p>
|
|
@@ -1759,6 +1759,17 @@ shaka.media.PresentationTimeline = class {
|
|
|
1759
1759
|
* @param {!Array.<!shaka.media.SegmentReference>} references
|
|
1760
1760
|
*/
|
|
1761
1761
|
notifySegments(references) {}
|
|
1762
|
+
/**
|
|
1763
|
+
* Lock the presentation timeline's start time. After this is called, no
|
|
1764
|
+
* further adjustments to presentationStartTime_ will be permitted.
|
|
1765
|
+
* This should be called after all Periods have been parsed, and all calls to
|
|
1766
|
+
* notifySegments() from the initial manifest parse have been made.
|
|
1767
|
+
* Without this, we can get assertion failures in SegmentIndex for certain
|
|
1768
|
+
* DAI content. If DAI adds ad segments to the manifest faster than
|
|
1769
|
+
* real-time, adjustments to presentationStartTime_ can cause availability
|
|
1770
|
+
* windows to jump around on updates.
|
|
1771
|
+
*/
|
|
1772
|
+
lockStartTime() {}
|
|
1762
1773
|
/**
|
|
1763
1774
|
* Gives PresentationTimeline a Stream's minimum segment start time.
|
|
1764
1775
|
* @param {number} startTime
|