DJI Pilot 2和MSDK v5使用得是同一个Native C++编译的so库,在build.gradle文件中可以看到关于他们的设置。
doNotStrip "*/*/libmrtc_28181.so"
doNotStrip "*/*/libmrtc_agora.so"
doNotStrip "*/*/libmrtc_core.so"
doNotStrip "*/*/libmrtc_core_jni.so"
doNotStrip "*/*/libmrtc_data.so"
doNotStrip "*/*/libmrtc_log.so"
doNotStrip "*/*/libmrtc_onvif.so"
doNotStrip "*/*/libmrtc_rtmp.so"
doNotStrip "*/*/libmrtc_rtsp.so"
其中libmrtc内部错误码如下:
#define MRTC_SUCCESS ((mrtc_err_t)0)
#define MRTC_ERR_UNKNOWN 0x19100001
#define MRTC_ERR_TIMEOUT 0x19100002
#define MRTC_ERR_PARAM 0x19100003
#define MRTC_ERR_NOMEM 0x19100004
#define MRTC_ERR_NULL_PARAM 0x19100005
#define MRTC_ERR_FILE 0x19100006 /**< open file or close file error */
#define MRTC_ERR_NOT_FOUND 0x19100007 /**< can't find node in mrtc_core */
#define MRTC_ERR_NOT_READY 0x19100008 /**< agent or data not ready yet */
#define MRTC_ERR_OVERFLOW 0x19100009
#define MRTC_ERR_CMD_NOT_FOUND 0x1910000A /**< Can't find needed command */
#define MRTC_ERR_NOT_SUPPORT 0x1910000B
#define MRTC_ERR_NOT_CONNECTED 0x1910000C
#define MRTC_ERR_NOT_PLAYED 0x1910000D
#define MRTC_ERR_MISMATCH 0x1910000E
#define MRTC_ERR_REPEATED 0x1910000F
#define MRTC_ERR_SIZE 0x19100010
#define MRTC_ERR_NOT_IMPLEMENT 0x19100011
#define MRTC_ERR_INTERNAL_MAX 0x19100040 /**< reserved for internal little than 0x19100040*/
#define MRTC_ERR_NETWORK_UNREACHABLE 0x19100041
#define MRTC_ERR_PASSWORD 0x19100042
#define MRTC_ERR_CONNECT_TIMEOUT 0x19100043
#define MRTC_ERR_CONNECT_FAILED 0x19100044
#define MRTC_ERR_URL 0x19100045
#define MRTC_ERR_PLAY_TIMEOUT 0x19100051
#define MRTC_ERR_PLAY_PARAM_UNKNOWN 0x19100052
#define MRTC_ERR_PLAY_NO_ACK 0x19100053
#define MRTC_ERR_PLAY_NO_INVITE 0x19100054
#define MRTC_ERR_PLAY_NO_STREAM 0x19100055
#define MRTC_ERR_PLAY_BITRATE 0x19100056
#define MRTC_ERR_PLAY_FRAMERATE 0x19100057
#define MRTC_ERR_PLAY_SEND_FAIL 0x19100058
#define MRTC_ERR_NET_PACKET_LOST 0x19100071
#define MRTC_ERR_NET_RTT 0x19100072
#define MRTC_ERR_NET_JITTER 0x19100073
#define MRTC_ERR_NET_CONGRESTION 0x19100074
#define MRTC_ERR_METADATA_FREQUENCY 0x19100081
#define MRTC_ERR_METADATA_NO_DATA 0x19100082
#define MRTC_ERR_METADATA_NO_UAV_POS 0x19100083
#define MRTC_ERR_METADATA_NO_RC_POS 0x19100084
评论
0 条评论
请登录写评论。