Comments (8)
You need to use this (adding .default
):
require('opentok-network-test-js').default
I will correct the readme. Thanks, @slpn1.
from opentok-network-test-js.
Thanks! Working now.
from opentok-network-test-js.
@slpn1 Just curious, did you get all of this test working in AngularJS? This is fully compatible?
from opentok-network-test-js.
@johnjbateman Hi John. Yes this is working fine with Angular JS 1.5.8.
from opentok-network-test-js.
Thanks @slpn1
I am having trouble getting the NetworkTest object in my controller. I am messing with RequireJS, but will Angular do this instead? Do you happen to have any snippets of how to wire up this correctly?
const OTNetworkTest = require('opentok-network-test-js').default;
I keep getting this error:
Module name has not been loaded yet for context: _. Use require([])
I am going dow nthe rabbit hole in RequireJS and not having luck.
Thanks for the reply!
from opentok-network-test-js.
@johnjbateman I have exactly the same code as you and it works fine, but I am using Webpack not RequireJS for module handling. I don't know much about RequireJS but looking at the docs here it looks like you need to pass an array to require, not a string. That matches with error you are receiving.
from opentok-network-test-js.
OK, I will check into WebPack and see if that helps at all. I have not used RequireJS before this.
from opentok-network-test-js.
@slpn1 Any chance you can share a snippet of your webpack.config.js?
from opentok-network-test-js.
Related Issues (20)
- Q: How to get MOS state during the session?
- Is testQuality is not supported for Opera?
- A value defined in the calculateVideoScore function has not been used.
- Q : Why am I getting the error 'Bandwidth is too low' on iOS + Safari or Android + Samsung Browser ? HOT 4
- Argument of type 'typeof OT' is not assignable to parameter of type 'Client'. HOT 4
- Error for "npm run build" at building module locally for sample app HOT 2
- Chrome Android - Can't repeat test twice HOT 1
- axios high vulnerability issue HOT 1
- How i can determine the percentage of tested connection like in loader in https://tokbox.com/developer/tools/precall/results
- Plan B SDP not supported anymore HOT 4
- bundle.js not found
- Contradicting network result
- Why do we need to use different session ID than the session ID for a call ?
- highcharts-8.2.2.tgz: 1 vulnerabilities (highest severity is: 5.4) - autoclosed HOT 1
- axios-0.21.1.tgz: 3 vulnerabilities (highest severity is: 7.5) - autoclosed HOT 1
- Usage problem in Angular14 library HOT 1
- Dependency on vulnerable version of axios (<1.6.0)
- axios-0.21.4.tgz: 2 vulnerabilities (highest severity is: 6.5) - autoclosed HOT 2
- OT_STREAM_DESTROYED after few seconds of network test start
- Retry Test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentok-network-test-js.