add more control

This commit is contained in:
Harvey Zack committed 2018-10-23 10:55:02 +08:00
1 parent 757fbd6596
commit dfd71c06b6
14 files changed
+230 -77

No files matched your search

+2 -2
View File
@@ -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) {