1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-30 05:31:07 +02:00

Parse JSON from server SDP

This commit is contained in:
Alexandre Iooss
2020-10-22 08:23:35 +02:00
parent ba8bf426e0
commit a2a74761bb
3 changed files with 7 additions and 7 deletions

View File

@ -90,9 +90,9 @@ export class GsWebRTC {
/**
* Set WebRTC remote description
* After that, the connection will be established and ontrack will be fired.
* @param {*} data Session description data
* @param {RTCSessionDescription} sdp Session description data
*/
setRemoteDescription(data) {
this.pc.setRemoteDescription(new RTCSessionDescription(data));
setRemoteDescription(sdp) {
this.pc.setRemoteDescription(sdp);
}
}