@vladjerca/yt-player
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.1 • Public • Published

    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;

    Keywords

    none

    Install

    npm i @vladjerca/yt-player

    DownloadsWeekly Downloads

    0

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    1.06 MB

    Total Files

    111

    Last publish

    Collaborators

    • vladjerca