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