Commit 95abd31c authored by limingzhe's avatar limingzhe

fix: 上传不上bug

parent 83961943
......@@ -58,6 +58,15 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
this.uploading = false;
this.videoFile = null;
this.uploadUrl = (<any> window).courseware.uploadUrl();
this.uploadData = (<any> window).courseware.uploadData();
window['air'].getUploadCallback = (url, data) => {
this.uploadUrl = url;
this.uploadData = data;
};
}
ngOnChanges() {
// if (!this.videoFile || this.showUploadBtn) {
......
......@@ -171,6 +171,8 @@ export class PlayComponent implements AfterViewInit, OnInit, OnDestroy {
const player = event.target;
this.currentTime = player.currentTime;
this.progress = Math.floor((player.currentTime / player.duration) * 100);
this.duration = this.player.duration;
}
onBtnQuickSeek(delta: number) {
......
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