Skip to content

Commit ee0cfbc

Browse files
authored
Merge pull request #57 from eladalon1983/fix_50
Drop captureHandle() from the event
2 parents b518d1f + ff7a495 commit ee0cfbc

File tree

1 file changed

+6
-47
lines changed

1 file changed

+6
-47
lines changed

identity/index.html

+6-47
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,8 @@ <h3>MediaDevices.setCaptureHandleConfig()</h3>
229229
<ol>
230230
<li>
231231
For every capturing application for which the new [=observable=] {{CaptureHandle}}
232-
is different than prior to the call to {{MediaDevices/setCaptureHandleConfig}}, an
233-
event of type {{CaptureHandleChangeEvent}} must be fired with
234-
{{CaptureHandleChangeEvent/captureHandle}} set to the new [=observable=]
235-
{{CaptureHandle}}.
232+
is different than prior to the call to {{MediaDevices/setCaptureHandleConfig}},
233+
the user agent MUST fire an event named [=capturehandlechange=].
236234
</li>
237235
<li>
238236
The user agent MUST report the new [=observable=] {{CaptureHandle}} whenever
@@ -349,11 +347,11 @@ <h3>MediaStreamTrack.getCaptureHandle()</h3>
349347
</section>
350348
<section id="events">
351349
<h3>On-Change Event</h3>
352-
<section id="capture-handle-change-event">
353-
<h4><dfn>CaptureHandleChangeEvent</dfn></h4>
350+
<section id="capturehandlechange">
351+
<h4><dfn>capturehandlechange</dfn></h4>
354352
<p>
355353
Whenever the [=observable=] {{CaptureHandle}} for a given capturing application changes,
356-
the user agent fires an event of type CaptureHandleChangeEvent. This can happen in the
354+
the user agent fires an event named [=capturehandlechange=]. This can happen in the
357355
following cases:
358356
</p>
359357
<ol>
@@ -372,45 +370,6 @@ <h4><dfn>CaptureHandleChangeEvent</dfn></h4>
372370
Events are not fired when the track [=track/ended|ends=], nor after it
373371
[=track/ended|ends=].
374372
</p>
375-
<pre class="idl">
376-
[Exposed=Window]
377-
interface CaptureHandleChangeEvent : Event {
378-
constructor(optional CaptureHandleChangeEventInit init = {});
379-
[SameObject] CaptureHandle captureHandle();
380-
};
381-
</pre>
382-
<dl data-link-for="CaptureHandleChangeEvent" data-dfn-for="CaptureHandleChangeEvent">
383-
<dt>
384-
<dfn>captureHandle</dfn>
385-
</dt>
386-
<dd>
387-
<p>
388-
The track's {{CaptureHandle}} at the time the event was fired, as [=observable=] by
389-
the capturing application. If not [=observable=] by the capturing application, all
390-
of {{CaptureHandle}}'s fields will be set to their default value - the empty
391-
{{DOMString}}.
392-
</p>
393-
</dd>
394-
</dl>
395-
</section>
396-
<section>
397-
<h4><dfn>CaptureHandleChangeEventInit</dfn></h4>
398-
<pre class="idl">
399-
dictionary CaptureHandleChangeEventInit : EventInit {
400-
CaptureHandle captureHandle;
401-
};
402-
</pre>
403-
<dl
404-
data-link-for="CaptureHandleChangeEventInit"
405-
data-dfn-for="CaptureHandleChangeEventInit"
406-
>
407-
<dt>
408-
<dfn>captureHandle</dfn>
409-
</dt>
410-
<dd>
411-
<p>The track's {{CaptureHandle}} at the time the event was fired.</p>
412-
</dd>
413-
</dl>
414373
</section>
415374
<section id="oncapturehandlechange">
416375
<h4><dfn>oncapturehandlechange</dfn></h4>
@@ -428,7 +387,7 @@ <h4><dfn>oncapturehandlechange</dfn></h4>
428387
<dfn>oncapturehandlechange</dfn>
429388
</dt>
430389
<dd>
431-
<p>{{EventHandler}} for events of type {{CaptureHandleChangeEvent}}.</p>
390+
<p>{{EventHandler}} for events named [=capturehandlechange=].</p>
432391
</dd>
433392
</dl>
434393
</section>

0 commit comments

Comments
 (0)