import { RemoteParticipant, Room, connect, createLocalTracks } from 'twilio-video';
connect(this.token, { name: 'This is the room name', audio: true, video: true }).then(room => {
room.on('participantConnected', (participant: RemoteParticipant) => {
// other code here
});
});
Expected behavior:
Run the web application successful
Actual behavior:
Error: src/app/views/video/video-room/video-room-media.component.ts:73:14 - error TS2339: Property 'on' does not exist on type 'Room'.
73 room.on('participantConnected', (participant: RemoteParticipant) => {
Software versions:
[x] Browser(s): N/A, the issue ocurrs in the build process
Code to reproduce the issue:
Expected behavior:
Run the web application successful
Actual behavior:
Software versions:
package.json