shaka-player 4.3.6 → 4.3.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.
- package/.github/workflows/appspot.yaml +39 -0
- package/.github/workflows/demo-version-index.yaml +3 -3
- package/CHANGELOG.md +46 -0
- package/CONTRIBUTORS +1 -0
- package/README.md +3 -0
- package/demo/custom.js +1 -1
- package/demo/demo.less +1 -0
- package/dist/demo.compiled.debug.js +2 -2
- package/dist/demo.compiled.debug.map +2 -2
- package/dist/demo.compiled.js +2 -2
- package/dist/demo.compiled.map +2 -2
- package/dist/demo.css +1 -1
- package/dist/demo.css.map +1 -1
- package/dist/deps.js +1 -1
- package/dist/locales.js +33 -33
- package/dist/shaka-player.compiled.d.ts +30 -0
- package/dist/shaka-player.compiled.debug.d.ts +30 -0
- package/dist/shaka-player.compiled.debug.externs.js +9 -0
- package/dist/shaka-player.compiled.debug.js +263 -256
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +9 -0
- package/dist/shaka-player.compiled.js +901 -895
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +30 -0
- package/dist/shaka-player.ui.debug.d.ts +30 -0
- package/dist/shaka-player.ui.debug.externs.js +9 -0
- package/dist/shaka-player.ui.debug.js +268 -262
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +9 -0
- package/dist/shaka-player.ui.js +926 -920
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/drm-config.md +9 -6
- package/docs/tutorials/welcome.md +1 -1
- package/externs/ima.js +34 -0
- package/lib/abr/simple_abr_manager.js +1 -1
- package/lib/cea/mp4_cea_parser.js +29 -20
- package/lib/dash/dash_parser.js +18 -3
- package/lib/hls/hls_parser.js +66 -6
- package/lib/hls/manifest_text_parser.js +10 -1
- package/lib/media/drm_engine.js +23 -14
- package/lib/media/gap_jumping_controller.js +24 -2
- package/lib/media/media_source_engine.js +10 -6
- package/lib/media/playhead.js +11 -0
- package/lib/media/region_observer.js +19 -1
- package/lib/media/segment_reference.js +22 -0
- package/lib/media/streaming_engine.js +48 -23
- package/lib/media/video_wrapper.js +6 -1
- package/lib/player.js +16 -5
- package/lib/polyfill/abort_controller.js +7 -0
- package/lib/text/vtt_text_parser.js +2 -1
- package/lib/util/manifest_parser_utils.js +1 -1
- package/lib/util/stream_utils.js +1 -0
- package/package.json +9 -4
- package/test/cea/mp4_cea_parser_unit.js +45 -3
- package/test/dash/dash_parser_manifest_unit.js +120 -0
- package/test/hls/hls_live_unit.js +3 -1
- package/test/hls/hls_parser_unit.js +144 -0
- package/test/media/media_source_engine_unit.js +30 -0
- package/test/media/region_observer_unit.js +2 -1
- package/test/media/streaming_engine_unit.js +26 -2
- package/test/test/assets/h265-cea-init.mp4 +0 -0
- package/test/test/assets/h265-cea-segment.mp4 +0 -0
- package/test/test/assets/multiple-trun-init.mp4 +0 -0
- package/test/test/assets/multiple-trun-segment.mp4 +0 -0
- package/test/test/util/layout_tests.js +4 -3
- package/ui/resolution_selection.js +7 -1
|
@@ -1199,6 +1199,14 @@ declare namespace shaka.media {
|
|
|
1199
1199
|
* Creates and returns the URIs of the resource containing the segment.
|
|
1200
1200
|
*/
|
|
1201
1201
|
getUris ( ) : string [] ;
|
|
1202
|
+
/**
|
|
1203
|
+
* Returns true if the segment is preloaded.
|
|
1204
|
+
*/
|
|
1205
|
+
isPreload ( ) : boolean ;
|
|
1206
|
+
/**
|
|
1207
|
+
* Mark the reference as preload.
|
|
1208
|
+
*/
|
|
1209
|
+
markAsPreload ( ) : any ;
|
|
1202
1210
|
/**
|
|
1203
1211
|
* Mark the reference as unavailable.
|
|
1204
1212
|
*/
|
|
@@ -3615,6 +3623,28 @@ declare namespace google.ima {
|
|
|
3615
3623
|
}
|
|
3616
3624
|
}
|
|
3617
3625
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
|
|
3626
|
+
declare namespace google.ima.dai.api {
|
|
3627
|
+
enum OmidAccessMode {
|
|
3628
|
+
DOMAIN = 'domain' ,
|
|
3629
|
+
FULL = 'full' ,
|
|
3630
|
+
LIMITED = 'limited' ,
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
|
|
3634
|
+
declare namespace google.ima.dai.api {
|
|
3635
|
+
enum OmidVerificationVendor {
|
|
3636
|
+
COMSCORE = 7.0 ,
|
|
3637
|
+
DOUBLEVERIFY = 3.0 ,
|
|
3638
|
+
GOOGLE = 9.0 ,
|
|
3639
|
+
INTEGRAL_AD_SCIENCE = 4.0 ,
|
|
3640
|
+
MEETRICS = 8.0 ,
|
|
3641
|
+
MOAT = 2.0 ,
|
|
3642
|
+
NIELSEN = 6.0 ,
|
|
3643
|
+
OTHER = 1.0 ,
|
|
3644
|
+
PIXELATE = 5.0 ,
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
|
|
3618
3648
|
declare namespace google.ima.dai.api.StreamEvent {
|
|
3619
3649
|
enum Type {
|
|
3620
3650
|
AD_BREAK_ENDED = 'adBreakEnded' ,
|
|
@@ -1199,6 +1199,14 @@ declare namespace shaka.media {
|
|
|
1199
1199
|
* Creates and returns the URIs of the resource containing the segment.
|
|
1200
1200
|
*/
|
|
1201
1201
|
getUris ( ) : string [] ;
|
|
1202
|
+
/**
|
|
1203
|
+
* Returns true if the segment is preloaded.
|
|
1204
|
+
*/
|
|
1205
|
+
isPreload ( ) : boolean ;
|
|
1206
|
+
/**
|
|
1207
|
+
* Mark the reference as preload.
|
|
1208
|
+
*/
|
|
1209
|
+
markAsPreload ( ) : any ;
|
|
1202
1210
|
/**
|
|
1203
1211
|
* Mark the reference as unavailable.
|
|
1204
1212
|
*/
|
|
@@ -3615,6 +3623,28 @@ declare namespace google.ima {
|
|
|
3615
3623
|
}
|
|
3616
3624
|
}
|
|
3617
3625
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
|
|
3626
|
+
declare namespace google.ima.dai.api {
|
|
3627
|
+
enum OmidAccessMode {
|
|
3628
|
+
DOMAIN = 'domain' ,
|
|
3629
|
+
FULL = 'full' ,
|
|
3630
|
+
LIMITED = 'limited' ,
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
|
|
3634
|
+
declare namespace google.ima.dai.api {
|
|
3635
|
+
enum OmidVerificationVendor {
|
|
3636
|
+
COMSCORE = 7.0 ,
|
|
3637
|
+
DOUBLEVERIFY = 3.0 ,
|
|
3638
|
+
GOOGLE = 9.0 ,
|
|
3639
|
+
INTEGRAL_AD_SCIENCE = 4.0 ,
|
|
3640
|
+
MEETRICS = 8.0 ,
|
|
3641
|
+
MOAT = 2.0 ,
|
|
3642
|
+
NIELSEN = 6.0 ,
|
|
3643
|
+
OTHER = 1.0 ,
|
|
3644
|
+
PIXELATE = 5.0 ,
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
|
|
3618
3648
|
declare namespace google.ima.dai.api.StreamEvent {
|
|
3619
3649
|
enum Type {
|
|
3620
3650
|
AD_BREAK_ENDED = 'adBreakEnded' ,
|
|
@@ -1900,6 +1900,15 @@ shaka.media.SegmentReference = class {
|
|
|
1900
1900
|
* Mark the reference as unavailable.
|
|
1901
1901
|
*/
|
|
1902
1902
|
markAsUnavailable() {}
|
|
1903
|
+
/**
|
|
1904
|
+
* Mark the reference as preload.
|
|
1905
|
+
*/
|
|
1906
|
+
markAsPreload() {}
|
|
1907
|
+
/**
|
|
1908
|
+
* Returns true if the segment is preloaded.
|
|
1909
|
+
* @return {boolean}
|
|
1910
|
+
*/
|
|
1911
|
+
isPreload() {}
|
|
1903
1912
|
/**
|
|
1904
1913
|
* Set the segment's thumbnail sprite.
|
|
1905
1914
|
* @param {shaka.media.SegmentReference.ThumbnailSprite} thumbnailSprite
|