mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: support reconnection with mediasoup
parent
23d64be806
commit
d2ce4c297c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue