DeprecatedPeerConnection.idl [plain text]
module p2p {
interface [
Conditional=MEDIA_STREAM,
ActiveDOMObject,
ConstructorParameters=2,
Constructor(in DOMString serverConfiguration, in [Callback] SignalingCallback signalingCallback),
CallWith=ScriptExecutionContext,
JSCustomConstructor,
EventTarget
] DeprecatedPeerConnection {
void processSignalingMessage(in DOMString message)
raises(DOMException);
const unsigned short NEW = 0;
const unsigned short NEGOTIATING = 1;
const unsigned short ACTIVE = 2;
const unsigned short CLOSED = 3;
readonly attribute unsigned short readyState;
void send(in DOMString text)
raises(DOMException);
[StrictTypeChecking] void addStream(in MediaStream stream)
raises(DOMException);
[StrictTypeChecking] void removeStream(in MediaStream stream)
raises(DOMException);
readonly attribute MediaStreamList localStreams;
readonly attribute MediaStreamList remoteStreams;
void close()
raises(DOMException);
attribute EventListener onconnecting;
attribute EventListener onopen;
attribute EventListener onmessage;
attribute EventListener onstatechange;
attribute EventListener onaddstream;
attribute EventListener onremovestream;
void addEventListener(in DOMString type,
in EventListener listener,
in [Optional] boolean useCapture);
void removeEventListener(in DOMString type,
in EventListener listener,
in [Optional] boolean useCapture);
boolean dispatchEvent(in Event event)
raises(EventException);
};
}