fix miniProgressBar

This commit is contained in:
Harvey Zack committed 2022-04-27 21:33:48 +08:00
1 parent 64015fcec2
commit 9c5b1cdc4a
3 files changed
+25 -24

No files matched your search

+12 -11
View File
@@ -5663,17 +5663,18 @@
}();
function miniProgressBar(art) {
var layers = art.layers;
layers.add({
name: 'miniProgressBar',
mounted: function mounted($progressBar) {
art.on('destroy', function () {
$progressBar.style.display = 'none';
});
art.on('video:timeupdate', function () {
$progressBar.style.width = "".concat(art.played * 100, "%");
});
}
art.on('ready', function () {
art.layers.add({
name: 'miniProgressBar',
mounted: function mounted($progressBar) {
art.on('destroy', function () {
$progressBar.style.display = 'none';
});
art.on('video:timeupdate', function () {
$progressBar.style.width = "".concat(art.played * 100, "%");
});
}
});
});
return {
name: 'miniProgressBar'