michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: #ifndef MEDIA_SESSION_ERRORS_H_ michael@0: #define MEDIA_SESSION_ERRORS_H_ michael@0: michael@0: namespace mozilla michael@0: { michael@0: enum MediaConduitErrorCode michael@0: { michael@0: kMediaConduitNoError = 0, // 0 for Success,greater than 0 imples error michael@0: kMediaConduitSessionNotInited = 10100, // Session not initialized.10100 serves as michael@0: // base for the conduit errors michael@0: kMediaConduitMalformedArgument, // Malformed input to Conduit API michael@0: kMediaConduitCaptureError, // WebRTC capture APIs failed michael@0: kMediaConduitInvalidSendCodec, // Wrong Send codec michael@0: kMediaConduitInvalidReceiveCodec, // Wrong Recv Codec michael@0: kMediaConduitCodecInUse, // Already applied Codec michael@0: kMediaConduitInvalidRenderer, // Null or Wrong Renderer object michael@0: kMediaConduitRendererFail, // Add Render called multiple times michael@0: kMediaConduitSendingAlready, // Engine already trasmitting michael@0: kMediaConduitReceivingAlready, // Engine already receiving michael@0: kMediaConduitTransportRegistrationFail,// Null or wrong transport interface michael@0: kMediaConduitInvalidTransport, // Null or wrong transport interface michael@0: kMediaConduitChannelError, // Configuration Error michael@0: kMediaConduitSocketError, // Media Engine transport socket error michael@0: kMediaConduitRTPRTCPModuleError, // Couldn't start RTP/RTCP processing michael@0: kMediaConduitRTPProcessingFailed, // Processing incoming RTP frame failed michael@0: kMediaConduitUnknownError, // More information can be found in logs michael@0: kMediaConduitExternalRecordingError, // Couldn't start external recording michael@0: kMediaConduitRecordingError, // Runtime recording error michael@0: kMediaConduitExternalPlayoutError, // Couldn't start external playout michael@0: kMediaConduitPlayoutError, // Runtime playout error michael@0: kMediaConduitMTUError, // Can't set MTU michael@0: kMediaConduitRTCPStatusError, // Can't set RTCP mode michael@0: kMediaConduitKeyFrameRequestError, // Can't set KeyFrameRequest mode michael@0: kMediaConduitNACKStatusError // Can't set NACK mode michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif michael@0: