angular_youtube_iframe

A Youtube player component for AngularDart (4+)


Keywords
angular, component, dart, youtube-player
License
BSD-3-Clause

Documentation

angular_youtube_iframe

A Youtube player component for AngularDart (4+) based on Youtube iFrame interop

screenshot

Try the demo

<youtube-iframe [playerId]="'ytvideo'" [videoId]="videoId"
                [start]="videoStart" [end]="videoEnd"
                [width]="width" [height]="height"
                [autoPlay]="autoPlay"
                [showControls]="showControls"
                [showInfos]="showInfos"
                [blockVideoInteraction]="blockVideoInteraction"
                [disableKeyboard]="disableKeyboard"
                [modestBranding]="modestBranding"
                [mobilePlaysInline]="mobilePlaysInline"
                (onReady)="onPlayerReady($event)"
                (onError)="onError($event)"
                (onStateChange)="onStateChange($event)"
                (onDuration)="duration = $event"
                (onPreloadProgress)="preloadProgress = $event"
                (onProgress)="progress = $event"
></youtube-iframe>