forked from dremin/twilio-voice.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VBLOCKS-1111 | Fix sound definitions (twilio#153)
* VBLOCKS-1534 | Stop using deprecated RTCIceCandidateStats * VBLOCKS-1111 | Fix sound definitions * Tests and changelog * Update docs
- Loading branch information
1 parent
e0d4b3c
commit 9de4ceb
Showing
7 changed files
with
134 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
"url": "[email protected]:twilio/twilio-voice.js.git" | ||
}, | ||
"scripts": { | ||
"build": "npm-run-all clean build:constants build:errors docs:ts build:es5 build:ts build:dist build:dist-min", | ||
"build": "npm-run-all clean build:constants build:errors docs:ts build:es5 build:ts build:dist build:dist-min test:typecheck", | ||
"build:errors": "node ./scripts/errors.js", | ||
"build:es5": "rimraf ./es5 && babel lib -d es5", | ||
"build:dev": "ENV=dev npm run build", | ||
|
@@ -55,6 +55,7 @@ | |
"test:integration": "karma start $PWD/karma.conf.ts", | ||
"test:network": "node ./scripts/karma.js $PWD/karma.network.conf.ts", | ||
"test:selenium": "mocha tests/browser/index.js", | ||
"test:typecheck": "./node_modules/typescript/bin/tsc tests/typecheck/index.ts --noEmit", | ||
"test:unit": "nyc mocha -r ts-node/register ./tests/index.ts", | ||
"test:webpack": "cd ./tests/webpack && npm install && npm test" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Device } from '../../'; | ||
|
||
(async () => { | ||
const device: Device = new Device('foo', {}); | ||
|
||
await device.register(); | ||
|
||
const call = await device.connect({ | ||
params: { To: 'foo' } | ||
}); | ||
|
||
device.audio?.disconnect(false); | ||
device.audio?.incoming(false); | ||
device.audio?.outgoing(false); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters