shaka-player 4.10.2 → 4.10.4
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 +5 -4
- package/dist/locales.js +36 -36
- package/dist/shaka-player.compiled.debug.externs.js +83 -83
- package/dist/shaka-player.compiled.debug.js +399 -396
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +83 -83
- package/dist/shaka-player.compiled.js +1100 -1097
- 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 +410 -407
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +83 -83
- package/dist/shaka-player.ui.js +1219 -1217
- package/dist/shaka-player.ui.map +4 -4
- package/lib/ads/interstitial_ad_manager.js +5 -4
- package/lib/hls/hls_parser.js +24 -14
- package/lib/media/media_source_engine.js +40 -1
- package/lib/media/playhead.js +15 -6
- package/lib/media/segment_utils.js +48 -10
- package/lib/media/streaming_engine.js +12 -62
- package/lib/player.js +12 -8
- 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 +35 -16
- package/lib/util/stream_utils.js +4 -2
- package/package.json +1 -1
- package/ui/seek_bar.js +5 -6
package/dist/deps.js
CHANGED
|
@@ -80,7 +80,7 @@ goog.addDependency('../../../../lib/media/media_source_capabilities.js', ['shaka
|
|
|
80
80
|
goog.addDependency('../../../../lib/media/media_source_engine.js', ['shaka.media.MediaSourceEngine'], ['goog.asserts', 'shaka.config.CodecSwitchingStrategy', 'shaka.lcevc.Dec', 'shaka.log', 'shaka.media.Capabilities', 'shaka.media.ClosedCaptionParser', 'shaka.media.ContentWorkarounds', 'shaka.media.IClosedCaptionParser', 'shaka.media.ManifestParser', 'shaka.media.SegmentReference', 'shaka.media.TimeRangesUtils', 'shaka.text.TextEngine', 'shaka.transmuxer.TransmuxerEngine', 'shaka.util.BufferUtils', 'shaka.util.Destroyer', 'shaka.util.Error', 'shaka.util.EventManager', 'shaka.util.Functional', 'shaka.util.IDestroyable', 'shaka.util.Id3Utils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.Platform', 'shaka.util.PublicPromise', 'shaka.util.StreamUtils', 'shaka.util.TsParser'], {'lang': 'es8'});
|
|
81
81
|
goog.addDependency('../../../../lib/media/mp4_segment_index_parser.js', ['shaka.media.Mp4SegmentIndexParser'], ['goog.asserts', 'shaka.log', 'shaka.media.InitSegmentReference', 'shaka.media.SegmentReference', 'shaka.util.Error', 'shaka.util.Mp4Parser'], {'lang': 'es6'});
|
|
82
82
|
goog.addDependency('../../../../lib/media/play_rate_controller.js', ['shaka.media.PlayRateController'], ['goog.asserts', 'shaka.log', 'shaka.util.IReleasable', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
83
|
-
goog.addDependency('../../../../lib/media/playhead.js', ['shaka.media.MediaSourcePlayhead', 'shaka.media.Playhead', 'shaka.media.SrcEqualsPlayhead'], ['goog.asserts', 'shaka.log', 'shaka.media.GapJumpingController', 'shaka.media.StallDetector', 'shaka.media.StallDetector.MediaElementImplementation', 'shaka.media.TimeRangesUtils', 'shaka.media.VideoWrapper', 'shaka.util.EventManager', 'shaka.util.IReleasable', 'shaka.util.MediaReadyState', 'shaka.util.Timer'], {'lang': 'es8'});
|
|
83
|
+
goog.addDependency('../../../../lib/media/playhead.js', ['shaka.media.MediaSourcePlayhead', 'shaka.media.Playhead', 'shaka.media.SrcEqualsPlayhead'], ['goog.asserts', 'shaka.log', 'shaka.media.GapJumpingController', 'shaka.media.StallDetector', 'shaka.media.StallDetector.MediaElementImplementation', 'shaka.media.TimeRangesUtils', 'shaka.media.VideoWrapper', 'shaka.util.EventManager', 'shaka.util.IReleasable', 'shaka.util.MediaReadyState', 'shaka.util.Platform', 'shaka.util.Timer'], {'lang': 'es8'});
|
|
84
84
|
goog.addDependency('../../../../lib/media/playhead_observer.js', ['shaka.media.IPlayheadObserver', 'shaka.media.PlayheadObserverManager'], ['shaka.util.IReleasable', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
85
85
|
goog.addDependency('../../../../lib/media/preload_manager.js', ['shaka.media.PreloadManager'], ['goog.asserts', 'shaka.log', 'shaka.media.AdaptationSetCriteria', 'shaka.media.DrmEngine', 'shaka.media.ManifestFilterer', 'shaka.media.ManifestParser', 'shaka.media.PreferenceBasedCriteria', 'shaka.media.QualityObserver', 'shaka.media.RegionTimeline', 'shaka.media.SegmentPrefetch', 'shaka.media.SegmentPrefetch', 'shaka.media.StreamingEngine', 'shaka.net.NetworkingEngine', 'shaka.util.ConfigUtils', 'shaka.util.Error', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget', 'shaka.util.IDestroyable', 'shaka.util.ObjectUtils', 'shaka.util.PlayerConfiguration', 'shaka.util.PublicPromise', 'shaka.util.Stats', 'shaka.util.StreamUtils'], {'lang': 'es8'});
|
|
86
86
|
goog.addDependency('../../../../lib/media/presentation_timeline.js', ['shaka.media.PresentationTimeline'], ['goog.asserts', 'shaka.log', 'shaka.media.SegmentReference'], {'lang': 'es6'});
|
|
@@ -90,9 +90,9 @@ goog.addDependency('../../../../lib/media/region_timeline.js', ['shaka.media.Reg
|
|
|
90
90
|
goog.addDependency('../../../../lib/media/segment_index.js', ['shaka.media.MetaSegmentIndex', 'shaka.media.SegmentIndex', 'shaka.media.SegmentIterator'], ['goog.asserts', 'shaka.log', 'shaka.media.SegmentReference', 'shaka.util.IReleasable', 'shaka.util.Timer'], {'lang': 'es8'});
|
|
91
91
|
goog.addDependency('../../../../lib/media/segment_prefetch.js', ['shaka.media.SegmentPrefetch'], ['goog.asserts', 'shaka.log', 'shaka.media.InitSegmentReference', 'shaka.media.SegmentIterator', 'shaka.media.SegmentReference', 'shaka.net.NetworkingEngine', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es8'});
|
|
92
92
|
goog.addDependency('../../../../lib/media/segment_reference.js', ['shaka.media.InitSegmentReference', 'shaka.media.SegmentReference'], ['goog.asserts', 'shaka.log', 'shaka.util.ArrayUtils', 'shaka.util.BufferUtils'], {'lang': 'es6'});
|
|
93
|
-
goog.addDependency('../../../../lib/media/segment_utils.js', ['shaka.media.SegmentUtils'], ['goog.asserts', 'shaka.log', 'shaka.media.Capabilities', 'shaka.media.ClosedCaptionParser', 'shaka.util.BufferUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.TsParser'], {'lang': '
|
|
93
|
+
goog.addDependency('../../../../lib/media/segment_utils.js', ['shaka.media.SegmentUtils'], ['goog.asserts', 'shaka.log', 'shaka.media.Capabilities', 'shaka.media.ClosedCaptionParser', 'shaka.util.BufferUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.TsParser'], {'lang': 'es8'});
|
|
94
94
|
goog.addDependency('../../../../lib/media/stall_detector.js', ['shaka.media.StallDetector', 'shaka.media.StallDetector.Implementation', 'shaka.media.StallDetector.MediaElementImplementation'], ['shaka.media.TimeRangesUtils', 'shaka.util.FakeEvent', 'shaka.util.IReleasable'], {'lang': 'es6'});
|
|
95
|
-
goog.addDependency('../../../../lib/media/streaming_engine.js', ['shaka.media.StreamingEngine'], ['goog.asserts', 'shaka.log', 'shaka.media.InitSegmentReference', 'shaka.media.ManifestParser', 'shaka.media.MediaSourceEngine', 'shaka.media.SegmentIterator', 'shaka.media.SegmentPrefetch', 'shaka.media.SegmentReference', 'shaka.
|
|
95
|
+
goog.addDependency('../../../../lib/media/streaming_engine.js', ['shaka.media.StreamingEngine'], ['goog.asserts', 'shaka.log', 'shaka.media.InitSegmentReference', 'shaka.media.ManifestParser', 'shaka.media.MediaSourceEngine', 'shaka.media.SegmentIterator', 'shaka.media.SegmentPrefetch', 'shaka.media.SegmentReference', 'shaka.media.SegmentUtils', 'shaka.net.Backoff', 'shaka.net.NetworkingEngine', 'shaka.util.DelayedTick', 'shaka.util.Destroyer', 'shaka.util.Error', 'shaka.util.FakeEvent', 'shaka.util.IDestroyable', 'shaka.util.Id3Utils', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.Networking'], {'lang': 'es8'});
|
|
96
96
|
goog.addDependency('../../../../lib/media/time_ranges_utils.js', ['shaka.media.TimeRangesUtils'], [], {'lang': 'es6'});
|
|
97
97
|
goog.addDependency('../../../../lib/media/video_wrapper.js', ['shaka.media.VideoWrapper', 'shaka.media.VideoWrapper.PlayheadMover'], ['goog.asserts', 'shaka.log', 'shaka.util.EventManager', 'shaka.util.IReleasable', 'shaka.util.MediaReadyState', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
98
98
|
goog.addDependency('../../../../lib/media/webm_segment_index_parser.js', ['shaka.media.WebmSegmentIndexParser'], ['goog.asserts', 'shaka.log', 'shaka.media.InitSegmentReference', 'shaka.media.SegmentReference', 'shaka.util.EbmlElement', 'shaka.util.EbmlParser', 'shaka.util.Error'], {'lang': 'es6'});
|
|
@@ -144,7 +144,8 @@ goog.addDependency('../../../../lib/polyfill/symbol.js', ['shaka.polyfill.Symbol
|
|
|
144
144
|
goog.addDependency('../../../../lib/polyfill/video_play_promise.js', ['shaka.polyfill.VideoPlayPromise'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
|
|
145
145
|
goog.addDependency('../../../../lib/polyfill/videoplaybackquality.js', ['shaka.polyfill.VideoPlaybackQuality'], ['shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es6'});
|
|
146
146
|
goog.addDependency('../../../../lib/polyfill/vttcue.js', ['shaka.polyfill.VTTCue'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
|
|
147
|
-
goog.addDependency('../../../../lib/text/cue.js', ['shaka.text.Cue', 'shaka.text.CueRegion'
|
|
147
|
+
goog.addDependency('../../../../lib/text/cue.js', ['shaka.text.Cue'], ['shaka.text.CueRegion', 'shaka.util.ArrayUtils'], {'lang': 'es6'});
|
|
148
|
+
goog.addDependency('../../../../lib/text/cue_region.js', ['shaka.text.CueRegion'], [], {'lang': 'es6'});
|
|
148
149
|
goog.addDependency('../../../../lib/text/lrc_text_parser.js', ['shaka.text.LrcTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
|
149
150
|
goog.addDependency('../../../../lib/text/mp4_ttml_parser.js', ['shaka.text.Mp4TtmlParser'], ['shaka.text.TextEngine', 'shaka.text.TtmlTextParser', 'shaka.util.Error', 'shaka.util.Mp4Parser'], {'lang': 'es6'});
|
|
150
151
|
goog.addDependency('../../../../lib/text/mp4_vtt_parser.js', ['shaka.text.Mp4VttParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.text.VttTextParser', 'shaka.util.DataViewReader', 'shaka.util.Error', 'shaka.util.Functional', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.StringUtils', 'shaka.util.TextParser'], {'lang': 'es6'});
|
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
|
-
|
|
774
|
+
LANGUAGE: 'LANGUAGE',
|
|
775
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
775
776
|
SKIP_AD: 'SKIP_AD',
|
|
776
|
-
|
|
777
|
-
LOOP: 'LOOP',
|
|
778
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
779
|
-
QUALITY: 'QUALITY',
|
|
780
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
781
|
-
UNMUTE: 'UNMUTE',
|
|
777
|
+
CAPTIONS: 'CAPTIONS',
|
|
782
778
|
RECENTER_VR: 'RECENTER_VR',
|
|
783
|
-
|
|
784
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
785
|
-
SEEK: 'SEEK',
|
|
786
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
787
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
788
|
-
BACK: 'BACK',
|
|
789
|
-
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
790
|
-
AD_DURATION: 'AD_DURATION',
|
|
791
|
-
PLAY: 'PLAY',
|
|
792
|
-
MUTE: 'MUTE',
|
|
779
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
793
780
|
AD_TIME: 'AD_TIME',
|
|
794
|
-
|
|
795
|
-
|
|
781
|
+
BACK: 'BACK',
|
|
782
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
783
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
784
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
796
785
|
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
797
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
798
|
-
LANGUAGE: 'LANGUAGE',
|
|
799
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
800
|
-
RESOLUTION: 'RESOLUTION',
|
|
801
786
|
CAST: 'CAST',
|
|
787
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
788
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
789
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
790
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
802
791
|
SURROUND: 'SURROUND',
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
806
|
-
CAPTIONS: 'CAPTIONS',
|
|
792
|
+
RESOLUTION: 'RESOLUTION',
|
|
793
|
+
PLAY: 'PLAY',
|
|
807
794
|
OFF: 'OFF',
|
|
808
|
-
VOLUME: 'VOLUME',
|
|
809
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
810
795
|
AD_PROGRESS: 'AD_PROGRESS',
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
796
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
797
|
+
AIRPLAY: 'AIRPLAY',
|
|
798
|
+
AD_DURATION: 'AD_DURATION',
|
|
799
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
800
|
+
QUALITY: 'QUALITY',
|
|
801
|
+
LOOP: 'LOOP',
|
|
802
|
+
REWIND: 'REWIND',
|
|
803
|
+
ON: 'ON',
|
|
804
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
805
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
818
806
|
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
807
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
808
|
+
VOLUME: 'VOLUME',
|
|
809
|
+
SEEK: 'SEEK',
|
|
810
|
+
REPLAY: 'REPLAY',
|
|
811
|
+
MUTE: 'MUTE',
|
|
812
|
+
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
813
|
+
UNMUTE: 'UNMUTE',
|
|
814
|
+
PAUSE: 'PAUSE',
|
|
815
|
+
STATISTICS: 'STATISTICS',
|
|
816
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
819
817
|
FULL_SCREEN: 'FULL_SCREEN',
|
|
818
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
819
|
+
LIVE: 'LIVE',
|
|
820
820
|
};
|
|
@@ -214,6 +214,89 @@ shaka.media.ClosedCaptionParser = class {
|
|
|
214
214
|
*/
|
|
215
215
|
static findDecoder() {}
|
|
216
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
*/
|
|
219
|
+
shaka.text.CueRegion = class {
|
|
220
|
+
/** */
|
|
221
|
+
constructor() {}
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Region identifier.
|
|
225
|
+
* @type {string}
|
|
226
|
+
*/
|
|
227
|
+
shaka.text.CueRegion.prototype.id;
|
|
228
|
+
/**
|
|
229
|
+
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
230
|
+
* video width.
|
|
231
|
+
* @type {number}
|
|
232
|
+
*/
|
|
233
|
+
shaka.text.CueRegion.prototype.viewportAnchorX;
|
|
234
|
+
/**
|
|
235
|
+
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
236
|
+
* video height.
|
|
237
|
+
* @type {number}
|
|
238
|
+
*/
|
|
239
|
+
shaka.text.CueRegion.prototype.viewportAnchorY;
|
|
240
|
+
/**
|
|
241
|
+
* The X offset to start the rendering area in percentage (0-100) of this
|
|
242
|
+
* region width.
|
|
243
|
+
* @type {number}
|
|
244
|
+
*/
|
|
245
|
+
shaka.text.CueRegion.prototype.regionAnchorX;
|
|
246
|
+
/**
|
|
247
|
+
* The Y offset to start the rendering area in percentage (0-100) of the
|
|
248
|
+
* region height.
|
|
249
|
+
* @type {number}
|
|
250
|
+
*/
|
|
251
|
+
shaka.text.CueRegion.prototype.regionAnchorY;
|
|
252
|
+
/**
|
|
253
|
+
* The width of the rendering area in widthUnits.
|
|
254
|
+
* @type {number}
|
|
255
|
+
*/
|
|
256
|
+
shaka.text.CueRegion.prototype.width;
|
|
257
|
+
/**
|
|
258
|
+
* The width of the rendering area in heightUnits.
|
|
259
|
+
* @type {number}
|
|
260
|
+
*/
|
|
261
|
+
shaka.text.CueRegion.prototype.height;
|
|
262
|
+
/**
|
|
263
|
+
* The units (percentage, pixels or lines) the region height is in.
|
|
264
|
+
* @type {shaka.text.CueRegion.units}
|
|
265
|
+
*/
|
|
266
|
+
shaka.text.CueRegion.prototype.heightUnits;
|
|
267
|
+
/**
|
|
268
|
+
* The units (percentage or pixels) the region width is in.
|
|
269
|
+
* @type {shaka.text.CueRegion.units}
|
|
270
|
+
*/
|
|
271
|
+
shaka.text.CueRegion.prototype.widthUnits;
|
|
272
|
+
/**
|
|
273
|
+
* The units (percentage or pixels) the region viewportAnchors are in.
|
|
274
|
+
* @type {shaka.text.CueRegion.units}
|
|
275
|
+
*/
|
|
276
|
+
shaka.text.CueRegion.prototype.viewportAnchorUnits;
|
|
277
|
+
/**
|
|
278
|
+
* If scroll=UP, it means that cues in the region will be added to the
|
|
279
|
+
* bottom of the region and will push any already displayed cues in the
|
|
280
|
+
* region up. Otherwise (scroll=NONE) cues will stay fixed at the location
|
|
281
|
+
* they were first painted in.
|
|
282
|
+
* @type {shaka.text.CueRegion.scrollMode}
|
|
283
|
+
*/
|
|
284
|
+
shaka.text.CueRegion.prototype.scroll;
|
|
285
|
+
/**
|
|
286
|
+
* @enum {number}
|
|
287
|
+
*/
|
|
288
|
+
shaka.text.CueRegion.units = {
|
|
289
|
+
'PX': 0,
|
|
290
|
+
'PERCENTAGE': 1,
|
|
291
|
+
'LINES': 2
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* @enum {string}
|
|
295
|
+
*/
|
|
296
|
+
shaka.text.CueRegion.scrollMode = {
|
|
297
|
+
'NONE': '',
|
|
298
|
+
'UP': 'up'
|
|
299
|
+
};
|
|
217
300
|
/**
|
|
218
301
|
*/
|
|
219
302
|
shaka.text.Cue = class {
|
|
@@ -570,89 +653,6 @@ shaka.text.Cue.textDecoration = {
|
|
|
570
653
|
'LINE_THROUGH': 'lineThrough',
|
|
571
654
|
'OVERLINE': 'overline'
|
|
572
655
|
};
|
|
573
|
-
/**
|
|
574
|
-
*/
|
|
575
|
-
shaka.text.CueRegion = class {
|
|
576
|
-
/** */
|
|
577
|
-
constructor() {}
|
|
578
|
-
};
|
|
579
|
-
/**
|
|
580
|
-
* Region identifier.
|
|
581
|
-
* @type {string}
|
|
582
|
-
*/
|
|
583
|
-
shaka.text.CueRegion.prototype.id;
|
|
584
|
-
/**
|
|
585
|
-
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
586
|
-
* video width.
|
|
587
|
-
* @type {number}
|
|
588
|
-
*/
|
|
589
|
-
shaka.text.CueRegion.prototype.viewportAnchorX;
|
|
590
|
-
/**
|
|
591
|
-
* The X offset to start the rendering area in viewportAnchorUnits of the
|
|
592
|
-
* video height.
|
|
593
|
-
* @type {number}
|
|
594
|
-
*/
|
|
595
|
-
shaka.text.CueRegion.prototype.viewportAnchorY;
|
|
596
|
-
/**
|
|
597
|
-
* The X offset to start the rendering area in percentage (0-100) of this
|
|
598
|
-
* region width.
|
|
599
|
-
* @type {number}
|
|
600
|
-
*/
|
|
601
|
-
shaka.text.CueRegion.prototype.regionAnchorX;
|
|
602
|
-
/**
|
|
603
|
-
* The Y offset to start the rendering area in percentage (0-100) of the
|
|
604
|
-
* region height.
|
|
605
|
-
* @type {number}
|
|
606
|
-
*/
|
|
607
|
-
shaka.text.CueRegion.prototype.regionAnchorY;
|
|
608
|
-
/**
|
|
609
|
-
* The width of the rendering area in widthUnits.
|
|
610
|
-
* @type {number}
|
|
611
|
-
*/
|
|
612
|
-
shaka.text.CueRegion.prototype.width;
|
|
613
|
-
/**
|
|
614
|
-
* The width of the rendering area in heightUnits.
|
|
615
|
-
* @type {number}
|
|
616
|
-
*/
|
|
617
|
-
shaka.text.CueRegion.prototype.height;
|
|
618
|
-
/**
|
|
619
|
-
* The units (percentage, pixels or lines) the region height is in.
|
|
620
|
-
* @type {shaka.text.CueRegion.units}
|
|
621
|
-
*/
|
|
622
|
-
shaka.text.CueRegion.prototype.heightUnits;
|
|
623
|
-
/**
|
|
624
|
-
* The units (percentage or pixels) the region width is in.
|
|
625
|
-
* @type {shaka.text.CueRegion.units}
|
|
626
|
-
*/
|
|
627
|
-
shaka.text.CueRegion.prototype.widthUnits;
|
|
628
|
-
/**
|
|
629
|
-
* The units (percentage or pixels) the region viewportAnchors are in.
|
|
630
|
-
* @type {shaka.text.CueRegion.units}
|
|
631
|
-
*/
|
|
632
|
-
shaka.text.CueRegion.prototype.viewportAnchorUnits;
|
|
633
|
-
/**
|
|
634
|
-
* If scroll=UP, it means that cues in the region will be added to the
|
|
635
|
-
* bottom of the region and will push any already displayed cues in the
|
|
636
|
-
* region up. Otherwise (scroll=NONE) cues will stay fixed at the location
|
|
637
|
-
* they were first painted in.
|
|
638
|
-
* @type {shaka.text.CueRegion.scrollMode}
|
|
639
|
-
*/
|
|
640
|
-
shaka.text.CueRegion.prototype.scroll;
|
|
641
|
-
/**
|
|
642
|
-
* @enum {number}
|
|
643
|
-
*/
|
|
644
|
-
shaka.text.CueRegion.units = {
|
|
645
|
-
'PX': 0,
|
|
646
|
-
'PERCENTAGE': 1,
|
|
647
|
-
'LINES': 2
|
|
648
|
-
};
|
|
649
|
-
/**
|
|
650
|
-
* @enum {string}
|
|
651
|
-
*/
|
|
652
|
-
shaka.text.CueRegion.scrollMode = {
|
|
653
|
-
'NONE': '',
|
|
654
|
-
'UP': 'up'
|
|
655
|
-
};
|
|
656
656
|
/**
|
|
657
657
|
* An interface to standardize how objects are destroyed.
|
|
658
658
|
* @interface
|