Glitchbone / CordovaYoutubeVideoPlayer

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

Can't Play this Video #34

Closed djsanj007 closed 6 years ago

djsanj007 commented 7 years ago

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 commented 7 years ago

use this https://github.com/JonSmart/CordovaYoutubeVideoPlayer

djsanj007 commented 6 years ago

@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 commented 6 years ago

It can be a project specific issue and yes if your Internet connection is not stable it will not add to project which I also have faced. Try to create a new one and try it out

On 21-May-2017 18:41, "djsanj007" notifications@github.com wrote:

@sanjib-dev https://github.com/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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Glitchbone/CordovaYoutubeVideoPlayer/issues/34#issuecomment-302935881, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ7AbGVq3r1_hOWXqdePMqyalqy241pPks5r8Df1gaJpZM4NgN8P .

djsanj007 commented 6 years ago

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 commented 6 years ago

Yes.. Using this plug in in my project. No such issues faced.

On 21-May-2017 20:05, "djsanj007" notifications@github.com wrote:

Hi @sanjib-dev https://github.com/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?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Glitchbone/CordovaYoutubeVideoPlayer/issues/34#issuecomment-302940543, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ7AbIMJidg0RSlMZ98OHEIX4MUXLtatks5r8EuagaJpZM4NgN8P .

djsanj007 commented 6 years ago

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

djsanj007 commented 6 years ago

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

djsanj007 commented 6 years ago

@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