Baseline Widely available
The RTCSessionDescription.toJSON()
method generates a JSON description of the object. Both properties, type
and sdp
, are contained in the generated JSON.
None.
Return valueA JSON
object containing the following properties:
type
One of the following: "offer"
, "answer"
, "pranswer"
or null
.
sdp
Either null
or the SDP message string corresponding to RTCSessionDescription.sdp
property.
// sd is a RTCSessionDescriptor
alert(JSON.stringify(sd)); // This call the toJSON() method behind the scene.
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4