export declare enum YoutubePlayerState { Unstarted = -1, Ended = 0, Playing = 1, Paused = 2, Buffering = 3, Cued = 5 } export declare enum YoutubePlayerQuality { Small = "small", Medium = "medium", Large = "large", HD720 = "hd720", HD1080 = "hd1080", HighRes = "highres" } export declare enum YoutubePlayerErrors { InvalidParam = "The request contains an invalid parameter value", HTML5Error = "The requested content cannot be played in an HTML5 player", VideoNotFound = "The video requested was not found", NotEmbeddable = "The owner of the requested video does not allow it to be played in embedded players." } export declare enum YoutubePlayerInternalErrors { InvalidParamErrorCode = 2, HTML5ErrorCode = 5, VideoNotFoundErrorCode = 100, NotEmbeddableErrorCode = 101, CannotFindVideoErrorCode = 105, SameAsNotEmbeddableErrorCode = 150 } import { Property, View } from '@nativescript/core'; export declare const videoIdProperty: Property; export declare const showRelatedVideosProperty: Property; export declare const showYoutubeLogoProperty: Property; export declare const loopProperty: Property; export declare const autoPlayProperty: Property; export declare const showFullScreenToggleProperty: Property; export declare const controlsProperty: Property; export declare const playsInLineProperty: Property; export declare abstract class YoutubePlayerBase extends View { static onReadyEvent: string; static onErrorEvent: string; static onCurrentTimeEvent: string; static onApiReadyEvent: string; static onStateChangeEvent: string; static onFullScreenEvent: string; static onPlayBackQualityEvent: string; static onPlaybackRateChangeEvent: string; videoId: string; showRelatedVideos: boolean; showYoutubeLogo: boolean; loop: boolean; autoPlay: boolean; showFullScreenToggle: boolean; controls: boolean; playsInLine: boolean; } export declare const getPlayerData: (playerVars: any, videoId: any) => string;