songz / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Other
162 stars 271 forks source link

Failed to fetch plugin #239

Open joancolmenerodev opened 6 years ago

joancolmenerodev commented 6 years ago

I've created an Ionic2 project and I'm trying to implement this plugin on it, but when I try to install the plugin with this command : ionic cordova plugin add https://github.com/songz/cordova-plugin-opentok/ it says this :

image

What I'm missing?

msach22 commented 6 years ago

@joancolmenerodev You can use the updated version of the plugin available here: https://github.com/opentok/cordova-plugin-opentok

For an Ionic sample app, check out this repo: https://github.com/msach22/opentok-ionic-samples

joancolmenerodev commented 6 years ago

It still saying to me this : Error: Failed to fetch plugin https://github.com/msach22/cordova-plugin-opentok/ via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: cmd: Command failed with exit code 1 Error output: npm ERR! code 128 npm ERR! Command failed: E:\Git\cmd\git.EXE submodule update -q --init --recursive npm ERR! fatal: 'submodule' appears to be a git command, but we were not npm ERR! able to execute it. Maybe git-submodule is broken? npm ERR! [ERROR] An error occurred while running cordova plugin add https://github.com/msach22/cordova-plugin-opentok/ --save (exit code 1).

msach22 commented 6 years ago

@joancolmenerodev I just tested installing the plugin and I'm able to download it without any issues. Did you create an Ionic project using ionic start {appName}? Could you try creating a fresh Ionic project and try installing the plugin? If you still see this persist, I recommend cloning the following repo: https://github.com/opentok/opentok-ionic-samples and testing out the Basic-Video-Chat sample.

I've also moved the plugin over to the OpenTok GitHub Organization so if you want to use the latest plugin, please check: https://github.com/opentok/cordova-plugin-opentok

joancolmenerodev commented 6 years ago

Yes, indeed, I've created a new Ionic project to test it. Your sample is Video-Chat, I can use only VoIP? And I have for example a apiKey to test it?

msach22 commented 6 years ago

@joancolmenerodev Were you able to install the plugin correctly? You can do a VOIP call by setting the publishVideo publisher property to false or setting videoSource property to false. If you set videoSource to false, you cannot change to the video state later in the session, however, if you set the publishVideo property to false, you can publish video later: https://github.com/opentok/cordova-plugin-opentok/blob/master/docs/ot.md#initPublisher

apicpich commented 6 years ago

capture21

I have the same issue when I use: ionic cordova plugin add https://github.com/opentok/cordova-plugin-opentok/ either from fresh ionic project or clone the repo: https://github.com/opentok/opentok-ionic-samples. Any advise to go on, please.

msach22 commented 6 years ago

@apicpich I'm not able to reproduce this issue and I'm starting with a fresh Ionic project as well. Node version: 8.4.0 NPM version: 5.2.0 Ionic CLI version: 3.10.3