17
edits
(Create page of Input Port API) |
JamesCheng (talk | contribs) (→Basic Port Interface: edit for sycing with the current design) |
||
Line 15: | Line 15: | ||
== Proposed API == | == Proposed API == | ||
=== Basic Port Interface === | === Basic Port Interface === | ||
[Pref="dom.inputport.enabled", CheckPermissions="inputport", AvailableIn=CertifiedApps] | |||
interface InputPort : EventTarget { | interface InputPort : EventTarget { | ||
readonly attribute DOMString id; | readonly attribute DOMString id; | ||
readonly attribute MediaStream stream; | readonly attribute MediaStream stream; | ||
readonly attribute boolean connected; | readonly attribute boolean connected; | ||
attribute EventHandler onconnect; | |||
attribute EventHandler ondisconnect; | |||
}; | }; | ||
Line 31: | Line 29: | ||
''This idea is referenced from the attribute [http://w3c.github.io/mediacapture-main/getusermedia.html#dictionary-mediadeviceinfo-members deviceId] of MediaDevice.'' | ''This idea is referenced from the attribute [http://w3c.github.io/mediacapture-main/getusermedia.html#dictionary-mediadeviceinfo-members deviceId] of MediaDevice.'' | ||
'''stream''' of type MediaStream, readonly<br /> | '''stream''' of type MediaStream, readonly<br /> |
edits