Skip to content

Why the event on stream is not fired with peerjs and with cordova-plugin-iosrtc when i receive a call? Using PeerJs. #657

@iometrine

Description

@iometrine

Hello,

as @hthetiot recommended on the post : "peers/peerjs#705" i create a new post to explain my issue.

Versions

"@angular/common": "~9.1.6",
"@capacitor/ios": "^2.2.1",
"cordova-plugin-ionic": "5.4.7",
"cordova-plugin-iosrtc": "^6.0.18",
xcode : 12.3
peerJs: 1.3.1 

Description

i 'm working with peerjs and iosrtc plugin and i have got a problem on reception with ios, this method on stream is never fired.

call.on('stream', (stream) => {
document.getElementById('camera').srcObject = stream;
});
And this event neither:

call.peerConnection.addEventListener('addstream', (e: any) => {
document.getElementById('camera').srcObject = e.stream;
});
And to finish as i've read on other post, this method doesn't exist anymore today

call.peerConnection.onaddstream = function (stream) { // do something with stream }.

Can you help me ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions