1 #include
"nsIThread.idl"
2 #include
"nsIDOMWindow.idl"
3 #include
"nsIPropertyBag2.idl"
5 /* Do not confuse with nsIDOMRTCPeerConnection. This interface is purely for
6 * communication between the PeerConnection JS DOM binding and the C++
7 * implementation in SIPCC.
9 * See media/webrtc/signaling/include/PeerConnectionImpl.h
11 [scriptable
, uuid(d7dfe148
-0416-446b
-a128
-66a7c71ae8d3
)]
12 interface IPeerConnectionObserver
: nsISupports
16 [scriptable
, uuid(14afc8e7
-e421
-4d0c
-99a5
-69308d871481
)]
17 interface IPeerConnection
: nsISupports
19 const unsigned long kHintAudio
= 0x00000001;
20 const unsigned long kHintVideo
= 0x00000002;
22 const long kActionNone
= -1;
23 const long kActionOffer
= 0;
24 const long kActionAnswer
= 1;
25 const long kActionPRAnswer
= 2;
26 const long kActionRollback
= 3;
28 const long kIceGathering
= 0;
29 const long kIceWaiting
= 1;
30 const long kIceChecking
= 2;
31 const long kIceConnected
= 3;
32 const long kIceFailed
= 4;
34 /* for readyState on Peer Connection */
36 const long kNegotiating
= 1;
37 const long kActive
= 2;
38 const long kClosing
= 3;
39 const long kClosed
= 4;
41 /* for 'type' in DataChannelInit dictionary */
42 const unsigned short kDataChannelReliable
= 0;
43 const unsigned short kDataChannelPartialReliableRexmit
= 1;
44 const unsigned short kDataChannelPartialReliableTimed
= 2;
46 /* Constants for 'name' in error callbacks */
47 const unsigned long kNoError
= 0; // Test driver only
48 const unsigned long kInvalidCandidate
= 2;
49 const unsigned long kInvalidMediastreamTrack
= 3;
50 const unsigned long kInvalidState
= 4;
51 const unsigned long kInvalidSessionDescription
= 5;
52 const unsigned long kIncompatibleSessionDescription
= 6;
53 const unsigned long kIncompatibleMediaStreamTrack
= 8;
54 const unsigned long kInternalError
= 9;
55 const unsigned long kTypeError
= 10;
56 const unsigned long kOperationError
= 11;
57 const unsigned long kMaxErrorType
= 11; // Same as final error