openvidu-browser: support reconnection with mediasoup

pull/600/head
pabloFuente 2020-09-02 13:30:35 +02:00
parent 23d64be806
commit d2ce4c297c
1 changed files with 1 additions and 1 deletions

View File

@ -913,7 +913,7 @@ export class Stream extends EventDispatcher {
*/ */
initWebRtcPeerReceive(reconnect: boolean): Promise<any> { initWebRtcPeerReceive(reconnect: boolean): Promise<any> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.session.openvidu.sendRequest('prepareReceiveVideFrom', { sender: this.streamId }, (error, response) => { this.session.openvidu.sendRequest('prepareReceiveVideFrom', { sender: this.streamId, reconnect }, (error, response) => {
if (error) { if (error) {
reject(new Error('Error on prepareReceiveVideFrom: ' + JSON.stringify(error))); reject(new Error('Error on prepareReceiveVideFrom: ' + JSON.stringify(error)));
} else { } else {