w3c / mediacapture-worker

MediaStream with worker
Other
9 stars 12 forks source link

Should there be an onvideomonitor event handler too? #18

Closed anssiko closed 9 years ago

anssiko commented 9 years ago

The convention is that each event type comes with its own event handler. I think we should add onvideomonitor:

partial interface DedicatedWorkerGlobalScope {
                attribute EventHandler onvideomonitor;
                attribute EventHandler onvideoprocess;
};

This is the usual boilerplate specifications tend to use, adapted to this spec:

The following are the event handlers (and their corresponding event handler event types) that must be supported, as event handler IDL attributes, by objects implementing the DedicatedWorkerGlobalScope interface:

Event handler Event handler event type
onvideomonitor videomonitor
onvideoprocess videoprocess
kakukogou commented 9 years ago

Agree, as long as it is a widely adopted convention.

ChiahungTai commented 9 years ago

LGTM. Less confusion. :+1: