Hi Sander,

Thanks for the answer,

i have got some progress by adding the adapter to the import 
"adapter_no_global" to the main.ts file as an import,

i now get 

Attempting to configure 'ontrack' with descriptor {} on object [object 
RTCPeerConnection] and got error, giving up: TypeError: Cannot redifine 
property: ontrack

I assume this is an ontrack problem? and not an adapter problem!

i am still unable to import the adapter into my ts component as it throws a 
js warning 

my project is angular 5-cli typescript project
import * as adapter from 
'node_modules/webrtc-adapter/out/adapter_no_global.js"

i want to use 
console.log(adapter.browserDetails.browser);
console.log(adapter.browserDetails.version);

in my ts component

what syntax can i use to import 
adapter handle?

ps thanks in advance


On Monday, 5 February 2018 17:21:08 UTC+13, Sander Elias wrote:
>
> Hi xploder,
>
> You are loading a shim. the sim itself is as good as invisible to your 
> code.
> Just doing a:
>
> Import "adapter_no_global.js"
>
> Should be enough to get the thing going in the file you are working in.
> Use the RTC stuff as it is specced, and it's supposed to work.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to