Project

General

Profile

Actions

Feature #408

open

Gallery display like videos images and document

Added by Pratyusha Atmakuri 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Pratyusha Atmakuri
Target version:
-
Start date:
15/05/2024
Due date:
% Done:

100%

Estimated time:
Deployed In:
Category:

Files

bunny1.png (24.4 KB) bunny1.png Pratyusha Atmakuri, 15/05/2024 09:45 PM
bunny.png (25.7 KB) bunny.png Pratyusha Atmakuri, 15/05/2024 09:45 PM
Video-player.mov (78.4 MB) Video-player.mov Pratyusha Atmakuri, 15/05/2024 09:45 PM
video-slide.zip (73.8 MB) video-slide.zip Pratyusha Atmakuri, 15/05/2024 09:47 PM
Excel,pdf,ppt,doc.mov (69.3 MB) Excel,pdf,ppt,doc.mov Pratyusha Atmakuri, 16/05/2024 08:24 PM
online_excel.zip (6.73 KB) online_excel.zip Pratyusha Atmakuri, 16/05/2024 08:24 PM
4th second Video Plays from .mov (65.3 MB) 4th second Video Plays from .mov Pratyusha Atmakuri, 21/05/2024 10:58 PM
Video by passing time.zip (7.23 KB) Video by passing time.zip Pratyusha Atmakuri, 21/05/2024 10:59 PM
60FPS_frames.mov (20.3 MB) 60FPS_frames.mov Pratyusha Atmakuri, 21/05/2024 11:49 PM
60FPS.zip (7.54 KB) 60FPS.zip Pratyusha Atmakuri, 21/05/2024 11:50 PM

Updated by Pratyusha Atmakuri 11 months ago

Implemented video gallery for multiple videos

Updated by Pratyusha Atmakuri 11 months ago

Added Document example Excel, PPt, Document. Code is embed with online link https://view.officeapps.live.com/op/embed.aspx?src=

Updated by Pratyusha Atmakuri 11 months ago

A video plays from start time 4 seconds passing value from a parameter

Attached Video and source files here

Updated by Pratyusha Atmakuri 11 months ago

Video will be played 60 FPS by passing a parameter value in the component

Actions #5

Updated by Pratyusha Atmakuri 11 months ago

  • % Done changed from 80 to 90

Forward & Backword Icon on a video player

---------------HTML--------------------

<div class="video-container">
<video #videoplayer controls>
<source src="assets/bunny1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="controls">
<button (click)="backward(10)">
<i class="fas fa-backward"></i>
</button>
<button (click)="forward(10)">
<i class="fas fa-forward"></i>
</button>
</div>
</div>

-----------------App component-----------
import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
@ViewChild('videoplayer', { static: false })
videoPlayer!: ElementRef<HTMLVideoElement>;

// Your other properties and methods...
backward(seconds: number): void {
const video = this.videoPlayer.nativeElement;
video.currentTime = Math.max(video.currentTime - seconds, 0);
}
forward(seconds: number): void {
const video = this.videoPlayer.nativeElement;
video.currentTime = Math.min(video.currentTime + seconds, video.duration);
}
}

----------------------CSS----------------
.demo-chart {
height: 400px;
}

video{
width: 100%;
display: block;
}

button{
padding: 5px 10px;
margin: 5px;
cursor: pointer;
}
/* */

.actions {
padding: 0 16px;
min-height: 100%;
display: flex;
align-items: center;
}

.office-viewer {
width: 100%;
height: 80vh; /* 80% of the viewport height */
overflow: hidden;
}

.office-viewer iframe {
height: calc(100% - 22px); /* Adjust as needed */
}

h1,
h3 {
color: green;
text-align: center;
}

.videobox {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.controls {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
}

button {
margin: 0 5px;
padding: 5px;
font-size: 16px;
cursor: pointer;
background-color: transparent;
border: none;
}

button i {
font-size: 24px; /* Adjust icon size as needed */
}

---------------------------CDN Font Awesome----------------------
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">

Actions #6

Updated by Sivakanth Kesiraju 11 months ago

  • Status changed from New to In Progress
Actions #7

Updated by Pratyusha Atmakuri 11 months ago

  • % Done changed from 90 to 100

Added all the details in tthe previous edits

Actions #8

Updated by Pratyusha Atmakuri 11 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF