angular_youtube_player 1.0.0
angular_youtube_player: ^1.0.0 copied to clipboard
Angular component for Youtube Iframe API
Angular Youtube iframe component #
Example #
import 'package:angular/angular.dart';
import 'package:angular_youtube_player/angular_youtube_player.dart';
@Component(
selector: 'youtube-player-app',
templateUrl: 'app_component.html',
directives: [
YoutubePlayerComponent,
],
)
class App {
void onReady(PlayerEvent event) {
event.target.playVideo();
}
}
<youtube-player [width]="800"
[height]="600"
videoId="nGlh4SVrsFg"
(ready)="onReady($event)"></youtube-player>