Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"prismjs": "^1.6.0",
"stackblur-canvas": "^1.4.0",
"twilio": "^3.80.1",
"twilio-video": "^2.31.0"
"twilio-video": "2.32.1"
},
"devDependencies": {
"browserify": "^17.0.0",
Expand Down
2 changes: 2 additions & 0 deletions quickstart/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ async function selectAndJoinRoom(error = null) {
// Add the specified video device ID to ConnectOptions.
connectOptions.video.deviceId = { exact: deviceIds.video };

connectOptions.receiveTranscriptions = true;

// Join the Room.
await joinRoom(token, connectOptions);

Expand Down
4 changes: 4 additions & 0 deletions quickstart/src/joinroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ async function joinRoom(token, connectOptions) {
}
});

room.on('transcription', (transcriptionEvent) => {
console.log(`${transcriptionEvent.participant}: ${transcriptionEvent.transcription}`);
});

// Setup handler for entering pip
const togglePipButtonHandler = () => togglePip('#room');
$togglePip.click(togglePipButtonHandler);
Expand Down