Re: [AngularJS] How to implement WebRTC using Angular 2

2016-06-13 Thread 'Lucas Lacroix' via AngularJS
PS - looking at the typings definitions for webrtc (not SimpleWebRTC), it looks like everything is global and not part of a module. Maybe SimpleWebRTC has the same issue, in which case, you would need to add the script to the head section of your HTML and then reference the global SimpleWebRTC clas

Re: [AngularJS] How to implement WebRTC using Angular 2

2016-06-13 Thread 'Lucas Lacroix' via AngularJS
Based purely on a guess, it looks like SimpleWebRTC.js is not using a compatible package system. This would explain why the this.webrtc member is different from what you'd expect of an instance of the SimpleWebRTC class. For example, if your tsconfig.json says "module: system" and SimpleWebRTC exp

Re: [AngularJS] How to implement WebRTC using Angular 2

2016-06-13 Thread Do Giang
Ah Yes, When I run the code, I got the error: I use the debug mode from chrome:

Re: [AngularJS] How to implement WebRTC using Angular 2

2016-06-13 Thread 'Lucas Lacroix' via AngularJS
You still haven't said what the issue you're seeing is. On Mon, Jun 13, 2016 at 10:50 AM, Do Giang wrote: > Oh I post wrong code and try to delete it. This one is my code: > I try the demo from this site: https://simplewebrtc.com > > import {Component,OnInit} from '@angular/core'; > > import * a

Re: [AngularJS] How to implement WebRTC using Angular 2

2016-06-13 Thread Do Giang
Oh I post wrong code and try to delete it. This one is my code: I try the demo from this site: https://simplewebrtc.com import {Component,OnInit} from '@angular/core'; import * as SimpleWebRTC from '../demo/simplewebrtc.js'; @Component({ selector: 'demo', template: ` `, st

Re: [AngularJS] How to implement WebRTC using Angular 2

2016-06-13 Thread 'Lucas Lacroix' via AngularJS
Could you give some details on the issue you're seeing? On Mon, Jun 13, 2016 at 10:44 AM, Do Giang wrote: > I and my team decide to build our capstone project using NodeJS, Angular 2 > and WebRTC. Now we have a problem that we can't use WebRTC Libraries in the > Angular 2 App. I tried the simple