mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-11-10 07:39:28 +01:00
Parse JSON from server SDP
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user