Merge branch 'live_sdk' of http://gitlab.zhidaoauto.com/ecos/app/MoGoAiCloudSdk into live_sdk
This commit is contained in:
@@ -15,7 +15,7 @@ public class SocketMsgUtils implements IMogoCloudSocketMsgAckListener {
|
||||
private static final String TAG = "SocketMsgUtils";
|
||||
|
||||
private static final String appId = "liveStream";
|
||||
private static final int msgType = 1973;
|
||||
private static final int headerType = 1973;
|
||||
|
||||
private static volatile SocketMsgUtils sInstance;
|
||||
|
||||
@@ -56,7 +56,7 @@ public class SocketMsgUtils implements IMogoCloudSocketMsgAckListener {
|
||||
* @param body 数据包
|
||||
*/
|
||||
public void uploadCamInfo(MsgBody body) {
|
||||
mSocketManager.sendMsg(appId, msgType, body, this);
|
||||
mSocketManager.sendMsg(appId, headerType, body, this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package com.mogo.cloud.live.socket;
|
||||
|
||||
import com.google.protobuf.ByteString;
|
||||
import com.zhidao.ptech.connsvr.protocol.MogoConnsvr;
|
||||
import com.zhidao.ptech.shadow.server.protocol.DeviceInfo;
|
||||
import com.zhidao.utils.common.TelephoneUtil;
|
||||
|
||||
@@ -20,12 +18,5 @@ public class SocketRequestUtils {
|
||||
return data;
|
||||
}
|
||||
|
||||
private static byte[] buildSocketPayload(byte[] payload, int payloadType) {
|
||||
MogoConnsvr.Payload payloadData = MogoConnsvr.Payload.newBuilder()
|
||||
.setMsgType(payloadType)
|
||||
.setPayload(ByteString.copyFrom(payload)).build();
|
||||
return payloadData.toByteArray();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user