mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
swap notice and seek event (#899)
This commit is contained in:
1 parent
a8458b050b
commit
ff10f4f0a6
1 file changed
+1
-1
@@ -6,10 +6,10 @@ export default function seekMix(art) {
|
|||||||
def(art, 'seek', {
|
def(art, 'seek', {
|
||||||
set(time) {
|
set(time) {
|
||||||
art.currentTime = time;
|
art.currentTime = time;
|
||||||
art.emit('seek', art.currentTime);
|
|
||||||
if (art.duration) {
|
if (art.duration) {
|
||||||
notice.show = `${secondToTime(art.currentTime)} / ${secondToTime(art.duration)}`;
|
notice.show = `${secondToTime(art.currentTime)} / ${secondToTime(art.duration)}`;
|
||||||
}
|
}
|
||||||
|
art.emit('seek', art.currentTime);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user