Feature #408
openGallery display like videos images and document
100%
Files
Updated by Pratyusha Atmakuri 11 months ago
- File bunny.png bunny.png added
- File bunny1.png bunny1.png added
- File Video-player.mov Video-player.mov added
- File video-slide.zip video-slide.zip added
- % Done changed from 0 to 20
Implemented video gallery for multiple videos
Updated by Pratyusha Atmakuri 11 months ago
- File Excel,pdf,ppt,doc.mov Excel,pdf,ppt,doc.mov added
- File online_excel.zip online_excel.zip added
- % Done changed from 20 to 40
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
- File 4th second Video Plays from .mov 4th second Video Plays from .mov added
- File Video by passing time.zip Video by passing time.zip added
- % Done changed from 40 to 60
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
- File 60FPS_frames.mov 60FPS_frames.mov added
- File 60FPS.zip 60FPS.zip added
- % Done changed from 60 to 80
Video will be played 60 FPS by passing a parameter value in the component
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">