|
8 | 8 | ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ |
9 | 9 |
|
10 | 10 | * Metro UI v5.1.3 Components Library (https://metroui.org.ua) |
11 | | - * Build: 15.05.2025, 20:59:16 |
| 11 | + * Build: 17.05.2025, 13:20:41 |
12 | 12 | * Copyright 2012-2025 by Serhii Pimenov |
13 | 13 | * Licensed under MIT |
14 | 14 | */ |
|
11314 | 11314 | (($6) => { |
11315 | 11315 | "use strict"; |
11316 | 11316 | globalThis["__version__"] = "5.1.3"; |
11317 | | - globalThis["__build_time__"] = "15.05.2025, 20:59:16"; |
| 11317 | + globalThis["__build_time__"] = "17.05.2025, 13:20:41"; |
11318 | 11318 | const meta_init = $6.meta("metro:init").attr("content"); |
11319 | 11319 | const meta_cloak = $6.meta("metro:cloak").attr("content"); |
11320 | 11320 | const meta_cloak_duration = $6.meta("metro:cloak_duration").attr("content"); |
|
11515 | 11515 | const normalizeComponentName = (name2) => typeof name2 !== "string" ? void 0 : name2.replace(/-/g, "").toLowerCase(); |
11516 | 11516 | const Metro2 = { |
11517 | 11517 | version: "5.1.3", |
11518 | | - build_time: "15.05.2025, 20:59:16", |
| 11518 | + build_time: "17.05.2025, 13:20:41", |
11519 | 11519 | buildNumber: 0, |
11520 | 11520 | isTouchable: isTouch3, |
11521 | 11521 | fullScreenEnabled: document.fullscreenEnabled, |
|
16584 | 16584 | Metro2.Component("audio-player", { |
16585 | 16585 | init: function(options, elem) { |
16586 | 16586 | this._super(elem, options, AudioPlayerDefaultConfig, { |
16587 | | - preloader: null, |
16588 | 16587 | player: null, |
16589 | 16588 | audio: elem, |
16590 | 16589 | stream: null, |
@@ -16644,19 +16643,12 @@ |
16644 | 16643 | const controls = $6("<div>").addClass("controls").addClass(o2.clsControls).insertAfter(element2); |
16645 | 16644 | const stream = $6("<div>").addClass("stream").appendTo(controls); |
16646 | 16645 | const streamSlider = $6("<input>").addClass("stream-slider ultra-thin cycle-marker").appendTo(stream); |
16647 | | - const preloader = $6("<div>").addClass("load-audio").appendTo(stream); |
16648 | 16646 | const volume = $6("<div>").addClass("volume").appendTo(controls); |
16649 | 16647 | const volumeSlider = $6("<input>").addClass("volume-slider ultra-thin cycle-marker").appendTo(volume); |
16650 | 16648 | const infoBox = $6("<div>").addClass("info-box").appendTo(controls); |
16651 | 16649 | if (o2.showInfo !== true) { |
16652 | 16650 | infoBox.hide(); |
16653 | 16651 | } |
16654 | | - preloader.activity({ |
16655 | | - type: "metro", |
16656 | | - style: "color" |
16657 | | - }); |
16658 | | - preloader.hide(0); |
16659 | | - this.preloader = preloader; |
16660 | 16652 | Metro2.makePlugin(streamSlider, "slider", { |
16661 | 16653 | clsMarker: "bg-dark-cyan", |
16662 | 16654 | clsHint: "bg-cyan fg-white", |
|
16723 | 16715 | const audio = this.elem; |
16724 | 16716 | const player = this.player; |
16725 | 16717 | element2.on("loadstart", () => { |
16726 | | - this.preloader.fadeIn(); |
16727 | 16718 | }); |
16728 | 16719 | element2.on("loadedmetadata", () => { |
16729 | 16720 | this.duration = audio.duration.toFixed(0); |
|
16732 | 16723 | }); |
16733 | 16724 | element2.on("canplay", () => { |
16734 | 16725 | this._setBuffer(); |
16735 | | - this.preloader.fadeOut(); |
16736 | 16726 | }); |
16737 | 16727 | element2.on("progress", () => { |
16738 | 16728 | this._setBuffer(); |
|
16744 | 16734 | Metro2.utils.exec(o2.onTime, [audio.currentTime, this.duration, audio, player], element2[0]); |
16745 | 16735 | }); |
16746 | 16736 | element2.on("waiting", () => { |
16747 | | - this.preloader.fadeIn(); |
16748 | 16737 | }); |
16749 | 16738 | element2.on("loadeddata", () => { |
16750 | 16739 | }); |
|
0 commit comments