media/webrtc/signaling/src/media-conduit/MediaConduitErrors.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/signaling/src/media-conduit/MediaConduitErrors.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 +  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +
     1.9 +#ifndef MEDIA_SESSION_ERRORS_H_
    1.10 +#define MEDIA_SESSION_ERRORS_H_
    1.11 +
    1.12 +namespace mozilla
    1.13 +{
    1.14 +enum MediaConduitErrorCode
    1.15 +{
    1.16 +kMediaConduitNoError = 0,              // 0 for Success,greater than 0 imples error
    1.17 +kMediaConduitSessionNotInited = 10100, // Session not initialized.10100 serves as
    1.18 +                                       // base for the conduit errors
    1.19 +kMediaConduitMalformedArgument,        // Malformed input to Conduit API
    1.20 +kMediaConduitCaptureError,             // WebRTC capture APIs failed
    1.21 +kMediaConduitInvalidSendCodec,         // Wrong Send codec
    1.22 +kMediaConduitInvalidReceiveCodec,      // Wrong Recv Codec
    1.23 +kMediaConduitCodecInUse,               // Already applied Codec
    1.24 +kMediaConduitInvalidRenderer,          // Null or Wrong Renderer object
    1.25 +kMediaConduitRendererFail,             // Add Render called multiple times
    1.26 +kMediaConduitSendingAlready,           // Engine already trasmitting
    1.27 +kMediaConduitReceivingAlready,         // Engine already receiving
    1.28 +kMediaConduitTransportRegistrationFail,// Null or wrong transport interface
    1.29 +kMediaConduitInvalidTransport,         // Null or wrong transport interface
    1.30 +kMediaConduitChannelError,             // Configuration Error
    1.31 +kMediaConduitSocketError,              // Media Engine transport socket error
    1.32 +kMediaConduitRTPRTCPModuleError,       // Couldn't start RTP/RTCP processing
    1.33 +kMediaConduitRTPProcessingFailed,      // Processing incoming RTP frame failed
    1.34 +kMediaConduitUnknownError,             // More information can be found in logs
    1.35 +kMediaConduitExternalRecordingError,   // Couldn't start external recording
    1.36 +kMediaConduitRecordingError,           // Runtime recording error
    1.37 +kMediaConduitExternalPlayoutError,     // Couldn't start external playout
    1.38 +kMediaConduitPlayoutError,             // Runtime playout error
    1.39 +kMediaConduitMTUError,                 // Can't set MTU
    1.40 +kMediaConduitRTCPStatusError,          // Can't set RTCP mode
    1.41 +kMediaConduitKeyFrameRequestError,     // Can't set KeyFrameRequest mode
    1.42 +kMediaConduitNACKStatusError           // Can't set NACK mode
    1.43 +};
    1.44 +
    1.45 +}
    1.46 +
    1.47 +#endif
    1.48 +

mercurial