User talk:Dead project: Difference between revisions

Line 56: Line 56:


[Exposed=(Window, Worker),
[Exposed=(Window, Worker),
Constructor(DOMString type, optional VideoMonitorEventInit videoMonitorEventInitDict)]
Constructor(DOMString type, optional VideoMonitorEventInit videoMonitorEventInitDict)]
interface VideoMonitorEvent : Event {
interface VideoMonitorEvent : Event {
   readonly attribute DOMString    trackId;
   readonly attribute DOMString    trackId;
Line 218: Line 218:


</source>
</source>
<!--
=The API=
Still under construction....
==New design==
===VideoContext===
<source>
[Constructor]
interface VideoContext : EventTarget {
    readonly attribute VideoDestinationNode destination;
    // DIPNode creation
    MediaStreamVideoDestinationNode createMediaStreamDestination();
    MediaStreamVideoSourceNode createMediaStreamSource(MediaStream mediaStream);
    VideoWorkerNode createVideoWorker(DOMString scriptURL);
};
</source>
===VideoNode===
<source>
interface VideoNode: EventTarget {
    void connect(VideoNode destination);
    void disconnect();
    readonly attribute VideoContext context;
};
</source>
===VideoWorkerNode===
Still thinking the type of inputImage/outputImage.
<source>
interface VideoProcessEvent : Event {
  readonly attribute ImageData inputImage;
  readonly attribute ImageData outputImage;
  readonly attribute object parameters; 
};
interface VideoWorkerNode: VideoNode {
  attribute EventHandler onimageprocess;
};
</source>
==Deprecated design==
===DIPContext===
<source>
[Constructor]
interface DIPContext : EventTarget {
    readonly attribute DIPDestinationNode destination;
    // DIPNode creation
    MediaStreamDIPDestinationNode createMediaStreamDestination();
    ImageElementDIPSourceNode createImageElementSource(HTMLImageElement imageElement);
    MediaStreamDIPSourceNode createMediaStreamSource(MediaStream mediaStream);
    FaceDetectionNode createFaceDetection();
    TextDetectionNode createTextDetection();
};
</source>
===DIPNode===
<source>
interface DIPNode : EventTarget {
    void connect(DIPNode destination, optional unsigned long output = 0, optional unsigned long input = 0);
    void disconnect(optional unsigned long output = 0);
    readonly attribute DIPContext context;
    readonly attribute unsigned long numberOfInputs;
    readonly attribute unsigned long numberOfOutputs;
};
</source>
===TextDetectionNode===
<source>
interface RecognizedTextEvent : Event {
  readonly attribute DOMString recognizedText;
};
interface TextDetectionNode : DIPNode {
  attribute EventHandler ontextrecognized;
};
</source>
-->


=Demo pages=
=Demo pages=
Confirmed users
770

edits