Commit 3eeb2ed5 authored by liujiangnan's avatar liujiangnan

feat: 修改表单问题

parent 3e12b4fb
......@@ -81,8 +81,8 @@
</div>
</div>
<div class="p-preview" *ngIf="!uploading && videoUrl " >
<!--<video crossorigin="anonymous" [src]="videoUrl" controls #videoNode></video>-->
<video [src]="safeVideoUrl(videoUrl)" controls #videoNode></video>
<video crossorigin="anonymous" [src]="videoUrl" controls #videoNode></video>
<!-- <video [src]="safeVideoUrl(videoUrl)" controls #videoNode></video> -->
</div>
</div>
<div [style.display]="!checkVideoExists?'none':''">
......
......@@ -82,7 +82,8 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
safeVideoUrl(url) {
console.log(url);
return this.sanitization.bypassSecurityTrustResourceUrl(url); // `${url}`;
// return this.sanitization.bypassSecurityTrustResourceUrl(url); // `${url}`;
return url;
}
videoLoadedMetaData() {
......
......@@ -15,6 +15,8 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
dataArr: []
};
// testUrl = "http://staging-teach.cdn.ireadabc.com/0e64dfbfc54a7bd0bb121092f74b130b.mp4";
constructor(public nzMessageService: NzMessageService, public appRef: ApplicationRef, public changeDetectorRef: ChangeDetectorRef) {
super(appRef, changeDetectorRef);
}
......
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