@hercilio/ngx-youtube-player
Version:
[](https://travis-ci.org/Hernior/ngx-youtube-player) [](https://badge.fury.io/js/ngx-youtube-player) [![npm d
26 lines • 1.48 kB
TypeScript
import { AfterContentInit, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
import { YoutubePlayerService } from './ngx-youtube-player.service';
import * as i0 from "@angular/core";
export declare class YoutubePlayerComponent implements AfterContentInit {
playerService: YoutubePlayerService;
private elementRef;
private renderer;
videoId: string;
height: number;
width: number;
/**
* @description sets the protocol by the navigator object
* if there is no window, it sets a default http protocol
* unless the protocol is set from outside
*/
protocol: string;
playerVars: YT.PlayerVars;
ready: EventEmitter<YT.Player>;
change: EventEmitter<YT.PlayerEvent>;
constructor(playerService: YoutubePlayerService, elementRef: ElementRef, renderer: Renderer2);
ngAfterContentInit(): void;
getProtocol(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<YoutubePlayerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<YoutubePlayerComponent, "youtube-player", never, { "videoId": { "alias": "videoId"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "protocol": { "alias": "protocol"; "required": false; }; "playerVars": { "alias": "playerVars"; "required": false; }; }, { "ready": "ready"; "change": "change"; }, never, never, false, never>;
}
//# sourceMappingURL=ngx-youtube-player.component.d.ts.map