video delete changes
This commit is contained in:
parent
cfbf1077b8
commit
747b327a87
@ -104,6 +104,8 @@ export class QueriesDocsComponent implements OnInit {
|
||||
getCovidQuesTemplate() {
|
||||
// this.qustCat.covid19Ques().subscribe(res=>{
|
||||
let covidQuesTemplate: any = localStorage.getItem('dynamicQuesTemplate')
|
||||
// console.log(covidQuesTemplate);
|
||||
// console.log('tamil');
|
||||
if (covidQuesTemplate && covidQuesTemplate != null && covidQuesTemplate != undefined
|
||||
) {
|
||||
covidQuesTemplate = JSON.parse(covidQuesTemplate)
|
||||
|
||||
@ -1023,6 +1023,13 @@ export class PdTrigerService {
|
||||
return this._http.post(this.apiUrl+'updateTwlioVideoStatus',params)
|
||||
.pipe(catchError(this.handleError("updateTwlioVideoStatus",[])))
|
||||
}
|
||||
videodelete(id) {
|
||||
|
||||
return this._http.get<any[]>(this.apiUrl+'deleteVideo?id='+id)
|
||||
.pipe(
|
||||
catchError(this.handleError('operation', []))
|
||||
)
|
||||
}
|
||||
getPDImgDetails(params):Observable<any> {
|
||||
// let headers = this.createAuthorizationHeader()
|
||||
return this._http.post(this.apiUrl+'getPDImgDetails',params);
|
||||
|
||||
@ -49,10 +49,17 @@
|
||||
matTooltipPosition="right" (click)="_pd.copyToClipBoard(item.url)">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
|
||||
<!-- <button *ngIf="item.url == '' || !item.url" align="end" style="float: right" mat-stroked-button class="mr-1 mb-1 hover-icon" type="button"
|
||||
(click)="checkVideoStatus(i,item)">
|
||||
Check Status
|
||||
</button> -->
|
||||
</div>
|
||||
<div>
|
||||
<button *ngIf="item.url != '' && item.url" align="end" style="float: right" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Delete Video"
|
||||
matTooltipPosition="right" (click)="deleteVideo(item.id)">
|
||||
<mat-icon>delete</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<mat-divider style="border-top:1px solid rgb(105, 105, 105) !important"></mat-divider>
|
||||
</div>
|
||||
|
||||
@ -6,11 +6,11 @@ import { PdTrigerService } from 'app/personal-discussion/pd-service/pd-triger.se
|
||||
@Component({
|
||||
selector: 'app-video-player',
|
||||
templateUrl: './video-player.component.html',
|
||||
styleUrls: ['./video-player.component.scss']
|
||||
styleUrls: ['./video-player.component.scss']
|
||||
})
|
||||
export class VideoPlayerComponent implements OnInit {
|
||||
playbackList = []
|
||||
// [{name:"Playback 1",duration:"20:01",date:"2020-05-20"},
|
||||
// [{name:"Playback 1",duration:"20:01",date:"2020-05-20"},
|
||||
// {name:"Playback 2",duration:"20:01",date:"2020-05-20"},
|
||||
// {name:"Playback 3",duration:"20:01",date:"2020-05-20"},
|
||||
// {name:"Playback 4",duration:"20:01",date:"2020-05-20"},
|
||||
@ -62,6 +62,7 @@ export class VideoPlayerComponent implements OnInit {
|
||||
if(video_blob) {
|
||||
// this.videoSrc = video_blob;
|
||||
console.log(this.videoSrc);
|
||||
|
||||
}
|
||||
}
|
||||
playVideo(i,obj) {
|
||||
@ -94,5 +95,20 @@ export class VideoPlayerComponent implements OnInit {
|
||||
}
|
||||
|
||||
}
|
||||
deleteVideo(id)
|
||||
{
|
||||
|
||||
this._pd.videodelete(id).subscribe(result=>{
|
||||
|
||||
if(result['status']==200)
|
||||
{
|
||||
this.notifier.notify('success', 'Video Deleted Successfully.');
|
||||
setTimeout(() => {
|
||||
this.matDialogRef.close();
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user