Open kush3107 opened 4 years ago
switchDevice(type: 'audio' | 'video', deviceId: string): Promise<void> {
console.log(type, deviceId);
this._currentStream?.stop();
return new Promise((resolve, reject) => {
// @ts-ignore
this._currentStream?.getAudioTrack().stop();
this._currentStream!.switchDevice(type, deviceId, () => {
resolve();
}, reject);
});
}
the error usually means you are trying to play a dom but that dom does not exist. could you pls check all you play api call
I am trying to switch the input device for the current local stream. I am on sdk version 3.0.2 but when I try to do so I get the error in the attached screenshot. I followed this link
This link clearly says that I just need to call this method above version 2.5.0 I have attached the console error