shaka-player 4.6.4 → 4.7.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/README.md +1 -0
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/deps.js +9 -5
- package/dist/locales.js +29 -29
- package/dist/shaka-player.compiled.d.ts +46 -3
- package/dist/shaka-player.compiled.debug.d.ts +46 -3
- package/dist/shaka-player.compiled.debug.externs.js +45 -0
- package/dist/shaka-player.compiled.debug.js +382 -351
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +45 -0
- package/dist/shaka-player.compiled.js +1135 -1121
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +68 -4
- package/dist/shaka-player.ui.debug.d.ts +68 -4
- package/dist/shaka-player.ui.debug.externs.js +77 -0
- package/dist/shaka-player.ui.debug.js +428 -392
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +77 -0
- package/dist/shaka-player.ui.js +1304 -1290
- package/dist/shaka-player.ui.map +4 -4
- package/externs/mediasession.js +7 -0
- package/externs/shaka/abr_manager.js +8 -0
- package/externs/shaka/manifest.js +3 -3
- package/externs/shaka/player.js +59 -4
- package/lib/abr/simple_abr_manager.js +41 -15
- package/lib/cea/cea708_service.js +1 -1
- package/lib/cea/cea708_window.js +95 -7
- package/lib/dash/dash_parser.js +55 -11
- package/lib/media/adaptation_set_criteria.js +76 -10
- package/lib/media/media_source_engine.js +42 -18
- package/lib/media/segment_reference.js +12 -0
- package/lib/media/streaming_engine.js +55 -3
- package/lib/player.js +92 -6
- package/lib/util/cmsd_manager.js +269 -0
- package/lib/util/content_steering_manager.js +5 -1
- package/lib/util/mime_utils.js +6 -2
- package/lib/util/periods.js +108 -39
- package/lib/util/player_configuration.js +19 -5
- package/lib/util/stream_utils.js +82 -13
- package/package.json +1 -1
- package/ui/audio_language_selection.js +3 -0
- package/ui/controls.js +60 -0
- package/ui/externs/ui.js +12 -1
- package/ui/hidden_fast_forward_button.js +32 -0
- package/ui/hidden_rewind_button.js +32 -0
- package/ui/hidden_seek_button.js +121 -0
- package/ui/less/buttons.less +50 -0
- package/ui/less/containers.less +18 -0
- package/ui/resolution_selection.js +2 -0
- package/ui/ui.js +2 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -75
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -26
- package/.github/ISSUE_TEMPLATE/question.md +0 -26
- package/.github/config.yml +0 -1
- package/.github/workflows/appspot.yaml +0 -39
- package/.github/workflows/build-and-test.yaml +0 -222
- package/.github/workflows/compute-incremental-coverage.py +0 -265
- package/.github/workflows/custom-actions/prep-for-appspot/action.yaml +0 -56
- package/.github/workflows/custom-actions/set-commit-status/action.yaml +0 -37
- package/.github/workflows/deflake.yaml +0 -31
- package/.github/workflows/demo-version-index.yaml +0 -43
- package/.github/workflows/nightly-demo.yaml +0 -42
- package/.github/workflows/release-please.yaml +0 -193
- package/.github/workflows/report-incremental-coverage.yaml +0 -39
- package/.github/workflows/safari-homedir-launcher.sh +0 -18
- package/.github/workflows/selenium-lab-tests.yaml +0 -370
- package/.github/workflows/shaka-bot-commands/command-help.sh +0 -27
- package/.github/workflows/shaka-bot-commands/command-test.sh +0 -56
- package/.github/workflows/shaka-bot-commands/lib.sh +0 -83
- package/.github/workflows/shaka-bot-commands/main.sh +0 -51
- package/.github/workflows/sync-labels.yaml +0 -33
- package/.github/workflows/talk-to-shaka-bot.yaml +0 -29
- package/.github/workflows/update-issues.yaml +0 -31
- package/.github/workflows/update-screenshots.yaml +0 -142
- package/.github/workflows/validate-pr-title.yaml +0 -27
- package/CHANGELOG.md +0 -5774
- package/CODE_OF_CONDUCT.md +0 -93
- package/CONTRIBUTING.md +0 -76
- package/demo/TengwarTelcontar.woff2 +0 -0
- package/demo/app_logo_144.png +0 -0
- package/demo/app_logo_192.png +0 -0
- package/demo/app_logo_256.png +0 -0
- package/demo/app_logo_384.png +0 -0
- package/demo/app_logo_512.png +0 -0
- package/demo/app_manifest.json +0 -29
- package/demo/asset_card.js +0 -410
- package/demo/autoTemplate.txt +0 -61
- package/demo/cast_receiver/idle1.jpg +0 -0
- package/demo/cast_receiver/idle2.jpg +0 -0
- package/demo/cast_receiver/idle3.jpg +0 -0
- package/demo/cast_receiver/index.html +0 -75
- package/demo/cast_receiver/receiver_app.css +0 -111
- package/demo/cast_receiver/receiver_app.js +0 -158
- package/demo/close_button.js +0 -60
- package/demo/common/asset.js +0 -510
- package/demo/common/assets.js +0 -1634
- package/demo/config.js +0 -859
- package/demo/custom.js +0 -907
- package/demo/customWarning.txt +0 -8
- package/demo/demo.less +0 -591
- package/demo/demo_uncompiled.js +0 -11
- package/demo/demo_utils.js +0 -113
- package/demo/favicon.ico +0 -0
- package/demo/front.js +0 -156
- package/demo/icons/README.md +0 -4
- package/demo/icons/baseline-audiotrack-24px.svg +0 -1
- package/demo/icons/baseline-closed_caption-24px.svg +0 -1
- package/demo/icons/baseline-fast_forward-24px.svg +0 -1
- package/demo/icons/baseline-language-24px.svg +0 -1
- package/demo/icons/baseline-live_tv-24px.svg +0 -1
- package/demo/icons/baseline-subtitles-24px.svg +0 -1
- package/demo/icons/baseline-surround_sound-24px.svg +0 -1
- package/demo/icons/custom_ad.svg +0 -1
- package/demo/icons/custom_box_with_text.svg +0 -1
- package/demo/icons/custom_clear_key.svg +0 -1
- package/demo/icons/custom_high_definition.svg +0 -1
- package/demo/icons/custom_playready.svg +0 -1
- package/demo/icons/custom_ultra_high_definition.svg +0 -1
- package/demo/icons/custom_widevine.svg +0 -1
- package/demo/index.html +0 -173
- package/demo/input.js +0 -270
- package/demo/input_container.js +0 -218
- package/demo/load.js +0 -156
- package/demo/main.js +0 -1854
- package/demo/search.js +0 -452
- package/demo/service_worker.js +0 -355
- package/demo/shaka_logo_trans.png +0 -0
- package/demo/tooltip.js +0 -29
- package/demo/visualizer.js +0 -335
- package/demo/visualizer_button.js +0 -84
- package/dist/demo.compiled.debug.js +0 -340
- package/dist/demo.compiled.debug.map +0 -8
- package/dist/demo.compiled.js +0 -340
- package/dist/demo.compiled.map +0 -8
- package/dist/demo.css +0 -6
- package/dist/demo.css.map +0 -1
- package/dist/receiver.compiled.debug.js +0 -187
- package/dist/receiver.compiled.debug.map +0 -8
- package/dist/receiver.compiled.js +0 -187
- package/dist/receiver.compiled.map +0 -8
- package/docs/announcement-list-join-group.png +0 -0
- package/docs/api-mainpage.md +0 -28
- package/docs/design/REDESIGN.md +0 -283
- package/docs/design/architecture.md +0 -13
- package/docs/design/bg-fetch-after.gv +0 -29
- package/docs/design/bg-fetch-after.gv.png +0 -0
- package/docs/design/bg-fetch-before.gv +0 -18
- package/docs/design/bg-fetch-before.gv.png +0 -0
- package/docs/design/bg-fetch.md +0 -134
- package/docs/design/cast.gv +0 -35
- package/docs/design/cast.gv.png +0 -0
- package/docs/design/chromecast.md +0 -151
- package/docs/design/codec_preferences.md +0 -158
- package/docs/design/dash-audio-channels.md +0 -123
- package/docs/design/dash-manifests.md +0 -248
- package/docs/design/dash-timeline.svg +0 -4
- package/docs/design/dataflow.gv +0 -66
- package/docs/design/dataflow.gv.png +0 -0
- package/docs/design/export.md +0 -70
- package/docs/design/fuzzy-locale-matching.md +0 -40
- package/docs/design/gap-jumping.md +0 -151
- package/docs/design/lcevc-architecture.png +0 -0
- package/docs/design/lcevc-demo.png +0 -0
- package/docs/design/lcevc-integration.md +0 -72
- package/docs/design/locale_compatibility.svg +0 -1
- package/docs/design/locales_tree.svg +0 -1
- package/docs/design/localization-design-principles.md +0 -158
- package/docs/design/newdemo.gv +0 -83
- package/docs/design/newdemo.gv.png +0 -0
- package/docs/design/offline.gv +0 -43
- package/docs/design/offline.gv.png +0 -0
- package/docs/design/offline.md +0 -153
- package/docs/design/ownership.gv +0 -76
- package/docs/design/ownership.gv.png +0 -0
- package/docs/design/preload.md +0 -299
- package/docs/design/preload.png +0 -0
- package/docs/design/talking-about-languages.md +0 -46
- package/docs/design/timeline.svg +0 -152
- package/docs/design/ui.md +0 -31
- package/docs/design/ui_player_relationships.svg +0 -1
- package/docs/jsdoc-plugin.js +0 -74
- package/docs/jsdoc-template/README.md +0 -1
- package/docs/jsdoc-template/publish.js +0 -879
- package/docs/jsdoc-template/static/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-Bold-webfont.svg +0 -1830
- package/docs/jsdoc-template/static/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
- package/docs/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-Italic-webfont.svg +0 -1830
- package/docs/jsdoc-template/static/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-Light-webfont.eot +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-Light-webfont.svg +0 -1831
- package/docs/jsdoc-template/static/fonts/OpenSans-Light-webfont.woff +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
- package/docs/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/docs/jsdoc-template/static/fonts/OpenSans-Regular-webfont.svg +0 -1831
- package/docs/jsdoc-template/static/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/jsdoc-template/static/scripts/linenumber.js +0 -44
- package/docs/jsdoc-template/static/scripts/show-widget.js +0 -55
- package/docs/jsdoc-template/static/styles/jsdoc-default.css +0 -438
- package/docs/jsdoc-template/tmpl/augments.tmpl +0 -10
- package/docs/jsdoc-template/tmpl/container.tmpl +0 -205
- package/docs/jsdoc-template/tmpl/details.tmpl +0 -152
- package/docs/jsdoc-template/tmpl/example.tmpl +0 -2
- package/docs/jsdoc-template/tmpl/examples.tmpl +0 -13
- package/docs/jsdoc-template/tmpl/exceptions.tmpl +0 -32
- package/docs/jsdoc-template/tmpl/layout.tmpl +0 -50
- package/docs/jsdoc-template/tmpl/mainpage.tmpl +0 -14
- package/docs/jsdoc-template/tmpl/members.tmpl +0 -47
- package/docs/jsdoc-template/tmpl/method.tmpl +0 -140
- package/docs/jsdoc-template/tmpl/modifies.tmpl +0 -14
- package/docs/jsdoc-template/tmpl/params.tmpl +0 -131
- package/docs/jsdoc-template/tmpl/properties.tmpl +0 -125
- package/docs/jsdoc-template/tmpl/returns.tmpl +0 -19
- package/docs/jsdoc-template/tmpl/source.tmpl +0 -8
- package/docs/jsdoc-template/tmpl/tutorial.tmpl +0 -21
- package/docs/jsdoc-template/tmpl/type.tmpl +0 -7
- package/docs/jsdoc.conf.json +0 -38
- package/docs/shaka-player-logo.png +0 -0
- package/docs/style.md +0 -174
- package/docs/tutorials/a11y.md +0 -64
- package/docs/tutorials/ad_monetization.md +0 -292
- package/docs/tutorials/application-level-redirects.md +0 -94
- package/docs/tutorials/architecture.md +0 -32
- package/docs/tutorials/basic-usage.md +0 -89
- package/docs/tutorials/blob-url.md +0 -15
- package/docs/tutorials/config.md +0 -148
- package/docs/tutorials/debugging.md +0 -189
- package/docs/tutorials/drm-config.md +0 -274
- package/docs/tutorials/errors.md +0 -95
- package/docs/tutorials/fairplay.md +0 -242
- package/docs/tutorials/faq.md +0 -252
- package/docs/tutorials/index.json +0 -29
- package/docs/tutorials/lcevc.md +0 -118
- package/docs/tutorials/license-server-auth.md +0 -248
- package/docs/tutorials/license-wrapping.md +0 -168
- package/docs/tutorials/manifest-parser.md +0 -365
- package/docs/tutorials/network-and-buffering-config.md +0 -119
- package/docs/tutorials/offline.md +0 -683
- package/docs/tutorials/plugins.md +0 -184
- package/docs/tutorials/selenium-grid-config.md +0 -174
- package/docs/tutorials/service-worker.md +0 -106
- package/docs/tutorials/ui-customization.md +0 -288
- package/docs/tutorials/ui.md +0 -232
- package/docs/tutorials/upgrade-manifest.md +0 -281
- package/docs/tutorials/upgrade.md +0 -104
- package/docs/tutorials/welcome.md +0 -108
- package/docs/tutorials/widevine-service-certs.md +0 -45
- package/karma.conf.js +0 -879
- package/maintained-branches.md +0 -15
- package/roadmap.md +0 -186
- package/test/abr/simple_abr_manager_unit.js +0 -398
- package/test/ads/ad_manager_unit.js +0 -260
- package/test/assumptions/uint8_array_unit.js +0 -22
- package/test/cast/cast_proxy_unit.js +0 -736
- package/test/cast/cast_receiver_integration.js +0 -488
- package/test/cast/cast_receiver_unit.js +0 -1183
- package/test/cast/cast_sender_unit.js +0 -973
- package/test/cast/cast_utils_unit.js +0 -311
- package/test/cea/cea608_memory_unit.js +0 -411
- package/test/cea/cea708_service_unit.js +0 -674
- package/test/cea/cea708_window_unit.js +0 -373
- package/test/cea/cea_decoder_unit.js +0 -615
- package/test/cea/dtvcc_packet_builder_unit.js +0 -158
- package/test/cea/dtvcc_packet_unit.js +0 -60
- package/test/cea/mp4_cea_parser_unit.js +0 -127
- package/test/codec_switching/codec_switching_integration.js +0 -182
- package/test/dash/dash_parser_content_protection_unit.js +0 -998
- package/test/dash/dash_parser_integration.js +0 -74
- package/test/dash/dash_parser_live_unit.js +0 -1542
- package/test/dash/dash_parser_manifest_unit.js +0 -3121
- package/test/dash/dash_parser_segment_base_unit.js +0 -421
- package/test/dash/dash_parser_segment_list_unit.js +0 -380
- package/test/dash/dash_parser_segment_template_unit.js +0 -910
- package/test/dash/mpd_utils_unit.js +0 -794
- package/test/demo/demo_unit.js +0 -108
- package/test/deprecate/enforcer_unit.js +0 -74
- package/test/deprecate/version_unit.js +0 -57
- package/test/hls/hls_live_unit.js +0 -1330
- package/test/hls/hls_parser_unit.js +0 -5276
- package/test/hls/manifest_text_parser_unit.js +0 -545
- package/test/media/adaptation_set_criteria_unit.js +0 -806
- package/test/media/adaptation_set_unit.js +0 -229
- package/test/media/buffering_observer_unit.js +0 -143
- package/test/media/closed_caption_parser_unit.js +0 -18
- package/test/media/content_workarounds_unit.js +0 -43
- package/test/media/drm_engine_integration.js +0 -356
- package/test/media/drm_engine_unit.js +0 -2805
- package/test/media/media_source_engine_integration.js +0 -691
- package/test/media/media_source_engine_unit.js +0 -1512
- package/test/media/mp4_segment_index_parser_unit.js +0 -80
- package/test/media/play_rate_controller_unit.js +0 -69
- package/test/media/playhead_unit.js +0 -1394
- package/test/media/presentation_timeline_unit.js +0 -477
- package/test/media/quality_observer_unit.js +0 -138
- package/test/media/region_observer_unit.js +0 -374
- package/test/media/region_timeline_unit.js +0 -139
- package/test/media/segment_index_unit.js +0 -1080
- package/test/media/segment_prefetch_unit.js +0 -243
- package/test/media/segment_reference_unit.js +0 -63
- package/test/media/stall_detector_unit.js +0 -184
- package/test/media/streaming_engine_integration.js +0 -632
- package/test/media/streaming_engine_unit.js +0 -4211
- package/test/media/time_ranges_utils_unit.js +0 -123
- package/test/media/webm_segment_index_parser_unit.js +0 -90
- package/test/mss/mss_parser_content_protection_unit.js +0 -49
- package/test/mss/mss_parser_unit.js +0 -474
- package/test/mss/mss_player_integration.js +0 -124
- package/test/net/data_uri_plugin_unit.js +0 -105
- package/test/net/http_plugin_unit.js +0 -439
- package/test/net/networking_engine_unit.js +0 -1236
- package/test/net/networking_utils_unit.js +0 -37
- package/test/offline/download_progress_estimator_unit.js +0 -90
- package/test/offline/indexeddb_storage_unit.js +0 -192
- package/test/offline/manifest_convert_unit.js +0 -622
- package/test/offline/offline_integration.js +0 -168
- package/test/offline/offline_manifest_parser_unit.js +0 -231
- package/test/offline/offline_scheme_unit.js +0 -154
- package/test/offline/offline_uri_unit.js +0 -59
- package/test/offline/storage_compatibility_unit.js +0 -344
- package/test/offline/storage_integration.js +0 -1858
- package/test/player_external.js +0 -237
- package/test/player_integration.js +0 -1371
- package/test/player_load_graph_integration.js +0 -865
- package/test/player_src_equals_external.js +0 -154
- package/test/player_src_equals_integration.js +0 -527
- package/test/player_unit.js +0 -4434
- package/test/polyfill/media_capabilities_unit.js +0 -277
- package/test/polyfill/patchedmediakeys_apple_unit.js +0 -130
- package/test/test/assets/3675/chunk-stream0-00001.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00002.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00003.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00004.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00005.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00006.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00007.m4s +0 -0
- package/test/test/assets/3675/dash_0.mpd +0 -30
- package/test/test/assets/3675/dash_1.mpd +0 -30
- package/test/test/assets/3675/dash_2.mpd +0 -30
- package/test/test/assets/3675/dash_3.mpd +0 -30
- package/test/test/assets/3675/dash_4.mpd +0 -30
- package/test/test/assets/3675/dash_5.mpd +0 -26
- package/test/test/assets/3675/init-stream0.m4s +0 -0
- package/test/test/assets/audio-xhe-aac.mp4 +0 -0
- package/test/test/assets/audio.ts +0 -0
- package/test/test/assets/captions-test.ts +0 -0
- package/test/test/assets/cea-init.mp4 +0 -0
- package/test/test/assets/cea-segment.mp4 +0 -0
- package/test/test/assets/chapters.srt +0 -11
- package/test/test/assets/chapters.vtt +0 -10
- package/test/test/assets/chapters2.vtt +0 -10
- package/test/test/assets/dash-aes-128/Fragments(video=0,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=20000000,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=40000000,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=60000000,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=i,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/dash.mpd +0 -18
- package/test/test/assets/dash-aes-128/license +0 -1
- package/test/test/assets/dash-multi-codec/audio_en_2c_128k_aac.mp4 +0 -0
- package/test/test/assets/dash-multi-codec/audio_es_2c_64k_opus.webm +0 -0
- package/test/test/assets/dash-multi-codec/dash.mpd +0 -32
- package/test/test/assets/dash-multi-codec/video_144p_108k_h264.mp4 +0 -0
- package/test/test/assets/db-dump-v1.json +0 -1
- package/test/test/assets/db-dump-v2-broken.json +0 -1
- package/test/test/assets/db-dump-v2-clean.json +0 -1
- package/test/test/assets/db-dump-v3.json +0 -1
- package/test/test/assets/db-dump-v4-broken.json +0 -1
- package/test/test/assets/db-dump-v5.json +0 -1
- package/test/test/assets/empty_caption_video_init.mp4 +0 -0
- package/test/test/assets/empty_caption_video_segment.mp4 +0 -0
- package/test/test/assets/encrypted-sintel-audio-init.mp4 +0 -0
- package/test/test/assets/encrypted-sintel-audio-segment.mp4 +0 -0
- package/test/test/assets/encrypted-sintel-video-init.mp4 +0 -0
- package/test/test/assets/encrypted-sintel-video-segment.mp4 +0 -0
- package/test/test/assets/green-pixel.mp4 +0 -0
- package/test/test/assets/green-pixel.txt +0 -15
- package/test/test/assets/h265-cea-init.mp4 +0 -0
- package/test/test/assets/h265-cea-segment.mp4 +0 -0
- package/test/test/assets/hls-raw-aac/fileSequence0.aac +0 -0
- package/test/test/assets/hls-raw-aac/fileSequence1.aac +0 -0
- package/test/test/assets/hls-raw-aac/fileSequence2.aac +0 -0
- package/test/test/assets/hls-raw-aac/fileSequence3.aac +0 -0
- package/test/test/assets/hls-raw-aac/manifest.m3u8 +0 -4
- package/test/test/assets/hls-raw-aac/stream.m4a.m3u8 +0 -14
- package/test/test/assets/hls-raw-ac3/fileSequence0.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence1.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence2.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence3.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence4.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence5.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence6.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence7.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/prog_index.m3u8 +0 -31
- package/test/test/assets/hls-raw-ec3/fileSequence0.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence1.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence2.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence3.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence4.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence5.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence6.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence7.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/prog_index.m3u8 +0 -31
- package/test/test/assets/hls-raw-mp3/chunklist_w905519204.m3u8 +0 -13
- package/test/test/assets/hls-raw-mp3/media_w905519204_0.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/media_w905519204_1.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/media_w905519204_2.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/media_w905519204_3.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/playlist.m3u8 +0 -4
- package/test/test/assets/hls-ts-aac/playlist.m3u8 +0 -23
- package/test/test/assets/hls-ts-aac/segment_0.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_1.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_2.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_3.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_4.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_5.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_6.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_7.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0000.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0001.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0002.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0003.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0004.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0005.ts +0 -0
- package/test/test/assets/hls-ts-ac3/prog_index.m3u8 +0 -19
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0000.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0001.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0002.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0003.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0004.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0005.ts +0 -0
- package/test/test/assets/hls-ts-ec3/prog_index.m3u8 +0 -19
- package/test/test/assets/hls-ts-h264/fileSequence0.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence1.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence2.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence3.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence4.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence5.ts +0 -0
- package/test/test/assets/hls-ts-h264/prog_index.m3u8 +0 -25
- package/test/test/assets/hls-ts-h265/0.ts +0 -0
- package/test/test/assets/hls-ts-h265/hevc.m3u8 +0 -6
- package/test/test/assets/hls-ts-h265/index.m3u8 +0 -7
- package/test/test/assets/hls-ts-mp3/manifest.m3u8 +0 -13
- package/test/test/assets/hls-ts-mp3/media_w239891843_0.ts +0 -0
- package/test/test/assets/hls-ts-mp3/media_w239891843_1.ts +0 -0
- package/test/test/assets/hls-ts-mp3/media_w239891843_2.ts +0 -0
- package/test/test/assets/hls-ts-mp3/media_w239891843_3.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/chunk.m3u8 +0 -17
- package/test/test/assets/hls-ts-muxed-aac-h264/n_0_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_1_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_2_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_3_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_4_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_5_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/playlist.m3u8 +0 -4
- package/test/test/assets/hls-ts-muxed-aac-h265/0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h265/1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h265/media.m3u8 +0 -9
- package/test/test/assets/hls-ts-muxed-ac3-h264/media.m3u8 +0 -24
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00000.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00001.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00002.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00003.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00004.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00005.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0000.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0001.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0002.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0003.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/prog_index.m3u8 +0 -14
- package/test/test/assets/hls-ts-muxed-mp3-h264/index.m3u8 +0 -23
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-1-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-2-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-3-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-4-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-5-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-6-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-7-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-8-v1-a1.ts +0 -0
- package/test/test/assets/id3-metadata.aac +0 -0
- package/test/test/assets/id3-metadata.ts +0 -0
- package/test/test/assets/index-segment.mp4 +0 -0
- package/test/test/assets/index-segment.webm +0 -0
- package/test/test/assets/init-segment.webm +0 -0
- package/test/test/assets/large_file.mpd +0 -4930
- package/test/test/assets/multidrm-audio-init.mp4 +0 -0
- package/test/test/assets/multidrm-audio-segment.mp4 +0 -0
- package/test/test/assets/multidrm-video-init.mp4 +0 -0
- package/test/test/assets/multidrm-video-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/assets/sintel-audio-init.mp4 +0 -0
- package/test/test/assets/sintel-audio-segment.mp4 +0 -0
- package/test/test/assets/sintel-video-init.mp4 +0 -0
- package/test/test/assets/sintel-video-segment.mp4 +0 -0
- package/test/test/assets/small.mp4 +0 -0
- package/test/test/assets/text-clip-alt.vtt +0 -63
- package/test/test/assets/text-clip.vtt +0 -63
- package/test/test/assets/thumbnails-sprites.vtt +0 -10
- package/test/test/assets/thumbnails.vtt +0 -10
- package/test/test/assets/ttml-init.mp4 +0 -0
- package/test/test/assets/ttml-segment-multiplemdat.mp4 +0 -0
- package/test/test/assets/ttml-segment.mp4 +0 -0
- package/test/test/assets/video.ts +0 -0
- package/test/test/assets/vtt-init.mp4 +0 -0
- package/test/test/assets/vtt-segment-multi-payload.mp4 +0 -0
- package/test/test/assets/vtt-segment-no-duration.mp4 +0 -0
- package/test/test/assets/vtt-segment-settings.mp4 +0 -0
- package/test/test/assets/vtt-segment.mp4 +0 -0
- package/test/test/boot.js +0 -495
- package/test/test/externs/filters.js +0 -44
- package/test/test/externs/fontfaceonload.js +0 -29
- package/test/test/externs/jasmine.js +0 -670
- package/test/test/externs/karma.js +0 -26
- package/test/test/externs/require.js +0 -21
- package/test/test/externs/sprintf.js +0 -18
- package/test/test/namespace.js +0 -10
- package/test/test/util/canned_idb.js +0 -379
- package/test/test/util/cea_utils.js +0 -60
- package/test/test/util/dash_parser_util.js +0 -329
- package/test/test/util/fake_ad.js +0 -321
- package/test/test/util/fake_ad_manager.js +0 -122
- package/test/test/util/fake_demo_main.js +0 -144
- package/test/test/util/fake_drm_engine.js +0 -103
- package/test/test/util/fake_media_source_engine.js +0 -464
- package/test/test/util/fake_networking_engine.js +0 -381
- package/test/test/util/fake_segment_prefetch.js +0 -84
- package/test/test/util/fake_text_displayer.js +0 -60
- package/test/test/util/id3_generator.js +0 -100
- package/test/test/util/indexeddb_utils.js +0 -124
- package/test/test/util/jasmine_fetch.js +0 -382
- package/test/test/util/layout_tests.js +0 -435
- package/test/test/util/loader.js +0 -88
- package/test/test/util/manifest_generator.js +0 -705
- package/test/test/util/manifest_parser_util.js +0 -101
- package/test/test/util/mss_parser_util.js +0 -119
- package/test/test/util/offline_utils.js +0 -105
- package/test/test/util/simple_fakes.js +0 -535
- package/test/test/util/stream_generator.js +0 -676
- package/test/test/util/streaming_engine_util.js +0 -506
- package/test/test/util/test_scheme.js +0 -778
- package/test/test/util/ttml_utils.js +0 -77
- package/test/test/util/ui_utils.js +0 -183
- package/test/test/util/util.js +0 -374
- package/test/test/util/waiter.js +0 -406
- package/test/text/cue_integration.js +0 -51
- package/test/text/lrc_text_parser_unit.js +0 -98
- package/test/text/mp4_ttml_parser_unit.js +0 -171
- package/test/text/mp4_vtt_parser_unit.js +0 -195
- package/test/text/sbv_text_parser_unit.js +0 -81
- package/test/text/simple_text_displayer_unit.js +0 -468
- package/test/text/srt_text_parser_unit.js +0 -163
- package/test/text/ssa_text_parser_unit.js +0 -382
- package/test/text/text_displayer_layout_unit.js +0 -323
- package/test/text/text_engine_unit.js +0 -500
- package/test/text/text_track_integration.js +0 -186
- package/test/text/ttml_text_parser_unit.js +0 -2176
- package/test/text/ui_text_displayer_unit.js +0 -608
- package/test/text/vtt_text_parser_unit.js +0 -1363
- package/test/text/web_vtt_generator_unit.js +0 -144
- package/test/text/web_vtt_layout_integration.js +0 -524
- package/test/transmuxer/transmuxer_engine_integration.js +0 -69
- package/test/transmuxer/transmuxer_integration.js +0 -443
- package/test/ui/ad_ui_unit.js +0 -369
- package/test/ui/localization_unit.js +0 -508
- package/test/ui/ui_customization_unit.js +0 -208
- package/test/ui/ui_integration.js +0 -669
- package/test/ui/ui_unit.js +0 -902
- package/test/util/abortable_operation_unit.js +0 -624
- package/test/util/array_utils_unit.js +0 -58
- package/test/util/buffer_utils_unit.js +0 -185
- package/test/util/cmcd_manager_unit.js +0 -440
- package/test/util/content_steering_manager_unit.js +0 -427
- package/test/util/data_view_reader_unit.js +0 -254
- package/test/util/ebml_parser_unit.js +0 -297
- package/test/util/event_manager_unit.js +0 -185
- package/test/util/fake_event_target_unit.js +0 -123
- package/test/util/id3_utils_unit.js +0 -168
- package/test/util/iterables_unit.js +0 -68
- package/test/util/language_utils_unit.js +0 -240
- package/test/util/manifest_parser_utils_unit.js +0 -55
- package/test/util/mime_utils_unit.js +0 -64
- package/test/util/mp4_box_parsers_unit.js +0 -246
- package/test/util/mp4_parser_unit.js +0 -373
- package/test/util/multi_map_unit.js +0 -94
- package/test/util/object_utils_unit.js +0 -79
- package/test/util/periods_unit.js +0 -1623
- package/test/util/pssh_unit.js +0 -226
- package/test/util/state_history_unit.js +0 -101
- package/test/util/stream_utils_unit.js +0 -1068
- package/test/util/string_utils_unit.js +0 -166
- package/test/util/text_parser_unit.js +0 -165
- package/test/util/ts_parser_unit.js +0 -77
- package/test/util/xml_utils_unit.js +0 -444
package/demo/input.js
DELETED
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/*! @license
|
|
2
|
-
* Shaka Player
|
|
3
|
-
* Copyright 2016 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
goog.provide('shakaDemo.BoolInput');
|
|
8
|
-
goog.provide('shakaDemo.DatalistInput');
|
|
9
|
-
goog.provide('shakaDemo.Input');
|
|
10
|
-
goog.provide('shakaDemo.NumberInput');
|
|
11
|
-
goog.provide('shakaDemo.SelectInput');
|
|
12
|
-
goog.provide('shakaDemo.TextInput');
|
|
13
|
-
|
|
14
|
-
goog.requireType('shakaDemo.InputContainer');
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Creates and contains the MDL elements of a type of input.
|
|
18
|
-
*/
|
|
19
|
-
shakaDemo.Input = class {
|
|
20
|
-
/**
|
|
21
|
-
* @param {!shakaDemo.InputContainer} parentContainer
|
|
22
|
-
* @param {string} inputType The element type for the input object.
|
|
23
|
-
* @param {string} containerType The element type for the container containing
|
|
24
|
-
* the input object.
|
|
25
|
-
* @param {string} extraType The element type for the "sibling element" to the
|
|
26
|
-
* input object. If null, it adds no such element.
|
|
27
|
-
* @param {function(!HTMLInputElement, !shakaDemo.Input)} onChange
|
|
28
|
-
*/
|
|
29
|
-
constructor(parentContainer, inputType, containerType, extraType, onChange) {
|
|
30
|
-
/** @private {!Element} */
|
|
31
|
-
this.container_ = document.createElement(containerType);
|
|
32
|
-
parentContainer.latestElementContainer.appendChild(this.container_);
|
|
33
|
-
|
|
34
|
-
/** @private {!HTMLInputElement} */
|
|
35
|
-
this.input_ =
|
|
36
|
-
/** @type {!HTMLInputElement} */(document.createElement(inputType));
|
|
37
|
-
this.input_.onchange = () => {
|
|
38
|
-
onChange(this.input_, this);
|
|
39
|
-
};
|
|
40
|
-
// <textarea> elements need to also react to 'input' events.
|
|
41
|
-
if (inputType == 'textarea') {
|
|
42
|
-
this.input_.oninput = () => {
|
|
43
|
-
onChange(this.input_, this);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
this.input_.id = shakaDemo.Input.generateNewId_('input');
|
|
47
|
-
this.container_.appendChild(this.input_);
|
|
48
|
-
|
|
49
|
-
if (parentContainer.latestTooltip) {
|
|
50
|
-
// Since the row isn't focusable, add the tooltip information into the
|
|
51
|
-
// accessibility data of the input, so it can be accessed by users using
|
|
52
|
-
// screen readers.
|
|
53
|
-
const extraInfo = document.createElement('span');
|
|
54
|
-
extraInfo.textContent = parentContainer.latestTooltip;
|
|
55
|
-
extraInfo.classList.add('hidden');
|
|
56
|
-
extraInfo.id = shakaDemo.Input.generateNewId_('extra-info');
|
|
57
|
-
this.container_.appendChild(extraInfo);
|
|
58
|
-
this.input_.setAttribute('aria-describedby', extraInfo.id);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Most MDL inputs require some sort of "sibling element" that exists at
|
|
63
|
-
* the same level as the input itself. These other elements are used to
|
|
64
|
-
* create various visual effects, such as the ripple effect.
|
|
65
|
-
* @private {?Element}
|
|
66
|
-
*/
|
|
67
|
-
this.extra_ = null;
|
|
68
|
-
if (extraType) {
|
|
69
|
-
this.extra_ = document.createElement(extraType);
|
|
70
|
-
this.container_.appendChild(this.extra_);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** @return {!HTMLInputElement} */
|
|
75
|
-
input() {
|
|
76
|
-
return this.input_;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** @return {!Element} */
|
|
80
|
-
container() {
|
|
81
|
-
return this.container_;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/** @return {?Element} */
|
|
85
|
-
extra() {
|
|
86
|
-
return this.extra_;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/** @param {boolean} valid */
|
|
90
|
-
setValid(valid) {
|
|
91
|
-
if (valid) {
|
|
92
|
-
this.input_.setCustomValidity(''); // valid
|
|
93
|
-
this.container_.classList.remove('is-invalid');
|
|
94
|
-
} else {
|
|
95
|
-
this.input_.setCustomValidity('invalid'); // any message will do
|
|
96
|
-
this.container_.parentElement.classList.add('is-invalid');
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @param {string} prefix
|
|
102
|
-
* @return {string}
|
|
103
|
-
* @private
|
|
104
|
-
*/
|
|
105
|
-
static generateNewId_(prefix) {
|
|
106
|
-
const idNumber = shakaDemo.Input.lastId_;
|
|
107
|
-
shakaDemo.Input.lastId_ += 1;
|
|
108
|
-
return prefix + '-labeled-' + idNumber;
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
/** @private {number} */
|
|
114
|
-
shakaDemo.Input.lastId_ = 0;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Creates and contains the MDL elements of a select input.
|
|
119
|
-
*/
|
|
120
|
-
shakaDemo.SelectInput = class extends shakaDemo.Input {
|
|
121
|
-
/**
|
|
122
|
-
* @param {!shakaDemo.InputContainer} parentContainer
|
|
123
|
-
* @param {?string} name
|
|
124
|
-
* @param {function(!HTMLInputElement, !shakaDemo.Input)} onChange
|
|
125
|
-
* @param {!Object.<string, string>} values
|
|
126
|
-
*/
|
|
127
|
-
constructor(parentContainer, name, onChange, values) {
|
|
128
|
-
super(parentContainer, 'select', 'div', 'label', onChange);
|
|
129
|
-
this.container_.classList.add('mdl-textfield');
|
|
130
|
-
this.container_.classList.add('mdl-js-textfield');
|
|
131
|
-
this.container_.classList.add('mdl-textfield--floating-label');
|
|
132
|
-
this.input_.classList.add('mdl-textfield__input');
|
|
133
|
-
this.extra_.classList.add('mdl-textfield__label');
|
|
134
|
-
this.extra_.setAttribute('for', this.input_.id);
|
|
135
|
-
if (name) {
|
|
136
|
-
this.extra_.textContent = name;
|
|
137
|
-
}
|
|
138
|
-
for (const value of Object.keys(values)) {
|
|
139
|
-
const option =
|
|
140
|
-
/** @type {!HTMLOptionElement} */(document.createElement('option'));
|
|
141
|
-
option.textContent = values[value];
|
|
142
|
-
option.value = value;
|
|
143
|
-
this.input_.appendChild(option);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Creates and contains the MDL elements of a bool input.
|
|
151
|
-
*/
|
|
152
|
-
shakaDemo.BoolInput = class extends shakaDemo.Input {
|
|
153
|
-
/**
|
|
154
|
-
* @param {!shakaDemo.InputContainer} parentContainer
|
|
155
|
-
* @param {string} name
|
|
156
|
-
* @param {function(!HTMLInputElement, !shakaDemo.Input)} onChange
|
|
157
|
-
*/
|
|
158
|
-
constructor(parentContainer, name, onChange) {
|
|
159
|
-
super(parentContainer, 'input', 'label', 'span', onChange);
|
|
160
|
-
this.input_.type = 'checkbox';
|
|
161
|
-
this.container_.classList.add('mdl-switch');
|
|
162
|
-
this.container_.classList.add('mdl-js-switch');
|
|
163
|
-
this.container_.classList.add('mdl-js-ripple-effect');
|
|
164
|
-
this.container_.setAttribute('for', this.input_.id);
|
|
165
|
-
this.input_.classList.add('mdl-switch__input');
|
|
166
|
-
this.extra_.classList.add('mdl-switch__label');
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Creates and contains the MDL elements of a text input.
|
|
173
|
-
*/
|
|
174
|
-
shakaDemo.TextInput = class extends shakaDemo.Input {
|
|
175
|
-
/**
|
|
176
|
-
* @param {!shakaDemo.InputContainer} parentContainer
|
|
177
|
-
* @param {string} name
|
|
178
|
-
* @param {function(!HTMLInputElement, !shakaDemo.Input)} onChange
|
|
179
|
-
* @param {boolean=} isTextArea
|
|
180
|
-
*/
|
|
181
|
-
constructor(parentContainer, name, onChange, isTextArea) {
|
|
182
|
-
super(parentContainer, isTextArea ? 'textarea' : 'input', 'div', 'label',
|
|
183
|
-
onChange);
|
|
184
|
-
this.container_.classList.add('mdl-textfield');
|
|
185
|
-
this.container_.classList.add('mdl-js-textfield');
|
|
186
|
-
this.container_.classList.add('mdl-textfield--floating-label');
|
|
187
|
-
this.input_.classList.add('mdl-textfield__input');
|
|
188
|
-
this.extra_.classList.add('mdl-textfield__label');
|
|
189
|
-
this.extra_.setAttribute('for', this.input_.id);
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Creates and contains the MDL elements of a datalist input.
|
|
196
|
-
*/
|
|
197
|
-
shakaDemo.DatalistInput = class extends shakaDemo.TextInput {
|
|
198
|
-
/**
|
|
199
|
-
* @param {!shakaDemo.InputContainer} parentContainer
|
|
200
|
-
* @param {string} name
|
|
201
|
-
* @param {function(!HTMLInputElement, !shakaDemo.Input)} onChange
|
|
202
|
-
* @param {!Array.<string>} values
|
|
203
|
-
*/
|
|
204
|
-
constructor(parentContainer, name, onChange, values) {
|
|
205
|
-
super(parentContainer, name, onChange, /* isTextArea= */ false);
|
|
206
|
-
// This element is not literally a datalist, as those are not supported on
|
|
207
|
-
// all platforms (and they also have no MDL style support).
|
|
208
|
-
// Instead, this is using the third-party "awesomplete" module, which acts
|
|
209
|
-
// as a text field with autocomplete selection.
|
|
210
|
-
const awesomplete = new Awesomplete(this.input_);
|
|
211
|
-
awesomplete.list = values.slice(); // Make a local copy of the values list.
|
|
212
|
-
awesomplete.minChars = 0;
|
|
213
|
-
this.input_.addEventListener('focus', () => {
|
|
214
|
-
// By default, awesomplete does not show suggestions on focusing on the
|
|
215
|
-
// input, only on typing something.
|
|
216
|
-
// This manually updates the suggestions, so that they will show up.
|
|
217
|
-
awesomplete.evaluate();
|
|
218
|
-
});
|
|
219
|
-
this.input_.addEventListener('awesomplete-selectcomplete', () => {
|
|
220
|
-
onChange(this.input_, this);
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Creates and contains the MDL elements of a number input.
|
|
228
|
-
*/
|
|
229
|
-
shakaDemo.NumberInput = class extends shakaDemo.TextInput {
|
|
230
|
-
/**
|
|
231
|
-
* @param {!shakaDemo.InputContainer} parentContainer
|
|
232
|
-
* @param {string} name
|
|
233
|
-
* @param {function(!HTMLInputElement, !shakaDemo.Input)} onChange
|
|
234
|
-
* @param {boolean} canBeDecimal
|
|
235
|
-
* @param {boolean} canBeZero
|
|
236
|
-
* @param {boolean} canBeUnset
|
|
237
|
-
*/
|
|
238
|
-
constructor(
|
|
239
|
-
parentContainer, name, onChange, canBeDecimal, canBeZero, canBeUnset) {
|
|
240
|
-
super(parentContainer, name, onChange, /* isTextArea= */ false);
|
|
241
|
-
const error = document.createElement('span');
|
|
242
|
-
error.classList.add('mdl-textfield__error');
|
|
243
|
-
this.container_.appendChild(error);
|
|
244
|
-
|
|
245
|
-
if (canBeZero && canBeDecimal) {
|
|
246
|
-
error.textContent = 'Must be a positive number.';
|
|
247
|
-
} else if (canBeZero) {
|
|
248
|
-
error.textContent = 'Must be a positive integer.';
|
|
249
|
-
} else if (canBeDecimal) {
|
|
250
|
-
error.textContent = 'Must be a positive, nonzero number.';
|
|
251
|
-
} else {
|
|
252
|
-
error.textContent = 'Must be a positive, nonzero integer.';
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
this.input_.pattern = '(Infinity|';
|
|
256
|
-
if (canBeZero) {
|
|
257
|
-
this.input_.pattern += '[0-9]*';
|
|
258
|
-
} else {
|
|
259
|
-
this.input_.pattern += '[0-9]*[1-9][0-9]*';
|
|
260
|
-
}
|
|
261
|
-
if (canBeDecimal) {
|
|
262
|
-
// TODO: Handle commas as decimal delimeters, for appropriate regions?
|
|
263
|
-
this.input_.pattern += '(.[0-9]+)?';
|
|
264
|
-
}
|
|
265
|
-
this.input_.pattern += ')';
|
|
266
|
-
if (canBeUnset) {
|
|
267
|
-
this.input_.pattern += '?';
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
};
|
package/demo/input_container.js
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
/*! @license
|
|
2
|
-
* Shaka Player
|
|
3
|
-
* Copyright 2016 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
goog.provide('shakaDemo.InputContainer');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
goog.require('shakaDemo.Tooltips');
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Creates elements for containing inputs. It represents a single "section" of
|
|
15
|
-
* input.
|
|
16
|
-
* It contains a number of "rows", each of which contains an optional label and
|
|
17
|
-
* an input.
|
|
18
|
-
* It also has an optional header, which can contain style-dependent
|
|
19
|
-
* functionality.
|
|
20
|
-
*/
|
|
21
|
-
shakaDemo.InputContainer = class {
|
|
22
|
-
/**
|
|
23
|
-
* @param {!Element} parentDiv
|
|
24
|
-
* @param {?string} headerText The text to be displayed by the header.
|
|
25
|
-
* If null, there will be no header.
|
|
26
|
-
* @param {!shakaDemo.InputContainer.Style} style
|
|
27
|
-
* @param {?string} docLink
|
|
28
|
-
*/
|
|
29
|
-
constructor(parentDiv, headerText, style, docLink) {
|
|
30
|
-
/** @private {!shakaDemo.InputContainer.Style} */
|
|
31
|
-
this.style_ = style;
|
|
32
|
-
|
|
33
|
-
/** @private {?Element} */
|
|
34
|
-
this.header_;
|
|
35
|
-
|
|
36
|
-
/** @private {!Element} */
|
|
37
|
-
this.table_ = document.createElement('div');
|
|
38
|
-
|
|
39
|
-
/** @private {?Element} */
|
|
40
|
-
this.latestRow_;
|
|
41
|
-
|
|
42
|
-
/** @private {?string} */
|
|
43
|
-
this.defaultRowClass_ = null;
|
|
44
|
-
|
|
45
|
-
/** @type {?Element} */
|
|
46
|
-
this.latestElementContainer;
|
|
47
|
-
|
|
48
|
-
/** @type {?string} */
|
|
49
|
-
this.latestTooltip;
|
|
50
|
-
|
|
51
|
-
/** @private {number} */
|
|
52
|
-
this.numRows_ = 0;
|
|
53
|
-
|
|
54
|
-
if (headerText) {
|
|
55
|
-
this.createHeader_(parentDiv, headerText);
|
|
56
|
-
}
|
|
57
|
-
this.table_.classList.add(style);
|
|
58
|
-
if (style == shakaDemo.InputContainer.Style.ACCORDION) {
|
|
59
|
-
this.table_.classList.add('hidden');
|
|
60
|
-
}
|
|
61
|
-
parentDiv.appendChild(this.table_);
|
|
62
|
-
if (docLink) {
|
|
63
|
-
this.addDocLink_(this.table_, docLink);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @return {boolean} true if this is an open accordion menu, false otherwise
|
|
69
|
-
*/
|
|
70
|
-
getIsOpen() {
|
|
71
|
-
if (this.style_ == shakaDemo.InputContainer.Style.ACCORDION) {
|
|
72
|
-
return this.table_.classList.contains('show');
|
|
73
|
-
}
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** If this is an accordion menu, open it. */
|
|
78
|
-
open() {
|
|
79
|
-
if (!this.style_ == shakaDemo.InputContainer.Style.ACCORDION) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
this.table_.classList.remove('hidden');
|
|
83
|
-
setTimeout(() => {
|
|
84
|
-
this.table_.classList.add('show');
|
|
85
|
-
}, /* milliseconds= */ 20);
|
|
86
|
-
this.header_.classList.add('mdl-button--colored');
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/** If this is an accordion menu, close it. */
|
|
90
|
-
close() {
|
|
91
|
-
if (this.style_ != shakaDemo.InputContainer.Style.ACCORDION) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
this.table_.classList.remove('show');
|
|
95
|
-
this.table_.addEventListener('transitionend', (e) => {
|
|
96
|
-
this.table_.classList.add('hidden');
|
|
97
|
-
}, {once: true});
|
|
98
|
-
this.header_.classList.remove('mdl-button--colored');
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @param {!Element} parentDiv
|
|
103
|
-
* @param {string} headerText
|
|
104
|
-
* @private
|
|
105
|
-
*/
|
|
106
|
-
createHeader_(parentDiv, headerText) {
|
|
107
|
-
if (this.style_ == shakaDemo.InputContainer.Style.ACCORDION) {
|
|
108
|
-
this.header_ = document.createElement('button');
|
|
109
|
-
this.header_.classList.add('mdl-button--raised');
|
|
110
|
-
this.header_.classList.add('mdl-button');
|
|
111
|
-
this.header_.classList.add('mdl-js-button');
|
|
112
|
-
this.header_.classList.add('mdl-js-ripple-effect');
|
|
113
|
-
this.header_.addEventListener('click', () => {
|
|
114
|
-
// Show/hide the table.
|
|
115
|
-
if (this.getIsOpen()) {
|
|
116
|
-
this.close();
|
|
117
|
-
} else {
|
|
118
|
-
this.open();
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
this.header_ = document.createElement('div');
|
|
123
|
-
this.header_.classList.add('input-header');
|
|
124
|
-
}
|
|
125
|
-
this.header_.textContent = headerText;
|
|
126
|
-
parentDiv.appendChild(this.header_);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Creates a link that links to a section within the Shaka Player docs.
|
|
131
|
-
* @param {!Element} parentDiv
|
|
132
|
-
* @param {string} docLink
|
|
133
|
-
* @private
|
|
134
|
-
*/
|
|
135
|
-
addDocLink_(parentDiv, docLink) {
|
|
136
|
-
const link = /** @type {!HTMLAnchorElement} */(document.createElement('a'));
|
|
137
|
-
link.href = docLink;
|
|
138
|
-
link.target = '_blank';
|
|
139
|
-
link.classList.add('mdl-button');
|
|
140
|
-
link.classList.add('mdl-js-button');
|
|
141
|
-
link.classList.add('mdl-js-ripple-effect');
|
|
142
|
-
link.classList.add('mdl-button--colored');
|
|
143
|
-
|
|
144
|
-
const icon = document.createElement('i');
|
|
145
|
-
icon.classList.add('material-icons-round');
|
|
146
|
-
icon.textContent = 'help';
|
|
147
|
-
|
|
148
|
-
link.appendChild(icon);
|
|
149
|
-
parentDiv.appendChild(link);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Set the default row class for future calls to addRow().
|
|
154
|
-
*
|
|
155
|
-
* @param {?string} rowClass
|
|
156
|
-
*/
|
|
157
|
-
setDefaultRowClass(rowClass) {
|
|
158
|
-
this.defaultRowClass_ = rowClass;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Return the CSS class list for the container.
|
|
163
|
-
*
|
|
164
|
-
* @return {!DOMTokenList}
|
|
165
|
-
*/
|
|
166
|
-
getClassList() {
|
|
167
|
-
return this.table_.classList;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Makes a row, for storing an input.
|
|
172
|
-
* @param {?string} labelString
|
|
173
|
-
* @param {?string} tooltipString
|
|
174
|
-
* @param {string=} rowClass
|
|
175
|
-
*/
|
|
176
|
-
addRow(labelString, tooltipString, rowClass) {
|
|
177
|
-
rowClass = rowClass || this.defaultRowClass_ || '';
|
|
178
|
-
this.latestRow_ = document.createElement('div');
|
|
179
|
-
if (rowClass) {
|
|
180
|
-
this.latestRow_.classList.add(rowClass);
|
|
181
|
-
}
|
|
182
|
-
this.table_.appendChild(this.latestRow_);
|
|
183
|
-
|
|
184
|
-
const elementId = 'input-container-row-' + this.numRows_;
|
|
185
|
-
this.numRows_ += 1;
|
|
186
|
-
|
|
187
|
-
if (labelString) {
|
|
188
|
-
const label = document.createElement('label');
|
|
189
|
-
label.setAttribute('for', elementId);
|
|
190
|
-
label.classList.add('input-container-label');
|
|
191
|
-
const labelText = document.createElement('b');
|
|
192
|
-
labelText.textContent = labelString;
|
|
193
|
-
label.appendChild(labelText);
|
|
194
|
-
this.latestRow_.appendChild(label);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
this.latestElementContainer = document.createElement('div');
|
|
198
|
-
this.latestRow_.appendChild(this.latestElementContainer);
|
|
199
|
-
|
|
200
|
-
this.latestElementContainer.classList.add('input-container-row');
|
|
201
|
-
this.latestElementContainer.id = elementId;
|
|
202
|
-
|
|
203
|
-
this.latestTooltip = tooltipString;
|
|
204
|
-
if (tooltipString) {
|
|
205
|
-
shakaDemo.Tooltips.make(this.latestRow_, tooltipString);
|
|
206
|
-
// Keep the row from being focused.
|
|
207
|
-
this.latestRow_.setAttribute('tabindex', -1);
|
|
208
|
-
this.latestRow_.classList.add('borderless');
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
/** @enum {string} */
|
|
214
|
-
shakaDemo.InputContainer.Style = {
|
|
215
|
-
VERTICAL: 'input-container-style-vertical',
|
|
216
|
-
ACCORDION: 'input-container-style-accordion',
|
|
217
|
-
FLEX: 'input-container-style-flex',
|
|
218
|
-
};
|
package/demo/load.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/*! @license
|
|
2
|
-
* Shaka Player
|
|
3
|
-
* Copyright 2016 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function shakaUncompiledModeSupported() {
|
|
9
|
-
// Check if ES6 arrow function syntax and ES7 async are usable. Both are
|
|
10
|
-
// needed for uncompiled builds to work.
|
|
11
|
-
try {
|
|
12
|
-
eval('async ()=>{}');
|
|
13
|
-
return true;
|
|
14
|
-
} catch (e) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Loads both library and application sources. Chooses compiled or debug
|
|
21
|
-
* version of the sources based on the presence or absence of the URL parameter
|
|
22
|
-
* "compiled". Uses the global arrays COMPILED_JS, COMPILED_DEBUG_JS, and
|
|
23
|
-
* UNCOMPILED_JS, defined by the application in advance.
|
|
24
|
-
*
|
|
25
|
-
* This dynamic loading process is not necessary in a production environment,
|
|
26
|
-
* but simplifies the process of switching between compiled and uncompiled
|
|
27
|
-
* mode during development.
|
|
28
|
-
*/
|
|
29
|
-
(function() { // anonymous namespace
|
|
30
|
-
// The URL of the page itself, without URL fragments or search strings.
|
|
31
|
-
var pageUrl = location.href.split('#')[0].split('?')[0];
|
|
32
|
-
// The URL of the page, up to and including the final '/'.
|
|
33
|
-
var baseUrl = pageUrl.split('/').slice(0, -1).join('/') + '/';
|
|
34
|
-
|
|
35
|
-
function loadRelativeScript(src) {
|
|
36
|
-
importScript(baseUrl + src);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// NOTE: This is a quick-and-easy hack based on assumption that the old
|
|
40
|
-
// demo page will be replaced in the near future.
|
|
41
|
-
function loadSpecificCss(href, linkRel) {
|
|
42
|
-
var link = document.createElement('link');
|
|
43
|
-
link.type = 'text/css';
|
|
44
|
-
link.href = baseUrl + href;
|
|
45
|
-
link.rel = linkRel;
|
|
46
|
-
|
|
47
|
-
document.head.appendChild(link);
|
|
48
|
-
}
|
|
49
|
-
function loadCss(buildType) {
|
|
50
|
-
// These should override the compiled versions, which have already been
|
|
51
|
-
// hard-coded into the HTML. This get us the best balance between avoiding
|
|
52
|
-
// a flash of unstyled content and allowing the developer to quickly reload
|
|
53
|
-
// uncompiled LESS in uncompiled mode.
|
|
54
|
-
if (buildType == 'uncompiled') {
|
|
55
|
-
loadSpecificCss('../ui/controls.less', 'stylesheet/less');
|
|
56
|
-
loadSpecificCss('../demo/demo.less', 'stylesheet/less');
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function importScript(src) {
|
|
61
|
-
var script = document.createElement('script');
|
|
62
|
-
script.type = 'text/javascript';
|
|
63
|
-
script.src = src;
|
|
64
|
-
script.defer = true;
|
|
65
|
-
// Setting async = false is important to make sure the script is imported
|
|
66
|
-
// before the 'load' event fires.
|
|
67
|
-
script.async = false; // eslint-disable-line id-denylist
|
|
68
|
-
document.head.appendChild(script);
|
|
69
|
-
|
|
70
|
-
// Signal success, or else the Closure Library's loader will not load the
|
|
71
|
-
// next script.
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
window.CLOSURE_IMPORT_SCRIPT = importScript;
|
|
76
|
-
|
|
77
|
-
var fields = location.search.substr(1);
|
|
78
|
-
fields = fields ? fields.split(';') : [];
|
|
79
|
-
var fragments = location.hash.substr(1);
|
|
80
|
-
fragments = fragments ? fragments.split(';') : [];
|
|
81
|
-
var combined = fields.concat(fragments);
|
|
82
|
-
|
|
83
|
-
var buildType = 'uncompiled';
|
|
84
|
-
var buildSpecified = false;
|
|
85
|
-
|
|
86
|
-
if (!shakaUncompiledModeSupported()) {
|
|
87
|
-
// If uncompiled mode is not supported, default to the compiled debug
|
|
88
|
-
// version, which should still work.
|
|
89
|
-
buildType = 'debug_compiled';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
if (!navigator.onLine) {
|
|
93
|
-
// If we're offline, default to the compiled version, which may have been
|
|
94
|
-
// cached by the service worker.
|
|
95
|
-
buildType = 'compiled';
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Very old browsers do not have Array.prototype.indexOf, so we loop.
|
|
99
|
-
for (var i = 0; i < combined.length; ++i) {
|
|
100
|
-
if (combined[i] == 'build=compiled') {
|
|
101
|
-
buildType = 'compiled';
|
|
102
|
-
buildSpecified = true;
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
if (combined[i] == 'build=debug_compiled') {
|
|
106
|
-
buildType = 'debug_compiled';
|
|
107
|
-
buildSpecified = true;
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
if (combined[i] == 'build=uncompiled') {
|
|
111
|
-
buildType = 'uncompiled';
|
|
112
|
-
buildSpecified = true;
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (!shakaUncompiledModeSupported() && buildType == 'uncompiled') {
|
|
118
|
-
// The URL says uncompiled, but we know it won't work. This URL was
|
|
119
|
-
// probably copied from some other browser, but it won't work in this one.
|
|
120
|
-
// Force the use of the compiled debug build and update the hash.
|
|
121
|
-
buildType = 'debug_compiled';
|
|
122
|
-
|
|
123
|
-
// Replace the build type in either the hash or the URL parameters.
|
|
124
|
-
// At this point, we don't know precisely which contained the build type.
|
|
125
|
-
location.hash = location.hash.replace(
|
|
126
|
-
'build=uncompiled', 'build=debug_compiled');
|
|
127
|
-
location.href = location.href.replace(
|
|
128
|
-
'build=uncompiled', 'build=debug_compiled');
|
|
129
|
-
// Changing location.href will trigger a refresh of the page. If the
|
|
130
|
-
// build type was in the URL parameters, the page will now be refreshed.
|
|
131
|
-
// If the build type was in the hash, the page will continue to load with
|
|
132
|
-
// an updated hash and the correct library type.
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// If no build was specified in the URL, update the fragment with the default
|
|
136
|
-
// we chose.
|
|
137
|
-
if (!buildSpecified) {
|
|
138
|
-
if (location.hash.length) {
|
|
139
|
-
location.hash += ';';
|
|
140
|
-
}
|
|
141
|
-
location.hash += 'build=' + buildType;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
loadCss(buildType);
|
|
145
|
-
|
|
146
|
-
// The application must define its list of compiled and uncompiled sources
|
|
147
|
-
// before including this loader. The URLs should be relative to the page.
|
|
148
|
-
var scripts = {
|
|
149
|
-
'compiled': window['COMPILED_JS'],
|
|
150
|
-
'debug_compiled': window['COMPILED_DEBUG_JS'],
|
|
151
|
-
'uncompiled': window['UNCOMPILED_JS'],
|
|
152
|
-
}[buildType];
|
|
153
|
-
for (var j = 0; j < scripts.length; ++j) {
|
|
154
|
-
loadRelativeScript(scripts[j]);
|
|
155
|
-
}
|
|
156
|
-
})(); // anonymous namespace
|