shaka-player 3.3.4 → 4.0.0
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 +0 -1
- package/.github/workflows/demo-version-index.yaml +8 -0
- package/.github/workflows/release-please.yaml +23 -2
- package/.github/workflows/selenium-lab-tests.yaml +0 -1
- package/.github/workflows/sync-labels.yaml +33 -0
- package/.github/workflows/update-issues.yaml +29 -0
- package/.github/workflows/validate-pr-title.yaml +35 -0
- package/AUTHORS +1 -0
- package/CHANGELOG.md +198 -32
- package/CONTRIBUTORS +1 -0
- package/README.md +10 -7
- package/app-engine/demo-version-index/README.md +3 -3
- package/app-engine/demo-version-index/app.yaml +27 -1
- package/app-engine/demo-version-index/generate.py +164 -0
- package/app-engine/demo-version-index/main.py +4 -155
- package/app-engine/demo-version-index/requirements.txt +0 -1
- package/build/README.md +2 -2
- package/build/compiler.py +1 -1
- package/build/generateTsDefs.py +0 -2
- package/build/shaka-lab.yaml +0 -2
- package/build/test.py +7 -1
- package/build/types/core +0 -1
- package/build/types/polyfill +0 -3
- package/demo/common/asset.js +17 -1
- package/demo/common/assets.js +29 -0
- package/demo/common/message_ids.js +6 -3
- package/demo/config.js +10 -11
- package/demo/custom.js +39 -0
- package/demo/demo_utils.js +0 -1
- package/demo/locales/en.json +6 -3
- package/demo/locales/source.json +22 -10
- package/demo/main.js +9 -6
- package/demo/search.js +2 -1
- package/dist/controls.css +1 -1
- package/dist/demo.compiled.debug.js +71 -64
- package/dist/demo.compiled.debug.map +3 -3
- package/dist/demo.compiled.js +71 -64
- package/dist/demo.compiled.map +3 -3
- package/dist/demo.css +1 -1
- package/dist/demo.css.map +1 -1
- package/dist/deps.js +16 -20
- package/dist/locales.js +31 -29
- package/dist/receiver.compiled.debug.js +32 -28
- package/dist/receiver.compiled.debug.map +3 -3
- package/dist/receiver.compiled.js +32 -28
- package/dist/receiver.compiled.map +3 -3
- package/dist/shaka-player.compiled.d.ts +78 -83
- package/dist/shaka-player.compiled.debug.d.ts +78 -83
- package/dist/shaka-player.compiled.debug.externs.js +126 -126
- package/dist/shaka-player.compiled.debug.js +426 -483
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +126 -126
- package/dist/shaka-player.compiled.js +838 -856
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +80 -83
- package/dist/shaka-player.ui.debug.d.ts +80 -83
- package/dist/shaka-player.ui.debug.externs.js +134 -126
- package/dist/shaka-player.ui.debug.js +488 -543
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +134 -126
- package/dist/shaka-player.ui.js +980 -994
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/config.md +0 -2
- package/docs/tutorials/drm-config.md +5 -0
- package/docs/tutorials/fairplay.md +7 -22
- package/docs/tutorials/faq.md +0 -11
- package/docs/tutorials/index.json +2 -8
- package/docs/tutorials/plugins.md +1 -3
- package/docs/tutorials/upgrade.md +83 -11
- package/externs/polyfill.js +15 -0
- package/externs/shaka/manifest.js +5 -1
- package/externs/shaka/net.js +12 -0
- package/externs/shaka/offline.js +5 -1
- package/externs/shaka/player.js +39 -32
- package/externs/shaka/text.js +12 -12
- package/externs/sourcebuffer.js +15 -0
- package/lib/ads/client_side_ad.js +13 -2
- package/lib/ads/client_side_ad_manager.js +22 -4
- package/lib/cast/cast_utils.js +0 -1
- package/lib/dash/content_protection.js +85 -5
- package/lib/dash/dash_parser.js +1 -1
- package/lib/hls/hls_parser.js +378 -743
- package/lib/hls/manifest_text_parser.js +2 -3
- package/lib/media/drm_engine.js +102 -53
- package/lib/media/gap_jumping_controller.js +10 -45
- package/lib/media/media_source_engine.js +87 -15
- package/lib/media/playhead.js +2 -5
- package/lib/media/presentation_timeline.js +1 -2
- package/lib/media/segment_index.js +13 -46
- package/lib/media/segment_reference.js +47 -1
- package/lib/media/streaming_engine.js +29 -11
- package/lib/media/time_ranges_utils.js +4 -9
- package/lib/net/networking_engine.js +3 -0
- package/lib/offline/indexeddb/v1_storage_cell.js +1 -0
- package/lib/offline/indexeddb/v2_storage_cell.js +1 -0
- package/lib/offline/manifest_converter.js +1 -0
- package/lib/offline/storage.js +100 -132
- package/lib/player.js +17 -201
- package/lib/polyfill/media_capabilities.js +12 -6
- package/lib/polyfill/mediasource.js +0 -28
- package/lib/polyfill/patchedmediakeys_nop.js +2 -0
- package/lib/polyfill/patchedmediakeys_webkit.js +2 -0
- package/lib/text/cue.js +0 -6
- package/lib/text/lrc_text_parser.js +8 -0
- package/lib/text/mp4_ttml_parser.js +8 -0
- package/lib/text/mp4_vtt_parser.js +8 -0
- package/lib/text/sbv_text_parser.js +8 -0
- package/lib/text/simple_text_displayer.js +1 -7
- package/lib/text/srt_text_parser.js +8 -0
- package/lib/text/ssa_text_parser.js +8 -0
- package/lib/text/text_engine.js +19 -3
- package/lib/text/ttml_text_parser.js +8 -0
- package/lib/text/ui_text_displayer.js +1 -7
- package/lib/text/vtt_text_parser.js +24 -2
- package/lib/text/web_vtt_generator.js +1 -7
- package/lib/util/error.js +9 -13
- package/lib/util/fairplay_utils.js +109 -0
- package/lib/util/functional.js +0 -42
- package/lib/util/mime_utils.js +2 -0
- package/lib/util/platform.js +45 -0
- package/lib/util/player_configuration.js +12 -6
- package/lib/util/pssh.js +23 -4
- package/lib/util/stream_utils.js +92 -22
- package/lib/util/uint8array_utils.js +0 -16
- package/lib/util/xml_utils.js +1 -1
- package/package.json +1 -1
- package/roadmap.md +19 -19
- package/shaka-player.uncompiled.js +0 -3
- package/test/cast/cast_utils_unit.js +1 -0
- package/test/dash/dash_parser_content_protection_unit.js +44 -0
- package/test/dash/dash_parser_manifest_unit.js +0 -24
- package/test/dash/dash_parser_segment_template_unit.js +3 -4
- package/test/demo/demo_unit.js +2 -1
- package/test/hls/hls_live_unit.js +99 -220
- package/test/hls/hls_parser_unit.js +515 -432
- package/test/media/drm_engine_unit.js +86 -120
- package/test/media/media_source_engine_integration.js +26 -3
- package/test/media/media_source_engine_unit.js +7 -6
- package/test/media/playhead_unit.js +27 -191
- package/test/media/segment_index_unit.js +15 -25
- package/test/media/streaming_engine_integration.js +4 -39
- package/test/media/streaming_engine_unit.js +3 -2
- package/test/media/time_ranges_utils_unit.js +0 -5
- package/test/offline/manifest_convert_unit.js +34 -4
- package/test/offline/offline_manifest_parser_unit.js +1 -0
- package/test/offline/storage_integration.js +5 -4
- package/test/player_external.js +0 -6
- package/test/player_integration.js +16 -0
- package/test/player_unit.js +26 -0
- package/test/test/util/fake_media_source_engine.js +11 -4
- package/test/test/util/manifest_generator.js +3 -1
- package/test/test/util/manifest_parser_util.js +4 -1
- package/test/test/util/offline_utils.js +1 -0
- package/test/test/util/streaming_engine_util.js +1 -0
- package/test/test/util/test_scheme.js +24 -1
- package/test/test/util/util.js +4 -4
- package/test/text/cue_integration.js +2 -2
- package/test/text/lrc_text_parser_unit.js +6 -7
- package/test/text/mp4_ttml_parser_unit.js +6 -4
- package/test/text/mp4_vtt_parser_unit.js +6 -5
- package/test/text/sbv_text_parser_unit.js +5 -6
- package/test/text/srt_text_parser_unit.js +5 -6
- package/test/text/ssa_text_parser_unit.js +17 -29
- package/test/text/text_engine_unit.js +45 -5
- package/test/text/ttml_text_parser_unit.js +77 -77
- package/test/text/vtt_text_parser_unit.js +55 -57
- package/test/ui/ui_integration.js +0 -16
- package/test/ui/ui_unit.js +27 -0
- package/test/util/cmcd_manager_unit.js +3 -0
- package/test/util/stream_utils_unit.js +23 -7
- package/ui/controls.js +65 -40
- package/ui/fullscreen_button.js +26 -6
- package/ui/less/containers.less +3 -3
- package/ui/locales/en.json +1 -0
- package/ui/locales/source.json +5 -0
- package/ui/resolution_selection.js +31 -33
- package/ui/ui.js +0 -17
- package/docs/tutorials/upgrade-v2-5.md +0 -441
- package/docs/tutorials/upgrade-v3.md +0 -38
- package/lib/polyfill/mathround.js +0 -49
- package/lib/polyfill/patchedmediakeys_apple.js +0 -744
- package/lib/polyfill/patchedmediakeys_ms.js +0 -698
- package/lib/util/mutex.js +0 -52
- package/test/util/functional_unit.js +0 -82
package/demo/custom.js
CHANGED
|
@@ -244,6 +244,40 @@ shakaDemo.Custom = class {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
|
|
247
|
+
/**
|
|
248
|
+
* @param {!ShakaDemoAssetInfo} assetInProgress
|
|
249
|
+
* @param {!Array.<!HTMLInputElement>} inputsToCheck
|
|
250
|
+
* @return {!Element} div
|
|
251
|
+
* @private
|
|
252
|
+
*/
|
|
253
|
+
makeAssetDialogContentsHLS_(assetInProgress, inputsToCheck) {
|
|
254
|
+
const mediaPlaylistDiv = document.createElement('div');
|
|
255
|
+
const containerStyle = shakaDemo.InputContainer.Style.FLEX;
|
|
256
|
+
const container = new shakaDemo.InputContainer(
|
|
257
|
+
mediaPlaylistDiv, /* headerText= */ null, containerStyle,
|
|
258
|
+
/* docLink= */ null);
|
|
259
|
+
container.getClassList().add('wide-input');
|
|
260
|
+
container.setDefaultRowClass('wide-input');
|
|
261
|
+
|
|
262
|
+
const fullMimeTypeSetup = (input, container) => {
|
|
263
|
+
if (assetInProgress.mediaPlaylistFullMimeType) {
|
|
264
|
+
input.value = assetInProgress.mediaPlaylistFullMimeType;
|
|
265
|
+
}
|
|
266
|
+
const defaultConfig = shaka.util.PlayerConfiguration.createDefault();
|
|
267
|
+
input.placeholder = defaultConfig.manifest.hls.mediaPlaylistFullMimeType;
|
|
268
|
+
};
|
|
269
|
+
const fullMimeTypeOnChange = (input) => {
|
|
270
|
+
assetInProgress.setMediaPlaylistFullMimeType(input.value);
|
|
271
|
+
};
|
|
272
|
+
const fullMimeTypeName = shakaDemoMain.getLocalizedString(
|
|
273
|
+
shakaDemo.MessageIds.HLS_FULL_MIME_TYPE);
|
|
274
|
+
this.makeField_(
|
|
275
|
+
container, fullMimeTypeName, fullMimeTypeSetup, fullMimeTypeOnChange);
|
|
276
|
+
|
|
277
|
+
return mediaPlaylistDiv;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
|
|
247
281
|
/**
|
|
248
282
|
* @param {!ShakaDemoAssetInfo} assetInProgress
|
|
249
283
|
* @param {!Array.<!HTMLInputElement>} inputsToCheck
|
|
@@ -673,6 +707,8 @@ shakaDemo.Custom = class {
|
|
|
673
707
|
assetInProgress, inputsToCheck);
|
|
674
708
|
const adsDiv = this.makeAssetDialogContentsAds_(
|
|
675
709
|
assetInProgress, inputsToCheck);
|
|
710
|
+
const hlsDiv = this.makeAssetDialogContentsHLS_(
|
|
711
|
+
assetInProgress, inputsToCheck);
|
|
676
712
|
const extraConfigDiv = this.makeAssetDialogContentsExtra_(
|
|
677
713
|
assetInProgress, inputsToCheck);
|
|
678
714
|
const finishDiv = this.makeAssetDialogContentsFinish_(
|
|
@@ -712,6 +748,8 @@ shakaDemo.Custom = class {
|
|
|
712
748
|
shakaDemo.MessageIds.HEADERS_TAB, headersDiv, /* startOn= */ false);
|
|
713
749
|
addTabButton(
|
|
714
750
|
shakaDemo.MessageIds.ADS_TAB, adsDiv, /* startOn= */ false);
|
|
751
|
+
addTabButton(
|
|
752
|
+
shakaDemo.MessageIds.HLS_TAB, hlsDiv, /* startOn= */ false);
|
|
715
753
|
addTabButton(
|
|
716
754
|
shakaDemo.MessageIds.EXTRA_TAB, extraConfigDiv, /* startOn= */ false);
|
|
717
755
|
|
|
@@ -721,6 +759,7 @@ shakaDemo.Custom = class {
|
|
|
721
759
|
this.dialog_.appendChild(drmDiv);
|
|
722
760
|
this.dialog_.appendChild(headersDiv);
|
|
723
761
|
this.dialog_.appendChild(adsDiv);
|
|
762
|
+
this.dialog_.appendChild(hlsDiv);
|
|
724
763
|
this.dialog_.appendChild(extraConfigDiv);
|
|
725
764
|
this.dialog_.appendChild(finishDiv);
|
|
726
765
|
this.dialog_.appendChild(iconDiv);
|
package/demo/demo_utils.js
CHANGED
package/demo/locales/en.json
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"DEMO_CONNECTION_TIMEOUT": "Connection timeout",
|
|
40
40
|
"DEMO_CONFIG": "Shaka Player Demo Config",
|
|
41
41
|
"DEMO_CONTAINER_SEARCH": "Container",
|
|
42
|
+
"DEMO_CONTAINERLESS": "Containerless",
|
|
42
43
|
"DEMO_CONTENT_ID": "Content ID",
|
|
43
44
|
"DEMO_CUSTOM": "Custom",
|
|
44
45
|
"DEMO_CUSTOM_CONTENT": "CUSTOM CONTENT",
|
|
@@ -87,6 +88,7 @@
|
|
|
87
88
|
"DEMO_HIGH_DEFINITION": "High definition",
|
|
88
89
|
"DEMO_HIGH_DEFINITION_SEARCH": "Filters for assets with at least one high-definition video stream.",
|
|
89
90
|
"DEMO_HLS": "HLS",
|
|
91
|
+
"DEMO_HLS_TAB": "HLS",
|
|
90
92
|
"DEMO_HOME": "HOME",
|
|
91
93
|
"DEMO_ICON_URL": "Icon URL",
|
|
92
94
|
"DEMO_IGNORE_DASH_DRM": "Ignore DASH DRM Info",
|
|
@@ -98,6 +100,7 @@
|
|
|
98
100
|
"DEMO_IMA_ASSET_KEY": "Asset key (for LIVE DAI Content)",
|
|
99
101
|
"DEMO_IMA_CONTENT_SRC_ID": "Content source ID (for VOD DAI Content)",
|
|
100
102
|
"DEMO_IMA_VIDEO_ID": "Video ID (for VOD DAI Content)",
|
|
103
|
+
"DEMO_IGNORE_MANIFEST_PROGRAM_DATE_TIME": "Ignore Program Date Time from manifest",
|
|
101
104
|
"DEMO_IGNORE_MIN_BUFFER_TIME": "Ignore Min Buffer Time",
|
|
102
105
|
"DEMO_IGNORE_TEXT_FAILURES": "Ignore Text Stream Failures",
|
|
103
106
|
"DEMO_INACCURATE_MANIFEST_TOLERANCE": "Inaccurate Manifest Tolerance",
|
|
@@ -105,7 +108,6 @@
|
|
|
105
108
|
"DEMO_INVALID_JSON_CONFIG_ERROR": "Invalid JSON configuration",
|
|
106
109
|
"DEMO_IRT": "IRT",
|
|
107
110
|
"DEMO_JSDELIVR": "jsDelivr",
|
|
108
|
-
"DEMO_JUMP_LARGE_GAPS": "Jump Large Gaps",
|
|
109
111
|
"DEMO_LANGUAGE_SECTION_HEADER": "Language",
|
|
110
112
|
"DEMO_LIBRARIES": "Google Hosted Libraries",
|
|
111
113
|
"DEMO_LICENSE": "Apache License",
|
|
@@ -134,7 +136,6 @@
|
|
|
134
136
|
"DEMO_MAX_FRAMERATE": "Max Framerate",
|
|
135
137
|
"DEMO_MAX_HEIGHT": "Max Height",
|
|
136
138
|
"DEMO_MAX_PIXELS": "Max Pixels",
|
|
137
|
-
"DEMO_MAX_SMALL_GAP_SIZE": "Maximum Small Gap Size",
|
|
138
139
|
"DEMO_MAX_WIDTH": "Max Width",
|
|
139
140
|
"DEMO_METACDN": "MetaCDN",
|
|
140
141
|
"DEMO_MICROSOFT": "Microsoft",
|
|
@@ -158,12 +159,14 @@
|
|
|
158
159
|
"DEMO_NUMBER_INTEGER_WARNING": "Must be a positive integer.",
|
|
159
160
|
"DEMO_NUMBER_NONZERO_DECIMAL_WARNING": "Must be a positive, nonzero number.",
|
|
160
161
|
"DEMO_NUMBER_NONZERO_INTEGER_WARNING": "Must be a positive, nonzero integer.",
|
|
162
|
+
"DEMO_NUMBER_OF_PARALLEL_DOWNLOADS": "Number of parallel downloads",
|
|
161
163
|
"DEMO_OBSERVE_QUALITY_CHANGES": "Observe media quality changes",
|
|
162
164
|
"DEMO_OFFLINE": "Downloadable",
|
|
163
165
|
"DEMO_OFFLINE_SEARCH": "Filters for assets that can be stored offline.",
|
|
164
166
|
"DEMO_OFFLINE_SECTION_HEADER": "Offline",
|
|
165
167
|
"DEMO_FAILURE_MISC": "Shaka Player failed to load! If you are using an ad blocker, try switching to compiled mode at the bottom of the page.",
|
|
166
168
|
"DEMO_FAILURE_NO_BROWSER_SUPPORT": "Your browser is not supported!",
|
|
169
|
+
"DEMO_HLS_FULL_MIME_TYPE": "Full Mime Type for Playing Media Playlists Directly",
|
|
167
170
|
"DEMO_PLAY": "Play",
|
|
168
171
|
"DEMO_PLAYREADY": "PlayReady DRM",
|
|
169
172
|
"DEMO_PREFER_FORCED_SUBS": "Prefer Forced Subs",
|
|
@@ -176,6 +179,7 @@
|
|
|
176
179
|
"DEMO_RESTRICTIONS_SECTION_HEADER": "Restrictions",
|
|
177
180
|
"DEMO_SAFE_SEEK_OFFSET": "Safe Seek Offset",
|
|
178
181
|
"DEMO_SAFE_SKIP_DISTANCE": "Safe Skip Distance",
|
|
182
|
+
"DEMO_SEGMENT_RELATIVE_VTT_TIMING": "Enable segment-relative VTT Timing",
|
|
179
183
|
"DEMO_SESSION_ID": "Session ID",
|
|
180
184
|
"DEMO_SAVE_BUTTON": "Save",
|
|
181
185
|
"DEMO_SHAKA": "Shaka",
|
|
@@ -221,7 +225,6 @@
|
|
|
221
225
|
"DEMO_UPDATE_EXPIRATION_TIME": "Update expiration time",
|
|
222
226
|
"DEMO_UPDATE_INTERVAL_SECONDS": "Update interval seconds",
|
|
223
227
|
"DEMO_UPLYNK": "Verizon Digital Media Services",
|
|
224
|
-
"DEMO_USE_FULL_SEGMENTS_FOR_START_TIME": "Use Full Segments For Start Time",
|
|
225
228
|
"DEMO_USE_HEADERS": "Use Headers",
|
|
226
229
|
"DEMO_USE_NATIVE_HLS_SAFARI": "Use native HLS on Safari",
|
|
227
230
|
"DEMO_USE_PERSISTENT_LICENSES": "Use Persistent Licenses",
|
package/demo/locales/source.json
CHANGED
|
@@ -159,6 +159,10 @@
|
|
|
159
159
|
"description": "A header on a search field that filters by container type.",
|
|
160
160
|
"message": "Container"
|
|
161
161
|
},
|
|
162
|
+
"DEMO_CONTAINERLESS": {
|
|
163
|
+
"description": "Text that describes an asset that has a stream with audio data not contained in a container.",
|
|
164
|
+
"message": "Containerless"
|
|
165
|
+
},
|
|
162
166
|
"DEMO_CONTENT_ID": {
|
|
163
167
|
"description": "The name of a configuration value.",
|
|
164
168
|
"message": "Content ID"
|
|
@@ -351,6 +355,10 @@
|
|
|
351
355
|
"description": "Text that describes an asset that is packaged in an HLS manifest.",
|
|
352
356
|
"message": "[PROPER_NAME:HLS]"
|
|
353
357
|
},
|
|
358
|
+
"DEMO_HLS_TAB": {
|
|
359
|
+
"description": "The header for a tab within the custom asset creation dialog.",
|
|
360
|
+
"message": "[PROPER_NAME:HLS]"
|
|
361
|
+
},
|
|
354
362
|
"DEMO_HOME": {
|
|
355
363
|
"description": "A link in the header, that switches to a page configuration for viewing the curated set of front-page content.",
|
|
356
364
|
"message": "HOME"
|
|
@@ -395,9 +403,9 @@
|
|
|
395
403
|
"description": "The label on a field that allows users to provide a video id for a custom asset.",
|
|
396
404
|
"message": "Video ID (for VOD DAI Content)"
|
|
397
405
|
},
|
|
398
|
-
"
|
|
406
|
+
"DEMO_IGNORE_MANIFEST_PROGRAM_DATE_TIME": {
|
|
399
407
|
"description": "The name of a configuration value.",
|
|
400
|
-
"message": "
|
|
408
|
+
"message": "Ignore Program Date Time from manifest"
|
|
401
409
|
},
|
|
402
410
|
"DEMO_IGNORE_MIN_BUFFER_TIME": {
|
|
403
411
|
"description": "The name of a configuration value.",
|
|
@@ -427,10 +435,6 @@
|
|
|
427
435
|
"description": "A link in the footer, to Shaka Player in the jsDelivr CDN.",
|
|
428
436
|
"message": "[PROPER_NAME:jsDelivr]"
|
|
429
437
|
},
|
|
430
|
-
"DEMO_JUMP_LARGE_GAPS": {
|
|
431
|
-
"description": "The name of a configuration value.",
|
|
432
|
-
"message": "Jump Large Gaps"
|
|
433
|
-
},
|
|
434
438
|
"DEMO_LANGUAGE_SECTION_HEADER": {
|
|
435
439
|
"description": "The header for a section of configuration values.",
|
|
436
440
|
"message": "Language"
|
|
@@ -543,10 +547,6 @@
|
|
|
543
547
|
"description": "The name of a configuration value.",
|
|
544
548
|
"message": "Max Pixels"
|
|
545
549
|
},
|
|
546
|
-
"DEMO_MAX_SMALL_GAP_SIZE": {
|
|
547
|
-
"description": "The name of a configuration value.",
|
|
548
|
-
"message": "Maximum Small Gap Size"
|
|
549
|
-
},
|
|
550
550
|
"DEMO_MAX_WIDTH": {
|
|
551
551
|
"description": "The name of a configuration value.",
|
|
552
552
|
"message": "Max Width"
|
|
@@ -639,6 +639,10 @@
|
|
|
639
639
|
"description": "A warning on number inputs, telling the user what the expected input format is.",
|
|
640
640
|
"message": "Must be a positive, nonzero integer."
|
|
641
641
|
},
|
|
642
|
+
"DEMO_NUMBER_OF_PARALLEL_DOWNLOADS": {
|
|
643
|
+
"description": "The name of a configuration value.",
|
|
644
|
+
"message": "Number of parallel downloads."
|
|
645
|
+
},
|
|
642
646
|
"DEMO_OBSERVE_QUALITY_CHANGES": {
|
|
643
647
|
"description": "The name of a configuration value.",
|
|
644
648
|
"message": "Observe media quality changes"
|
|
@@ -663,6 +667,10 @@
|
|
|
663
667
|
"description": "An error displayed if Shaka Player is unable to load due to lack of browser support.",
|
|
664
668
|
"message": "Your browser is not supported!"
|
|
665
669
|
},
|
|
670
|
+
"DEMO_HLS_FULL_MIME_TYPE": {
|
|
671
|
+
"description": "The label on a field that allows users to provide a full mime type for a custom asset.",
|
|
672
|
+
"message": "Full Mime Type for Playing Media Playlists Directly"
|
|
673
|
+
},
|
|
666
674
|
"DEMO_PLAY": {
|
|
667
675
|
"description": "A button to play the attached asset.",
|
|
668
676
|
"message": "Play"
|
|
@@ -715,6 +723,10 @@
|
|
|
715
723
|
"description": "A button to save a custom asset.",
|
|
716
724
|
"message": "Save"
|
|
717
725
|
},
|
|
726
|
+
"DEMO_SEGMENT_RELATIVE_VTT_TIMING": {
|
|
727
|
+
"description": "The name of a configuration value.",
|
|
728
|
+
"message": "Enable segment-relative VTT Timing"
|
|
729
|
+
},
|
|
718
730
|
"DEMO_SESSION_ID": {
|
|
719
731
|
"description": "The name of a configuration value.",
|
|
720
732
|
"message": "Session ID"
|
package/demo/main.js
CHANGED
|
@@ -582,7 +582,10 @@ shakaDemo.Main = class {
|
|
|
582
582
|
};
|
|
583
583
|
asset.storedProgress = 0;
|
|
584
584
|
this.dispatchEventWithName_('shaka-main-offline-progress');
|
|
585
|
+
const start = Date.now();
|
|
585
586
|
const stored = await storage.store(asset.manifestUri, metadata).promise;
|
|
587
|
+
const end = Date.now();
|
|
588
|
+
console.log('Download time:', end - start);
|
|
586
589
|
asset.storedContent = stored;
|
|
587
590
|
} catch (error) {
|
|
588
591
|
this.onError_(/** @type {!shaka.util.Error} */ (error));
|
|
@@ -726,6 +729,9 @@ shakaDemo.Main = class {
|
|
|
726
729
|
if (asset.features.includes(shakaAssets.Feature.MP2TS)) {
|
|
727
730
|
mimeTypes.push('video/mp2t');
|
|
728
731
|
}
|
|
732
|
+
if (asset.features.includes(shakaAssets.Feature.CONTAINERLESS)) {
|
|
733
|
+
mimeTypes.push('audio/aac');
|
|
734
|
+
}
|
|
729
735
|
const hasSupportedMimeType = mimeTypes.some((type) => {
|
|
730
736
|
return this.support_.media[type];
|
|
731
737
|
});
|
|
@@ -941,9 +947,6 @@ shakaDemo.Main = class {
|
|
|
941
947
|
if ('noadaptation' in params) {
|
|
942
948
|
this.configure('abr.enabled', false);
|
|
943
949
|
}
|
|
944
|
-
if ('jumpLargeGaps' in params) {
|
|
945
|
-
this.configure('streaming.jumpLargeGaps', true);
|
|
946
|
-
}
|
|
947
950
|
|
|
948
951
|
// Add compiled/uncompiled links.
|
|
949
952
|
this.makeVersionLinks_();
|
|
@@ -1124,6 +1127,9 @@ shakaDemo.Main = class {
|
|
|
1124
1127
|
if (document.fullscreenElement) {
|
|
1125
1128
|
document.exitFullscreen();
|
|
1126
1129
|
}
|
|
1130
|
+
if (this.video_.webkitDisplayingFullscreen) {
|
|
1131
|
+
this.video_.webkitExitFullscreen();
|
|
1132
|
+
}
|
|
1127
1133
|
if (document.pictureInPictureElement) {
|
|
1128
1134
|
document.exitPictureInPicture();
|
|
1129
1135
|
}
|
|
@@ -1351,9 +1357,6 @@ shakaDemo.Main = class {
|
|
|
1351
1357
|
if (!this.getCurrentConfigValue('abr.enabled')) {
|
|
1352
1358
|
params.push('noadaptation');
|
|
1353
1359
|
}
|
|
1354
|
-
if (this.getCurrentConfigValue('streaming.jumpLargeGaps')) {
|
|
1355
|
-
params.push('jumpLargeGaps');
|
|
1356
|
-
}
|
|
1357
1360
|
params.push('uilang=' + this.getUILocale());
|
|
1358
1361
|
|
|
1359
1362
|
if (this.selectedAsset) {
|
package/demo/search.js
CHANGED
|
@@ -362,7 +362,8 @@ shakaDemo.Search = class {
|
|
|
362
362
|
[Feature.DASH, Feature.HLS], FEATURE);
|
|
363
363
|
this.makeSelectInput_(coreContainer,
|
|
364
364
|
shakaDemo.MessageIds.CONTAINER_SEARCH,
|
|
365
|
-
[Feature.MP4, Feature.MP2TS, Feature.WEBM],
|
|
365
|
+
[Feature.MP4, Feature.MP2TS, Feature.WEBM, Feature.CONTAINERLESS],
|
|
366
|
+
FEATURE);
|
|
366
367
|
this.makeSelectInput_(coreContainer,
|
|
367
368
|
shakaDemo.MessageIds.DRM_SEARCH,
|
|
368
369
|
Object.values(shakaAssets.KeySystem), DRM);
|
package/dist/controls.css
CHANGED
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
52
52
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
53
53
|
* SOFTWARE.
|
|
54
|
-
*/.shaka-tooltips-on{overflow:visible}.shaka-tooltips-on>[class*=shaka-tooltip]{position:relative}.shaka-tooltips-on>[class*=shaka-tooltip]:active:after,.shaka-tooltips-on>[class*=shaka-tooltip]:focus-visible:after,.shaka-tooltips-on>[class*=shaka-tooltip]:hover:after{content:attr(aria-label);font-family:Roboto-Regular,Roboto,sans-serif;line-height:calc(32px / 2);white-space:nowrap;font-size:13px;background:rgba(35 35 35 / 90%);color:#fff;border-radius:3px;padding:5px 10px;position:absolute;bottom:calc(32px + 5px);left:calc(32px / 2);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}.shaka-tooltips-on>.shaka-tooltip-status:active:after,.shaka-tooltips-on>.shaka-tooltip-status:focus-visible:after,.shaka-tooltips-on>.shaka-tooltip-status:hover:after{content:attr(aria-label) " (" attr(shaka-status) ")"}.shaka-tooltips-on button:first-child:active:after,.shaka-tooltips-on button:first-child:focus-visible:after,.shaka-tooltips-on button:first-child:hover:after{left:0;-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.shaka-tooltips-on button:last-child:active:after,.shaka-tooltips-on button:last-child:focus-visible:after,.shaka-tooltips-on button:last-child:hover:after{left:32px;-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/roboto/v29/KFOmCnqEu92Fr1Mu4mxP.ttf) format('truetype')}@font-face{font-family:'Material Icons Round';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsround/
|
|
54
|
+
*/.shaka-tooltips-on{overflow:visible}.shaka-tooltips-on>[class*=shaka-tooltip]{position:relative}.shaka-tooltips-on>[class*=shaka-tooltip]:active:after,.shaka-tooltips-on>[class*=shaka-tooltip]:focus-visible:after,.shaka-tooltips-on>[class*=shaka-tooltip]:hover:after{content:attr(aria-label);font-family:Roboto-Regular,Roboto,sans-serif;line-height:calc(32px / 2);white-space:nowrap;font-size:13px;background:rgba(35 35 35 / 90%);color:#fff;border-radius:3px;padding:5px 10px;position:absolute;bottom:calc(32px + 5px);left:calc(32px / 2);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}.shaka-tooltips-on>.shaka-tooltip-status:active:after,.shaka-tooltips-on>.shaka-tooltip-status:focus-visible:after,.shaka-tooltips-on>.shaka-tooltip-status:hover:after{content:attr(aria-label) " (" attr(shaka-status) ")"}.shaka-tooltips-on button:first-child:active:after,.shaka-tooltips-on button:first-child:focus-visible:after,.shaka-tooltips-on button:first-child:hover:after{left:0;-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.shaka-tooltips-on button:last-child:active:after,.shaka-tooltips-on button:last-child:focus-visible:after,.shaka-tooltips-on button:last-child:hover:after{left:32px;-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/roboto/v29/KFOmCnqEu92Fr1Mu4mxP.ttf) format('truetype')}@font-face{font-family:'Material Icons Round';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsround/v102/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf) format('opentype')}.material-icons-round{font-family:'Material Icons Round';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}/*# sourceMappingURL=controls.css.map */
|