shaka-player 4.10.2 → 4.10.3
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/deps.js +2 -1
- package/dist/locales.js +33 -33
- package/dist/shaka-player.compiled.debug.externs.js +83 -83
- package/dist/shaka-player.compiled.debug.js +340 -339
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +83 -83
- package/dist/shaka-player.compiled.js +1089 -1086
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.debug.externs.js +83 -83
- package/dist/shaka-player.ui.debug.js +233 -232
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +83 -83
- package/dist/shaka-player.ui.js +1279 -1277
- package/dist/shaka-player.ui.map +4 -4
- package/lib/ads/interstitial_ad_manager.js +2 -1
- package/lib/media/media_source_engine.js +40 -1
- package/lib/media/segment_utils.js +7 -10
- package/lib/player.js +1 -1
- package/lib/text/cue.js +1 -117
- package/lib/text/cue_region.js +123 -0
- package/lib/text/ui_text_displayer.js +20 -3
- package/lib/util/mp4_box_parsers.js +42 -0
- package/lib/util/platform.js +16 -16
- package/package.json +1 -1
- package/ui/seek_bar.js +5 -6
|
@@ -881,6 +881,89 @@ shaka.media.ClosedCaptionParser = class {
|
|
|
881
881
|
*/
|
|
882
882
|
static findDecoder() {}
|
|
883
883
|
};
|
|
884
|
+
/**
|
|
885
|
+
*/
|
|
886
|
+
shaka.text.CueRegion = class {
|
|
887
|
+
/** */
|
|
888
|
+
constructor() {}
|
|
889
|
+
};
|
|
890
|
+
/**
|
|
891
|
+
* Region identifier.
|
|
892
|
+
* @type {string}
|
|
893
|
+
*/
|
|
894
|
+
shaka.text.CueRegion.prototype.id;
|
|
895
|
+
/**
|
|
896
|
+
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
897
|
+
* video width.
|
|
898
|
+
* @type {number}
|
|
899
|
+
*/
|
|
900
|
+
shaka.text.CueRegion.prototype.viewportAnchorX;
|
|
901
|
+
/**
|
|
902
|
+
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
903
|
+
* video height.
|
|
904
|
+
* @type {number}
|
|
905
|
+
*/
|
|
906
|
+
shaka.text.CueRegion.prototype.viewportAnchorY;
|
|
907
|
+
/**
|
|
908
|
+
* The X offset to start the rendering area in percentage (0-100) of this
|
|
909
|
+
* region width.
|
|
910
|
+
* @type {number}
|
|
911
|
+
*/
|
|
912
|
+
shaka.text.CueRegion.prototype.regionAnchorX;
|
|
913
|
+
/**
|
|
914
|
+
* The Y offset to start the rendering area in percentage (0-100) of the
|
|
915
|
+
* region height.
|
|
916
|
+
* @type {number}
|
|
917
|
+
*/
|
|
918
|
+
shaka.text.CueRegion.prototype.regionAnchorY;
|
|
919
|
+
/**
|
|
920
|
+
* The width of the rendering area in widthUnits.
|
|
921
|
+
* @type {number}
|
|
922
|
+
*/
|
|
923
|
+
shaka.text.CueRegion.prototype.width;
|
|
924
|
+
/**
|
|
925
|
+
* The width of the rendering area in heightUnits.
|
|
926
|
+
* @type {number}
|
|
927
|
+
*/
|
|
928
|
+
shaka.text.CueRegion.prototype.height;
|
|
929
|
+
/**
|
|
930
|
+
* The units (percentage, pixels or lines) the region height is in.
|
|
931
|
+
* @type {shaka.text.CueRegion.units}
|
|
932
|
+
*/
|
|
933
|
+
shaka.text.CueRegion.prototype.heightUnits;
|
|
934
|
+
/**
|
|
935
|
+
* The units (percentage or pixels) the region width is in.
|
|
936
|
+
* @type {shaka.text.CueRegion.units}
|
|
937
|
+
*/
|
|
938
|
+
shaka.text.CueRegion.prototype.widthUnits;
|
|
939
|
+
/**
|
|
940
|
+
* The units (percentage or pixels) the region viewportAnchors are in.
|
|
941
|
+
* @type {shaka.text.CueRegion.units}
|
|
942
|
+
*/
|
|
943
|
+
shaka.text.CueRegion.prototype.viewportAnchorUnits;
|
|
944
|
+
/**
|
|
945
|
+
* If scroll=UP, it means that cues in the region will be added to the
|
|
946
|
+
* bottom of the region and will push any already displayed cues in the
|
|
947
|
+
* region up. Otherwise (scroll=NONE) cues will stay fixed at the location
|
|
948
|
+
* they were first painted in.
|
|
949
|
+
* @type {shaka.text.CueRegion.scrollMode}
|
|
950
|
+
*/
|
|
951
|
+
shaka.text.CueRegion.prototype.scroll;
|
|
952
|
+
/**
|
|
953
|
+
* @enum {number}
|
|
954
|
+
*/
|
|
955
|
+
shaka.text.CueRegion.units = {
|
|
956
|
+
'PX': 0,
|
|
957
|
+
'PERCENTAGE': 1,
|
|
958
|
+
'LINES': 2
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* @enum {string}
|
|
962
|
+
*/
|
|
963
|
+
shaka.text.CueRegion.scrollMode = {
|
|
964
|
+
'NONE': '',
|
|
965
|
+
'UP': 'up'
|
|
966
|
+
};
|
|
884
967
|
/**
|
|
885
968
|
*/
|
|
886
969
|
shaka.text.Cue = class {
|
|
@@ -1237,89 +1320,6 @@ shaka.text.Cue.textDecoration = {
|
|
|
1237
1320
|
'LINE_THROUGH': 'lineThrough',
|
|
1238
1321
|
'OVERLINE': 'overline'
|
|
1239
1322
|
};
|
|
1240
|
-
/**
|
|
1241
|
-
*/
|
|
1242
|
-
shaka.text.CueRegion = class {
|
|
1243
|
-
/** */
|
|
1244
|
-
constructor() {}
|
|
1245
|
-
};
|
|
1246
|
-
/**
|
|
1247
|
-
* Region identifier.
|
|
1248
|
-
* @type {string}
|
|
1249
|
-
*/
|
|
1250
|
-
shaka.text.CueRegion.prototype.id;
|
|
1251
|
-
/**
|
|
1252
|
-
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
1253
|
-
* video width.
|
|
1254
|
-
* @type {number}
|
|
1255
|
-
*/
|
|
1256
|
-
shaka.text.CueRegion.prototype.viewportAnchorX;
|
|
1257
|
-
/**
|
|
1258
|
-
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
1259
|
-
* video height.
|
|
1260
|
-
* @type {number}
|
|
1261
|
-
*/
|
|
1262
|
-
shaka.text.CueRegion.prototype.viewportAnchorY;
|
|
1263
|
-
/**
|
|
1264
|
-
* The X offset to start the rendering area in percentage (0-100) of this
|
|
1265
|
-
* region width.
|
|
1266
|
-
* @type {number}
|
|
1267
|
-
*/
|
|
1268
|
-
shaka.text.CueRegion.prototype.regionAnchorX;
|
|
1269
|
-
/**
|
|
1270
|
-
* The Y offset to start the rendering area in percentage (0-100) of the
|
|
1271
|
-
* region height.
|
|
1272
|
-
* @type {number}
|
|
1273
|
-
*/
|
|
1274
|
-
shaka.text.CueRegion.prototype.regionAnchorY;
|
|
1275
|
-
/**
|
|
1276
|
-
* The width of the rendering area in widthUnits.
|
|
1277
|
-
* @type {number}
|
|
1278
|
-
*/
|
|
1279
|
-
shaka.text.CueRegion.prototype.width;
|
|
1280
|
-
/**
|
|
1281
|
-
* The width of the rendering area in heightUnits.
|
|
1282
|
-
* @type {number}
|
|
1283
|
-
*/
|
|
1284
|
-
shaka.text.CueRegion.prototype.height;
|
|
1285
|
-
/**
|
|
1286
|
-
* The units (percentage, pixels or lines) the region height is in.
|
|
1287
|
-
* @type {shaka.text.CueRegion.units}
|
|
1288
|
-
*/
|
|
1289
|
-
shaka.text.CueRegion.prototype.heightUnits;
|
|
1290
|
-
/**
|
|
1291
|
-
* The units (percentage or pixels) the region width is in.
|
|
1292
|
-
* @type {shaka.text.CueRegion.units}
|
|
1293
|
-
*/
|
|
1294
|
-
shaka.text.CueRegion.prototype.widthUnits;
|
|
1295
|
-
/**
|
|
1296
|
-
* The units (percentage or pixels) the region viewportAnchors are in.
|
|
1297
|
-
* @type {shaka.text.CueRegion.units}
|
|
1298
|
-
*/
|
|
1299
|
-
shaka.text.CueRegion.prototype.viewportAnchorUnits;
|
|
1300
|
-
/**
|
|
1301
|
-
* If scroll=UP, it means that cues in the region will be added to the
|
|
1302
|
-
* bottom of the region and will push any already displayed cues in the
|
|
1303
|
-
* region up. Otherwise (scroll=NONE) cues will stay fixed at the location
|
|
1304
|
-
* they were first painted in.
|
|
1305
|
-
* @type {shaka.text.CueRegion.scrollMode}
|
|
1306
|
-
*/
|
|
1307
|
-
shaka.text.CueRegion.prototype.scroll;
|
|
1308
|
-
/**
|
|
1309
|
-
* @enum {number}
|
|
1310
|
-
*/
|
|
1311
|
-
shaka.text.CueRegion.units = {
|
|
1312
|
-
'PX': 0,
|
|
1313
|
-
'PERCENTAGE': 1,
|
|
1314
|
-
'LINES': 2
|
|
1315
|
-
};
|
|
1316
|
-
/**
|
|
1317
|
-
* @enum {string}
|
|
1318
|
-
*/
|
|
1319
|
-
shaka.text.CueRegion.scrollMode = {
|
|
1320
|
-
'NONE': '',
|
|
1321
|
-
'UP': 'up'
|
|
1322
|
-
};
|
|
1323
1323
|
/**
|
|
1324
1324
|
* An interface to standardize how objects are destroyed.
|
|
1325
1325
|
* @interface
|