mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: removed ionic iOS limitation
With iosrct 6.0.12 release which included the fix of the issue https://github.com/cordova-rtc/cordova-plugin-iosrtc/issues/442 ionic iOS can uses the current WebRTC API so this code is unnecessary.pull/494/head
parent
7930d82864
commit
9ad21624d3
|
@ -965,11 +965,6 @@ export class Stream extends EventDispatcher {
|
|||
}
|
||||
|
||||
private remotePeerSuccessfullyEstablished(): void {
|
||||
if (platform['isIonicIos']) {
|
||||
// iOS Ionic. LIMITATION: must use deprecated WebRTC API
|
||||
const pc1: any = this.webRtcPeer.pc;
|
||||
this.mediaStream = pc1.getRemoteStreams()[0];
|
||||
} else {
|
||||
this.mediaStream = new MediaStream();
|
||||
let receiver: RTCRtpReceiver;
|
||||
for (receiver of this.webRtcPeer.pc.getReceivers()) {
|
||||
|
@ -977,7 +972,6 @@ export class Stream extends EventDispatcher {
|
|||
this.mediaStream.addTrack(receiver.track);
|
||||
}
|
||||
}
|
||||
}
|
||||
logger.debug('Peer remote stream', this.mediaStream);
|
||||
|
||||
if (!!this.mediaStream) {
|
||||
|
|
Loading…
Reference in New Issue