Glitchbone / CordovaYoutubeVideoPlayer

Play Youtube Videos in a native Video Player on Android & iOS
MIT License
83 stars 133 forks source link

Anyway to get this to run using Phonegap Serve? #23

Open colinaut opened 8 years ago

colinaut commented 8 years ago

I've added this plugin for my app and successfully got this working using the iOS simulator. However if I try and run it via Phonegap Serve to test it using the PhoneGap Developer app it pops up with "Error: Can't find variable: YoutubeVideoPlayer". Not sure if I'm doing something wrong including it in my app or if there isn't a way to get it running it using Phonegap Serve.

p.s. the reason I'm testing this plugin out over just embedding an iFrame is that the embedded iFrame approach doesn't has the audio silent when the iPhone button is set to mute. Can you tell me if this plugin suffers the same issue?

ronaldso55 commented 8 years ago

I am using this on Meteor and I also got this working using the iOS simulator. I believe I saw the same message as you do when I tested it on my iPhone via a Xcode build. I have also tried the iFrame API and it worked in browser mode but not in mobile mode. Can someone shed some light on why we are seeing this issue?

MastaBaba commented 6 years ago

@ronaldso55 How did you add this package to Meteor?