TeamMaestro / nativescript-opentok

Integrates OpenTok (TokBox) WebRTC for NativeScript.
Other
10 stars 16 forks source link

integrate with Angular 2 #38

Closed mironcaius closed 7 years ago

mironcaius commented 7 years ago

Hello, I have build an ionic 2 app. I want to add video call between users and came upon your plugin. I have looked over the wiki regarding angular 2 integration, but it does not work.

import {TNSOTSession, TNSOTPublisher, TNSOTSubscriber} from "nativescript-opentok"; this displays an error like: Cannot find module "nativescript-opentok"

I installed the library using this command: npm install nativescript-opentok --save

Could you please help me solve this problem ?

sean-perkins commented 7 years ago

Angular 2 integration does work. Please refer to the demo repositories. Also make sure you are building a Nativescript app.