mirror of https://github.com/OpenVidu/openvidu.git
Retrocompatibility with 2.15.0: StreamLEGACY remote streams only for 2.15.0
parent
243dfcee67
commit
c6019394ec
|
@ -155,11 +155,6 @@ export class StreamLEGACY extends Stream {
|
||||||
*/
|
*/
|
||||||
initWebRtcPeerReceive(reconnect: boolean): Promise<any> {
|
initWebRtcPeerReceive(reconnect: boolean): Promise<any> {
|
||||||
|
|
||||||
if (!!this.session.openvidu.openviduServerVersion) {
|
|
||||||
// 2.16.0
|
|
||||||
return super.initWebRtcPeerReceive(reconnect);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
// 2.15.0
|
// 2.15.0
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
||||||
|
@ -224,18 +219,12 @@ export class StreamLEGACY extends Stream {
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
remotePeerSuccessfullyEstablished(): void {
|
remotePeerSuccessfullyEstablished(): void {
|
||||||
|
|
||||||
if (!!this.session.openvidu.openviduServerVersion) {
|
|
||||||
// 2.16.0
|
|
||||||
super.remotePeerSuccessfullyEstablished();
|
|
||||||
|
|
||||||
} else {
|
|
||||||
// 2.15.0
|
// 2.15.0
|
||||||
this.mediaStream = new MediaStream();
|
this.mediaStream = new MediaStream();
|
||||||
let receiver: RTCRtpReceiver;
|
let receiver: RTCRtpReceiver;
|
||||||
|
@ -265,6 +254,5 @@ export class StreamLEGACY extends Stream {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue