Skip to content

Commit 3ba2551

Browse files
committedJul 11, 2021
Simple JS version - not working
0 parents  commit 3ba2551

6 files changed

+666
-0
lines changed
 

‎.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
node_modules
3+
npm-debug.log
4+
.env
5+
.tool-versions

‎index.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Simple JS SDK Call</title>
6+
<script type="module" src="./index.js"></script>
7+
</head>
8+
<body>
9+
<h1>JS SDK Call</h1>
10+
11+
</body>
12+
</html>

‎index.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Device } from '@twilio/voice-sdk';
2+
3+
let token = 'eyJhbGciOiJIUzI1';
4+
5+
let device = new Device(token, {
6+
debug: true,
7+
answerOnBridge: true,
8+
codecPreferences: ["opus"],
9+
});
10+

0 commit comments

Comments
 (0)
Please sign in to comment.