A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/toJSON below:

RTCSessionDescription: toJSON() method - Web APIs

RTCSessionDescription: toJSON() method

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.

Syntax Parameters

None.

Return value

A 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.

Example
// 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