diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index 4ae2304eb901db0..0883d42976e45fd 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -8355,10 +8355,6 @@ /en-US/docs/Web/API/RTCIceCandidateStats/ip /en-US/docs/Web/API/RTCIceCandidateStats/address /en-US/docs/Web/API/RTCIceConnectionState /en-US/docs/Web/API/RTCPeerConnection/iceConnectionState /en-US/docs/Web/API/RTCIceGatheringState /en-US/docs/Web/API/RTCPeerConnection/iceGatheringState -/en-US/docs/Web/API/RTCIdentityErrorEvent.idp /en-US/docs/Web/API/RTCIdentityErrorEvent/idp -/en-US/docs/Web/API/RTCIdentityErrorEvent.loginUrl /en-US/docs/Web/API/RTCIdentityErrorEvent/loginUrl -/en-US/docs/Web/API/RTCIdentityErrorEvent.protocol /en-US/docs/Web/API/RTCIdentityErrorEvent/protocol -/en-US/docs/Web/API/RTCIdentityEvent.assertion /en-US/docs/Web/API/RTCIdentityEvent/assertion /en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimesta /en-US/docs/Web/API/RTCInboundRtpStreamStats/lastPacketReceivedTimestamp /en-US/docs/Web/API/RTCOutboundRtpStreamStats/perDscpPacketsReceived /en-US/docs/Web/API/RTCOutboundRtpStreamStats/perDscpPacketsSent /en-US/docs/Web/API/RTCPeerConnection.addStream /en-US/docs/Web/API/RTCPeerConnection/addStream @@ -8374,11 +8370,7 @@ /en-US/docs/Web/API/RTCPeerConnection.ondatachannel /en-US/docs/Web/API/RTCPeerConnection/ondatachannel /en-US/docs/Web/API/RTCPeerConnection.onicecandidate /en-US/docs/Web/API/RTCPeerConnection/onicecandidate /en-US/docs/Web/API/RTCPeerConnection.oniceconnectionstatechange /en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange -/en-US/docs/Web/API/RTCPeerConnection.onidentityresult /en-US/docs/Web/API/RTCPeerConnection/onidentityresult -/en-US/docs/Web/API/RTCPeerConnection.onidpassertionerror /en-US/docs/Web/API/RTCPeerConnection/onidpassertionerror -/en-US/docs/Web/API/RTCPeerConnection.onidpvalidationerror /en-US/docs/Web/API/RTCPeerConnection/onidpvalidationerror /en-US/docs/Web/API/RTCPeerConnection.onnegotiationneeded /en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded -/en-US/docs/Web/API/RTCPeerConnection.onpeeridentity /en-US/docs/Web/API/RTCPeerConnection/onpeeridentity /en-US/docs/Web/API/RTCPeerConnection.onremovestream /en-US/docs/Web/API/RTCPeerConnection/onremovestream /en-US/docs/Web/API/RTCPeerConnection.onsignalingstatechange /en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange /en-US/docs/Web/API/RTCPeerConnection.peerIdentity /en-US/docs/Web/API/RTCPeerConnection/peerIdentity @@ -8398,10 +8390,6 @@ /en-US/docs/Web/API/RTCPeerConnectionIceEvent.RTCPeerConnectionIceEven /en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent /en-US/docs/Web/API/RTCPeerConnectionIceEvent.RTCPeerConnectionIceEvent /en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent /en-US/docs/Web/API/RTCPeerConnectionIceEvent.candidate /en-US/docs/Web/API/RTCPeerConnectionIceEvent/candidate -/en-US/docs/Web/API/RTCPeerConnectionIdentityErrorEvent /en-US/docs/Web/API/RTCIdentityErrorEvent -/en-US/docs/Web/API/RTCPeerConnectionIdentityEvent /en-US/docs/Web/API/RTCIdentityEvent -/en-US/docs/Web/API/RTCPeerConnectionIdentityEvent.assertion /en-US/docs/Web/API/RTCIdentityEvent/assertion -/en-US/docs/Web/API/RTCPeerConnection_idpvalidationerror_event /en-US/docs/Web/API/RTCPeerConnection/idpvalidationerror_event /en-US/docs/Web/API/RTCRtpSender/getCapabilities() /en-US/docs/Web/API/RTCRtpSender/getCapabilities /en-US/docs/Web/API/RTCSctpTransportState /en-US/docs/Web/API/RTCSctpTransport/state /en-US/docs/Web/API/RTCSdpType /en-US/docs/Web/API/RTCSessionDescription/type @@ -10297,9 +10285,6 @@ /en-US/docs/Web/Events/iceconnectionstatechange /en-US/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event /en-US/docs/Web/Events/icegatheringstatechange /en-US/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event /en-US/docs/Web/Events/icegatheringstatechange_event /en-US/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event -/en-US/docs/Web/Events/identityresult /en-US/docs/Web/API/RTCPeerConnection/identityresult_event -/en-US/docs/Web/Events/idpassertionerror /en-US/docs/Web/API/RTCPeerConnection/idpassertionerror_event -/en-US/docs/Web/Events/idpvalidationerror /en-US/docs/Web/API/RTCPeerConnection/idpvalidationerror_event /en-US/docs/Web/Events/input /en-US/docs/Web/API/HTMLElement/input_event /en-US/docs/Web/Events/install /en-US/docs/Web/API/Window/appinstalled_event /en-US/docs/Web/Events/invalid /en-US/docs/Web/API/HTMLInputElement/invalid_event @@ -10349,7 +10334,6 @@ /en-US/docs/Web/Events/pause_(SpeechSynthesis) /en-US/docs/Web/API/SpeechSynthesisUtterance/pause_event /en-US/docs/Web/Events/payerdetailchange /en-US/docs/Web/API/PaymentResponse/payerdetailchange_event /en-US/docs/Web/Events/paymentmethodchange /en-US/docs/Web/API/PaymentRequest/paymentmethodchange_event -/en-US/docs/Web/Events/peeridentity /en-US/docs/Web/API/RTCPeerConnection/peeridentity_event /en-US/docs/Web/Events/periodicsync /en-US/docs/Web/API/ServiceWorkerGlobalScope/periodicsync_event /en-US/docs/Web/Events/play /en-US/docs/Web/API/HTMLMediaElement/play_event /en-US/docs/Web/Events/playing /en-US/docs/Web/API/HTMLMediaElement/playing_event diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 88fa3326ff07ef5..32e3b430e4dadd8 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -72836,56 +72836,6 @@ "teoli" ] }, - "Web/API/RTCIdentityErrorEvent": { - "modified": "2020-10-15T21:28:54.447Z", - "contributors": [ - "sideshowbarker", - "fscholz", - "jpmedley", - "teoli" - ] - }, - "Web/API/RTCIdentityErrorEvent/idp": { - "modified": "2020-10-15T21:28:55.306Z", - "contributors": [ - "sideshowbarker", - "fscholz", - "teoli" - ] - }, - "Web/API/RTCIdentityErrorEvent/loginUrl": { - "modified": "2020-10-15T21:28:55.177Z", - "contributors": [ - "sideshowbarker", - "fscholz", - "teoli" - ] - }, - "Web/API/RTCIdentityErrorEvent/protocol": { - "modified": "2020-10-15T21:28:56.722Z", - "contributors": [ - "sideshowbarker", - "fscholz", - "teoli" - ] - }, - "Web/API/RTCIdentityEvent": { - "modified": "2020-10-15T21:28:54.334Z", - "contributors": [ - "sideshowbarker", - "fscholz", - "jpmedley", - "teoli" - ] - }, - "Web/API/RTCIdentityEvent/assertion": { - "modified": "2020-10-15T21:28:55.465Z", - "contributors": [ - "sideshowbarker", - "fscholz", - "teoli" - ] - }, "Web/API/RTCInboundRtpStreamStats": { "modified": "2020-10-15T22:17:09.938Z", "contributors": [ @@ -73447,29 +73397,6 @@ "Sheppy" ] }, - "Web/API/RTCPeerConnection/identityresult_event": { - "modified": "2020-10-15T21:28:54.142Z", - "contributors": [ - "fscholz", - "Sheppy", - "mfluehr", - "teoli" - ] - }, - "Web/API/RTCPeerConnection/idpassertionerror_event": { - "modified": "2020-10-15T21:28:55.685Z", - "contributors": [ - "Sheppy", - "mfluehr", - "teoli" - ] - }, - "Web/API/RTCPeerConnection/idpvalidationerror_event": { - "modified": "2020-10-15T22:15:17.579Z", - "contributors": [ - "Sheppy" - ] - }, "Web/API/RTCPeerConnection/localDescription": { "modified": "2020-10-15T21:28:59.774Z", "contributors": [ @@ -73572,35 +73499,6 @@ "abbycar" ] }, - "Web/API/RTCPeerConnection/onidentityresult": { - "modified": "2020-10-15T21:28:52.357Z", - "contributors": [ - "sideshowbarker", - "fscholz", - "jpmedley", - "teoli" - ] - }, - "Web/API/RTCPeerConnection/onidpassertionerror": { - "modified": "2020-10-15T21:28:52.993Z", - "contributors": [ - "sideshowbarker", - "Sheppy", - "fscholz", - "jpmedley", - "teoli" - ] - }, - "Web/API/RTCPeerConnection/onidpvalidationerror": { - "modified": "2020-10-15T21:28:53.447Z", - "contributors": [ - "sideshowbarker", - "Sheppy", - "fscholz", - "jpmedley", - "teoli" - ] - }, "Web/API/RTCPeerConnection/onnegotiationneeded": { "modified": "2020-10-15T21:28:52.037Z", "contributors": [ @@ -73614,16 +73512,6 @@ "teoli" ] }, - "Web/API/RTCPeerConnection/onpeeridentity": { - "modified": "2020-10-15T21:28:53.098Z", - "contributors": [ - "sideshowbarker", - "Sheppy", - "fscholz", - "jpmedley", - "teoli" - ] - }, "Web/API/RTCPeerConnection/onremovestream": { "modified": "2020-10-15T21:28:51.660Z", "contributors": [ @@ -73668,16 +73556,6 @@ "teoli" ] }, - "Web/API/RTCPeerConnection/peeridentity_event": { - "modified": "2020-10-15T21:28:53.887Z", - "contributors": [ - "fscholz", - "chrisdavidmills", - "Sheppy", - "mfluehr", - "teoli" - ] - }, "Web/API/RTCPeerConnection/pendingLocalDescription": { "modified": "2020-10-15T21:44:58.469Z", "contributors": [ diff --git a/files/en-us/web/api/event/index.html b/files/en-us/web/api/event/index.html index f5c8738ca73bb6a..65b13e6688f2dcc 100644 --- a/files/en-us/web/api/event/index.html +++ b/files/en-us/web/api/event/index.html @@ -74,8 +74,6 @@
{{APIRef("WebRTC")}}{{deprecated_header}}
- -The read-only property RTCIdentityErrorEvent.idp
returns
- the {{domxref("DOMString")}} describing the {{Glossary("domain name")}} of the identity
- provider (idp) generating the error response event.
Firefox implements the interface of this property under the following name:
- RTCPeerConnectionIdentityErrorEvent.
It is likely that it will correct
- this name when it will unprefix {{domxref("RTCPeerConnection")}}, once spec and
- implementation will have been stabilized.
var idp = event.idp; -event.idp = "developer.mozilla.org"; -- -
pc.onidpassertionerror = function( ev ) { - alert("The idp named '" + - ev.idp + - "' encountered an error " + - "while generating an assertion."); - }- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The RTCIdentityErrorEvent
interface represents an error associated with the identity provider (idP). This is usually for an {{domxref("RTCPeerConnection")}}. Two events are sent with this type: {{event("idpassertionerror")}} and {{event("idpvalidationerror")}}.
Firefox implements this interface under the following name: RTCPeerConnectionIdentityErrorEvent.
It is likely that it will correct this name when it will unprefix {{domxref("RTCPeerConnection")}}, once spec and implementation will have been stabilized.
A {{domxref("RTCIdentityErrorEvent")}} being an {{domxref("Event")}}, this event also implements these properties.
- -null
and is provided by the identity provider (idp).A {{domxref("RTCIdentityErrorEvent")}} being an {{domxref("Event")}}, this event also implements these properties. There is no specific {{domxref("RTCIdentityErrorEvent")}} method.
- -pc.onidpassertionerror = function( ev ) { - alert("The idp named '" + - ev.idp + - "' encountered an error " + - "while generating an assertion."); - } -- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The read-only property RTCIdentityErrorEvent.loginUrl
is
- a {{domxref("DOMString")}} giving the URL where the user can complete the
- authentication. It can be null
and is provided by the identity provider
- (idp).
Firefox implements the interface of this property under the following name:
- RTCPeerConnectionIdentityErrorEvent.
It is likely that it will correct
- this name when it will unprefix {{domxref("RTCPeerConnection")}}, once spec and
- implementation will have been stabilized.
var loginUrl = event.loginUrl; -event.loginUrl = "https://developer.mozilla.org/fakeURL"; -- -
pc.onidpassertionerror = function( ev ) { - alert("The idp requested an authentication" + - " to be performed at th3 URL '" + - ev.url + - "'."); - }- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The read-only property RTCIdentityErrorEvent.protocol
is
- a {{domxref("DOMString")}} describing the Idp protocol in use.
Firefox implements the interface of this property under the following name:
- RTCPeerConnectionIdentityErrorEvent.
It is likely that it will correct
- this name when it will unprefix {{domxref("RTCPeerConnection")}}, once spec and
- implementation will have been stabilized.
var protocol = event.protocol; -event.protocol = "idp.html"; -- -
pc.onidpassertionerror = function( ev ) { - alert("The idp uses the following protocol '" + - ev.protocol + - "."); - }- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The read-only property RTCIdentityEvent.assertion
returns the
- {{domxref("DOMString")}} containing a blob being the coded assertion associated with the
- event.
Firefox implements the interface this property belongs to under the following name:
- RTCPeerConnectionIdentityEvent.
It is likely that it will correct this
- name when it will unprefix {{domxref("RTCPeerConnection")}}, once spec and
- implementation will have been stabilized.
var blob = event.assertion;- -
pc.onidentityresult = function( ev ) { - alert("A new identity assertion (blob: '" + - ev.assertion + - "') has been generated."); - }- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The RTCIdentityEvent
interface represents an identity assertion generated by an identity provider (idP). This is usually for an {{domxref("RTCPeerConnection")}}. The only event sent with this type is {{event("identityresult")}}..
Firefox implements this interface under the following name: RTCPeerConnectionIdentityEvent.
It is likely that it will correct this name when it will unprefix {{domxref("RTCPeerConnection")}}, once spec and implementation will have been stabilized.
A {{domxref("RTCIdentityEvent")}} being an {{domxref("Event")}}, this event also implements these properties.
- -A {{domxref("RTCIdentityEvent")}} being an {{domxref("Event")}}, this event also implements these properties. There is no specific {{domxref("RTCIdentityEvent")}} method.
- -pc.onidentityresult = function( ev ) { - alert("A new identity assertion (blob: '" + - ev.assertion + - "') has been generated."); - } -- -
{{Compat}}
- -"closed"
.
-The method returns immediately. If the assertion cannot be generated, an - {{event("idpassertionerror")}} will be sent to the object.
+The method returns a JavaScript {{jsxref("Promise")}} which resolves to an + identity assertion encoded as a {{domxref("DOMString")}}.
It is not expected for the application dealing with the RTCPeerConnection
:
this is automatically done; an explicit call only allows to anticipate the need.
var pc = new PeerConnection(); +var pc = new RTCPeerConnection(); -pc.getIdentityAssertion(); // Not mandatory, but we know that we will need it in the future. +pc.setIdentityProvider("developer.mozilla.org"); +var assertion = await pc.getIdentityAssertion();Specifications
diff --git a/files/en-us/web/api/rtcpeerconnection/identityresult_event/index.html b/files/en-us/web/api/rtcpeerconnection/identityresult_event/index.html deleted file mode 100644 index 9516a1b7b4231f2..000000000000000 --- a/files/en-us/web/api/rtcpeerconnection/identityresult_event/index.html +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: 'RTCPeerConnection: identityresult event' -slug: Web/API/RTCPeerConnection/identityresult_event -tags: - - API - - Authentication - - Event - - Identity - - Deprecated - - RTCPeerConnection - - Reference - - WebRTC - - WebRTC API - - identityresult -browser-compat: api.RTCPeerConnection.identityresult_event ---- -{{APIRef("WebRTC")}}{{deprecated_header}}- -An
- -identityresult
event is sent to an {{domxref("RTCPeerConnection")}} object's {{domxref("RTCPeerConnection.onidentityresult", "onidentityresult")}} event handler to inform it that an assertion has been generated by an associated identity provider (IdP) during the process of creating an {{Glossary("SDP")}} offer or answer.-- -Note: While older versions of the WebRTC specification used events to report assertions, this has been deprecated and removed from the specification. Instead, the {{domxref("RTCPeerConnection.peerIdentity", "peerIdentity")}} property returns a {{jsxref("Promise")}} that resolves with an identity or rejects if an error occurs or if unable to validate the identity.
-
Bubbles | -No | -
---|---|
Cancelable | -No | -
Interface | -{{DOMxRef("RTCIdentityEvent")}} | -
Event handler property | -{{domxref("RTCPeerConnection.onidentityresult", "onidentityresult")}} | -
Specification | -Status | -Comment | -
---|---|---|
{{ SpecName('WebRTC 1.0', '#event-mediastream-identityresult', 'identityresult') }} | -{{Spec2('WebRTC 1.0')}} | -- |
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -An idpassertionerror
event informs the target, a {{domxref("RTCPeerConnection")}} object, that the identity provider (IdP) encountered an error when trying to generate an identity assertion. An event handler for this event can be added using the {{domxref("RTCPeerConnection.onidpassertionerror")}} property.
Bubbles | -No | -
---|---|
Cancelable | -No | -
Interface | -{{DOMxRef("RTCIdentityErrorEvent")}} | -
Event handler property | -{{DOMxRef("RTCPeerConnection.onidpassertionerror", "onidpassertionerror")}} | -
Warning: This event is no longer used; instead, you can detect an assertion error by detecting when the {{jsxref("promise")}} returned by {{domxref("RTCPeerConnection.peerIdentity")}} is rejected.
-Specification | -Status | -Comment | -
---|---|---|
{{ SpecName('WebRTC 1.0', '#event-mediastream-idpassertionerror', 'idpassertionerror') }} | -{{Spec2('WebRTC 1.0')}} | -- |
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -An idpvalidationerror
event informs the target, a {{domxref("RTCPeerConnection")}} object's {{domxref("RTCPeerConnection.onidpvalidationerror", "onidpvalidationerror")}} event handler, that the identity provider (IdP) encountered an error while validating an identity assertion. An event handler for this event can be added using the {{domxref("RTCPeerConnection.onidpvalidationerror")}} property.
Bubbles | -No | -
---|---|
Cancelable | -No | -
Interface | -{{DOMxRef("RTCIdentityErrorEvent")}} | -
Event handler property | -{{DOMxRef("RTCPeerConnection.onidpvalidationerror", "onidpvalidationerror")}} | -
Warning: This event is no longer used; instead, you can detect a validation error by detecting when the {{jsxref("promise")}} returned by {{domxref("RTCPeerConnection.peerIdentity")}} is rejected.
-Specification | -Status | -Comment | -
---|---|---|
{{ SpecName('WebRTC 1.0', '#event-mediastream-idpvalidationerror', 'idpvalidationerror') }} | -{{Spec2('WebRTC 1.0')}} | -- |
{{Compat}}
- -RTCPeerConnection
when a {{domxref("MediaStream")}} is removed from the connection. Instead of watching for this obsolete event, you should watch each stream for {{domxref("MediaStream.removetrack_event", "removetrack")}} events on each stream within the RTCPeerConnection
.{{APIRef("WebRTC")}}{{deprecated_header}}
- -The RTCPeerConnection.onidentityresult
event handler is a property containing the code to execute when the {{event("identityresult")}} event, of type {{domxref("RTCIdentityEvent")}}, is received by this {{domxref("RTCPeerConnection")}}. Such an event is sent when an identity assertion is generated, via {{domxref("RTCPeerConnection.getIdentityAssertion()", "getIdentityAssertion()")}} or during the creation of an offer or an answer.
peerconnection.onidentityresult = function; -- -
function
is the name of a user-defined function, without the ()
suffix or any parameters, or an anonymous function declaration, such as function(event) {...}
. An event handler always has one single parameter, containing the event, here of type {{domxref("RTCIdentityEvent")}}.pc.onidentityresult = function(ev) { alert("onidentityresult event detected!"); }; -- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The RTCPeerConnection.onidpassertionerror
event handler
- is a property containing the code to execute whent the {{event("idpassertionerror")}}
- event, of type {{domxref("RTCIdentityErrorEvent")}}, is received by this
- {{domxref("RTCPeerConnection")}}. Such an event is sent when the associated identity
- provider (IdP) encounters an error while generating an identity assertion.
This event handler is deprecated. You should instead detect IdP assertion - errors by handling rejection of the {{jsxref("promise")}} returned by - {{domxref("RTCPeerConnection.peerIdentity")}}.
- -peerconnection.onidpassertionerror = function; -- -
function
is the name of a user-defined function, without the
- ()
suffix or any parameters, or an anonymous function declaration, such
- as function(event) {...}
. An event handler always has one single
- parameter, containing the event, here of type {{domxref("RTCIdentityErrorEvent")}}.
- pc.onidpassertionerror = function(ev) { alert("onidpassertionerror event detected!"); }; -- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The RTCPeerConnection.onidpvalidationerror
event handler
- is a property containing the code to execute whent the {{event("idpvalidationerror")}}
- event, of type {{domxref("RTCIdentityErrorEvent")}}, is received by this
- {{domxref("RTCPeerConnection")}}. Such an event is sent when the associated identity
- provider (IdP) encounters an error while validating an identity assertion.
This event handler is obsolete. You should instead detect IdP validation - errors by watching for the {{jsxref("promise")}} returned by - {{domxref("RTCPeerConnection.peerIdentity")}} to be rejected.
- -peerconnection.onidpvalidationerror = function; -- -
function
is the name of a user-defined function, without the
- ()
suffix or any parameters, or an anonymous function declaration, such
- as function(event) {...}
. An event handler always has one single
- parameter, containing the event, here of type {{domxref("RTCIdentityErrorEvent")}}.
- pc.onidpvalidationerror = function(ev) { alert("onidpvalidationerror event detected!"); }; -- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The RTCPeerConnection.onpeeridentity
event handler is a
- property containing the code to execute whent the {{event("peeridentity")}} event, of
- type {{domxref("Event")}}, is received by this {{domxref("RTCPeerConnection")}}. Such an
- event is sent when an identity assertion, received from a peer, has been successfully
- validated.
This event handler is obsolete. To detect successful validation of the - identity, wait for the promise returned by {{domxref("RTCPeerConnection.peerIdentity", - "peerIdentity")}} to resolve successfully with the peer's identity.
- -peerconnection.onpeeridentity = function; -- -
function
is the name of a user-defined function, without the
- ()
suffix or any parameters, or an anonymous function declaration, such
- as function(event) {...}
. An event handler always has one single
- parameter, containing the event, here of type {{domxref("Event")}}.pc.onpeeridentity = function(ev) { alert("onpeeridentity event detected!"); }; -- -
{{Compat}}
- -{{APIRef("WebRTC")}}{{deprecated_header}}
- -The peeridentity
event is sent to the connection concerned when peer identity has been set and verified on it. The new identiy can be access using the {{domxref("RTCPeerConnection.peerIdentity")}} property. An event handler for this event can be added via the {{domxref("RTCPeerConnection.onpeeridentity")}} property.
Bubbles | -No | -
---|---|
Cancelable | -No | -
Interface | -{{DOMxRef("Event")}} | -
Event handler property | -{{DOMxRef("RTCPeerConnection.onpeeridentity", "onpeeridentity")}} | -
Important: This event and its event handler have been removed from the specification and are no longer available. Instead of using this event to detect when an identity is available, wait for the {{jsxref("Promise")}} returned by {{domxref("RTCPeerConnection.peerIdentity")}} to be resolved. Once resolved, its value is the new identity.
-For the correct way to detect a new peer identity, see {{domxref("RTCPeerConnection.peerIdentity")}}.
- -Specification | -Status | -Comment | -
---|---|---|
{{ SpecName('WebRTC 1.0', '#event-mediastream-peeridentity', 'peeridentity') }} | -{{Spec2('WebRTC 1.0')}} | -- |
{{Compat}}
- -var pc = new PeerConnection(); +var pc = new RTCPeerConnection(); pc.setIdentityAssertion("developer.mozilla.org");diff --git a/files/en-us/web/api/webrtc_api/index.html b/files/en-us/web/api/webrtc_api/index.html index 097bd8dd9aa04a1..6484574f345dc68 100644 --- a/files/en-us/web/api/webrtc_api/index.html +++ b/files/en-us/web/api/webrtc_api/index.html @@ -152,10 +152,6 @@Identity and security
null
. Once set it can't be changed.