Comments (4)
Found how to import it from TypeScript:
import '@opentok/client';
declare var OT: any;
from opentok-network-test-js.
I'm sorry, but declaring OT as any is not a solution. there is a type error here and it's in the ScreenSharingCapabilityResponse
type. this is what ScreenSharingCapabilityResponse
looks like in @opentok/client
:
export type ScreenSharingCapabilityResponse = {
extensionInstalled?: boolean;
supported: boolean;
supportedSources: {
application?: boolean;
screen?: boolean;
window?: boolean;
};
extensionRequired?: string;
extensionRegistered?: boolean;
};
this is what it looks like in opentok-network-test-js
:
export interface ScreenSharingCapabilityResponse {
extensionInstalled: boolean;
supported: boolean;
supportedSources: {
application: boolean;
screen: boolean;
window: boolean;
};
extensionRegistered?: string;
the definition for extensionInstalled
conflicts.
from opentok-network-test-js.
🤔 according to this test, it should be import * as OT from '@opentok/client
but, from the sample (in JS, not in TypeScript), commenting the opentok.min.js script and importing OT here as import OT from '@opentok/client
works
it's definitely a typescript error
from opentok-network-test-js.
Please see this stackblitz for a minimal reproduction.
from opentok-network-test-js.
Related Issues (20)
- Q : Why am I getting the error 'Bandwidth is too low' on iOS + Safari or Android + Samsung Browser ? 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 HOT 1
- Retry Test
- FailedToCreateLocalPublisher when camera in use even on audioOnly HOT 1
- Firefox support
- axios-1.6.8.tgz: 1 vulnerabilities (highest severity is: 7.5)
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.