Skip to content

Commit

Permalink
RTCConfigurationInterface_ workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Nov 4, 2023
1 parent d4330e7 commit 5a2ad3e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions externs/browser/w3c_rtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1909,6 +1909,43 @@ RTCIceServerInterface_.prototype.credential;
*/
var RTCIceServer;

//WORKAROUND for elemental2 - we need to keep these externs around as long as elemental2-dom 1.1.0 is a going concern
/**
* @typedef {{
* iceServers: !Array<!RTCIceServer>,
* iceTransportPolicy: (string|undefined),
* sdpSemantics: (string|undefined)
* }}
* @private
*/
var RTCConfigurationRecord_;

/**
* @interface
* @private
*/
function RTCConfigurationInterface_() {}
/**
* @type {!Array<!RTCIceServer>}
*/
RTCConfigurationInterface_.prototype.iceServers;

/**
* Allows specifying the ICE transport policy. Valid values are "all" and
* "relay", with "all" being the default.
* @type {string|undefined}
*/
RTCConfigurationInterface_.prototype.iceTransportPolicy;
/**
* Allows specifying the SDP semantics. Valid values are "plan-b" and
* "unified-plan".
*
* @see {@link https://webrtc.org/web-apis/chrome/unified-plan/}
* @type {string|undefined}
*/
RTCConfigurationInterface_.prototype.sdpSemantics;
//END WORKAROUND

/**
* @record
* @see https://www.w3.org/TR/webrtc/#dom-rtcconfiguration
Expand Down

0 comments on commit 5a2ad3e

Please sign in to comment.