Commit 4f9248a4 authored by liujiangnan's avatar liujiangnan

fix: 进度条

parent d020069c
......@@ -46,7 +46,6 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
getData((data) => {
if (data && typeof data === 'object') {
this.data = data;
console.log(this.data)
}
this.hasVideo = !!this.data.contentObj.video_url
window["air"].hideAirClassLoading(this.saveKey, this.data);
......@@ -129,7 +128,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
const player = event.target;
this.currentTime = player.currentTime;
this.progress = Math.floor((player.currentTime / player.duration) * 100);
console.log(this.progress);
this.duration = this.player.duration;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment