|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 |
|
6 #ifndef MEDIA_SESSION_ERRORS_H_ |
|
7 #define MEDIA_SESSION_ERRORS_H_ |
|
8 |
|
9 namespace mozilla |
|
10 { |
|
11 enum MediaConduitErrorCode |
|
12 { |
|
13 kMediaConduitNoError = 0, // 0 for Success,greater than 0 imples error |
|
14 kMediaConduitSessionNotInited = 10100, // Session not initialized.10100 serves as |
|
15 // base for the conduit errors |
|
16 kMediaConduitMalformedArgument, // Malformed input to Conduit API |
|
17 kMediaConduitCaptureError, // WebRTC capture APIs failed |
|
18 kMediaConduitInvalidSendCodec, // Wrong Send codec |
|
19 kMediaConduitInvalidReceiveCodec, // Wrong Recv Codec |
|
20 kMediaConduitCodecInUse, // Already applied Codec |
|
21 kMediaConduitInvalidRenderer, // Null or Wrong Renderer object |
|
22 kMediaConduitRendererFail, // Add Render called multiple times |
|
23 kMediaConduitSendingAlready, // Engine already trasmitting |
|
24 kMediaConduitReceivingAlready, // Engine already receiving |
|
25 kMediaConduitTransportRegistrationFail,// Null or wrong transport interface |
|
26 kMediaConduitInvalidTransport, // Null or wrong transport interface |
|
27 kMediaConduitChannelError, // Configuration Error |
|
28 kMediaConduitSocketError, // Media Engine transport socket error |
|
29 kMediaConduitRTPRTCPModuleError, // Couldn't start RTP/RTCP processing |
|
30 kMediaConduitRTPProcessingFailed, // Processing incoming RTP frame failed |
|
31 kMediaConduitUnknownError, // More information can be found in logs |
|
32 kMediaConduitExternalRecordingError, // Couldn't start external recording |
|
33 kMediaConduitRecordingError, // Runtime recording error |
|
34 kMediaConduitExternalPlayoutError, // Couldn't start external playout |
|
35 kMediaConduitPlayoutError, // Runtime playout error |
|
36 kMediaConduitMTUError, // Can't set MTU |
|
37 kMediaConduitRTCPStatusError, // Can't set RTCP mode |
|
38 kMediaConduitKeyFrameRequestError, // Can't set KeyFrameRequest mode |
|
39 kMediaConduitNACKStatusError // Can't set NACK mode |
|
40 }; |
|
41 |
|
42 } |
|
43 |
|
44 #endif |
|
45 |