Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Play this Video #34

Closed
djsanj007 opened this issue May 19, 2017 · 8 comments
Closed

Can't Play this Video #34

djsanj007 opened this issue May 19, 2017 · 8 comments

Comments

@djsanj007
Copy link

I am getting error in Android 5+ "Can't Play video" works fine in Samsung Device but fail in other Android Device.
I tried adding the YouTubeApiKey in the Config.xml but still issue persist
Please suggest.

@sanjib-dev
Copy link

@djsanj007
Copy link
Author

@sanjib-dev
I tried to add the provided plugin earlier as it is also provided on the Ionic Native Page, But adding it via cordova/ionic plugin add command returns following error
'Error: Failed to fetch plugin https://github.com/JonSmart/CordovaYoutubeVideoPlayer via registry.
Probably this is either a connection problem, or plugin spec is incorrect.'

I also tried to manually download the repositry & add it via add plugin via local, but the package.json was not there in the downloaded zip from
https://github.com/JonSmart/CordovaYoutubeVideoPlayer

@sanjib-dev
Copy link

sanjib-dev commented May 21, 2017 via email

@djsanj007
Copy link
Author

Hi @sanjib-dev, I tried again with the fresh new Ionic 2 Project, but still the same issue persist, I tried to add the same plugin on three different-2 machines, I am able to add other plugin listed on Ionic/Native page, but facing issue with this plugin, I tried Network Information, InAppBrowser all are getting added but not this one :(
Are you able to add this plugin into your Ionic 2 project?

@sanjib-dev
Copy link

sanjib-dev commented May 22, 2017 via email

@djsanj007
Copy link
Author

Can you send me the folder added in the Plugins folder of the project & entry in the fetch.json file!!?

@djsanj007
Copy link
Author

What is the name of the plugin show while run the Ionic Plugin list command in the terminal

@djsanj007
Copy link
Author

@sanjib-dev I figured it out, I was using Cordova version 7.0.1, & It expect package.json in the plugin code, the current repo didn't have the package.json, so i forked the branch & added package.json in it, & added it using the same command
Now it work for older cordova version package.json was not mandatory in the plugin, that's why it was working fine for many user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants