@vladjerca/yt-player
v0.3.1
Published
`app.module` configuration
Downloads
1
Readme
Component Usage
app.module
configuration
import { YtPlayerModule } from '@vladjerca/yt-player';
@NgModule({
imports: [
YtPlayerModule,
]
})
export class AppModule { }
### Video Player
markup
<!-- Video source file, accepted formats: mp4, ogv, webm. -->
<yt-video-player>
<yt-source [src]="video.mp4"></yt-source>
<yt-source [src]="video.ogg"></yt-source>
<yt-source [src]="video.webm"></yt-source>
</yt-video-player>
API:
@Input()
muted: boolean;
@Input()
preload: PreloadStrategy;
@Input()
autoplay: boolean;
@Input()
loop: boolean;
Video Player
markup
<!-- Video source file, accepted formats: mp4, ogv, webm. -->
<yt-image-player [images]="[
'http://localhost/frame01.jpg',
'http://localhost/frame02.jpg',
'http://localhost/frame03.jpg',
'http://localhost/frame04.jpg',
'http://localhost/frame05.jpg'
]"
[fps]="1">
</yt-image-player>
API:
@Input()
images: string[];
@Input()
fps: number;
@Input()
preload: PreloadStrategy;
@Input()
autoplay: boolean;
@Input()
loop: boolean;