Commit f7167d44 authored by limingzhe's avatar limingzhe

fix: debug

parent b421624f
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div style="width: 600px; border: 1px #ccc solid; border-radius: 15px; padding: 10px;"> <div *ngIf="item.contentObj" style="width: 600px; border: 1px #ccc solid; border-radius: 15px; padding: 10px;">
<app-upload-video [videoUrl]="item?.contentObj?.video_url?.replace('.mp4', '_h.mp4') || ''" [showUploadBtn]="true" [showCapture]="false" (videoUploaded)="onVideoUploaded($event, 'video_url', item.contentObj)" (onCapture)="handleOnCapture($event,1)"></app-upload-video> <app-upload-video [videoUrl]="item.contentObj.video_url?.replace('.mp4', '_h.mp4') || ''" [showUploadBtn]="true" [showCapture]="false" (videoUploaded)="onVideoUploaded($event, 'video_url', item.contentObj)" (onCapture)="handleOnCapture($event,1)"></app-upload-video>
</div> </div>
......
...@@ -532,7 +532,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -532,7 +532,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
if (this.item?.contentObj?.video_url) { if (this.item?.contentObj?.video_url) {
console.log(' has _l url'); console.log(' has _l url');
this.item.contentObj.video_url = this.item.contentObj.video_url.replace('_l.mp4', '.mp4'); const newUrl = this.item.contentObj.video_url.replace('_l.mp4', '.mp4');
console.log('new Url' + newUrl);
this.item.contentObj.video_url = newUrl;
} }
} }
......
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