mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 05:26:15 -08:00
add more control
This commit is contained in:
1 parent
757fbd6596
commit
dfd71c06b6
14 files changed
+230
-77
No files matched your search
+2
-2
@@ -136,11 +136,11 @@ export default class Player {
|
||||
}
|
||||
|
||||
currentTime() {
|
||||
return this.art.refs.$video.currentTime;
|
||||
return this.art.refs.$video.currentTime || 0;
|
||||
}
|
||||
|
||||
duration() {
|
||||
return this.art.refs.$video.duration;
|
||||
return this.art.refs.$video.duration || 0;
|
||||
}
|
||||
|
||||
playbackRate(rate) {
|
||||
|
||||
Reference in new issue
Block a user