mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
fix miniProgressBar
This commit is contained in:
1 parent
64015fcec2
commit
9c5b1cdc4a
3 files changed
+25
-24
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user