mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
improve
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
[lazyLoad]="'data:image/jpg;base64,' + files.FileBase64">
|
||||
|
||||
<video #videoElement [appVisibility]="onVisibilityChange" *ngIf="checkFileType.checkFileType(files.FileExtension ) == 'video'" class="post-video" controls="controls" preload="metadata"
|
||||
webkit-playsinline="webkit-playsinline" (play)="stopvideoService.registerVideoWithEvent($event)">
|
||||
webkit-playsinline="webkit-playsinline" (play)="stopvideoService.registerVideoWithEvent($event)" (click)="preventVideoPlay($event)">
|
||||
<source src="{{'data:video/mp4;base64,' + files.FileBase64}}" type="video/mp4">
|
||||
</video>
|
||||
|
||||
|
||||
@@ -323,6 +323,16 @@ export class ViewPublicationsPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
preventVideoPlay(event: Event): void {
|
||||
// Prevent the default behavior of the click event (which is to play the video)
|
||||
event.preventDefault();
|
||||
|
||||
// You may also want to stop the propagation of the event to prevent any parent click handlers
|
||||
//event.stopPropagation();
|
||||
|
||||
// Optionally, you can add additional logic here
|
||||
}
|
||||
|
||||
async viewPublicationDetail(DocumentId: string) {
|
||||
// alert('nice');
|
||||
const modal = await this.modalController.create({
|
||||
|
||||
Reference in New Issue
Block a user