nativescript-youtubeplayer icon indicating copy to clipboard operation
nativescript-youtubeplayer copied to clipboard

black screen

Open arLevi opened this issue 5 years ago • 1 comments

Not sure if it happens to others, but I just tried this plugin on a blank project.. I created my own key, put the following element:

<YoutubePlayer 
            id="player" 
            src="{{ settings.player.src }}"
            apiKey="***************************"
            no-options="settings.player.options"
            height="250" width="250"
            backgroundColor="gray"></YoutubePlayer>

Run it with tns run android

I'm using it with Angular, imported it according to the docs

And I just receive a black box ( which isn't even in 250px it's always 100% ) that does nothing ... Any ideas ?

arLevi avatar Feb 19 '20 20:02 arLevi

@arLevi Are you missing a this? Did you test the layout with a hard string? src="WKSIRXa6OLk" (It's an id, not a url).

EdJones avatar Feb 21 '20 18:02 EdJones