|
login 返回400,请问是什么原因呢?
login的参数如下:
ServerParam:
{"bGPSEnable":1,"iDeviceID":673454425,"iMediaDir":13,"iPlatform":0,"iServerPort":xxx,"iVersionCode":1719,"szChannelName":"video","szDeviceName":"SM-G920P","szDeviceType":"PU","szServerAddr":"xx.xx.xx.xx","szVersionName":"20170222"}
audioEncode:
{"bAECEnable":false,"bNativePlayerEnable":true,"iAECDelay":150,"iAECRoutingMode":2,"iAECSuppressionLevel":1,"iBitrate":32000,"iChannelNum":1,"iEncoder":0,"iSamplePrecision":16,"iSampleRate":8000}
private void login(String ServerParam, String audioEncode) {
JNIMessage message = new JNIMessage();
message.addStrParam(JNIMessage.Key.JNIMESSAGE_KEY_S_ID.getName(),"login");
message.addStrParam(JNIMessage.Key.JNIMESSAGE_KEY_S_RESULT.getName(), audioEncode);
message.addStrParam(JNIMessage.Key.JNIMESSAGE_KEY_S_FUNCTION.getName(), ServerParam);
BVPU.PostMessageToNative(message);
}
|
|