PeerConnection00.idl [plain text]
module p2p {
interface [
Conditional=MEDIA_STREAM,
ActiveDOMObject,
Constructor(in DOMString serverConfiguration, in [Callback] IceCallback iceCallback),
CallWith=ScriptExecutionContext,
EventTarget
] PeerConnection00 {
SessionDescription createOffer(in [Optional] Dictionary mediaHints)
raises(DOMException);
SessionDescription createAnswer(in DOMString offer, in [Optional] Dictionary mediaHints)
raises(DOMException);
const unsigned short SDP_OFFER = 0x100;
const unsigned short SDP_PRANSWER = 0x200;
const unsigned short SDP_ANSWER = 0x300;
void setLocalDescription(in unsigned short action, in SessionDescription desc)
raises(DOMException);
void setRemoteDescription(in unsigned short action, in SessionDescription desc)
raises(DOMException);
readonly attribute SessionDescription localDescription;
readonly attribute SessionDescription remoteDescription;
const unsigned short NEW = 0;
const unsigned short OPENING = 1;
const unsigned short ACTIVE = 2;
const unsigned short CLOSED = 3;
readonly attribute unsigned short readyState;
void startIce(in [Optional] Dictionary iceOptions)
raises(DOMException);
void processIceMessage(in IceCandidate candidate)
raises(DOMException);
const unsigned short ICE_GATHERING = 0x100;
const unsigned short ICE_WAITING = 0x200;
const unsigned short ICE_CHECKING = 0x300;
const unsigned short ICE_CONNECTED = 0x400;
const unsigned short ICE_COMPLETED = 0x500;
const unsigned short ICE_FAILED = 0x600;
const unsigned short ICE_CLOSED = 0x700;
readonly attribute unsigned short iceState;
[StrictTypeChecking] void addStream(in MediaStream stream, in [Optional] Dictionary mediaStreamHints)
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 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);
};
}