I am try to implement webrtc in ionic 4 application, but have problem with video streaming for remote user, always get local video streaming insted remote ?
this.connection.onstream = function(event) {
if(event.type === 'local') {
localVideo.style.display = '';
localVideo.controls = true;
localVideo.srcObject = event.stream;
localVideo.id = event.streamid;
}
if(event.type === 'remote') {
remoteVideo.style.display = '';
remoteVideo.controls = true;
remoteVideo.srcObject = event.stream;
remoteVideo.id = event.streamid;
}
};
So i wonder, is it any webrtc examples for implementing video session between more user in ionic.
I don’t want any paid solutions.