Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
camera2
Leo Ma 9 years ago
parent 638df0209c
commit 24cc6e6e92

@ -535,7 +535,7 @@ public class RtmpConnection implements RtmpPublisher {
Log.d(TAG, "handleRxInvoke: Got result for invoked method: " + method); Log.d(TAG, "handleRxInvoke: Got result for invoked method: " + method);
if ("connect".equals(method)) { if ("connect".equals(method)) {
// Capture server ip/pid/id information if any // Capture server ip/pid/id information if any
String serverInfo = onXmlyServerInfo(invoke); String serverInfo = onSrsServerInfo(invoke);
mHandler.onRtmpConnected("connected" + serverInfo); mHandler.onRtmpConnected("connected" + serverInfo);
// We can now send createStream commands // We can now send createStream commands
connecting = false; connecting = false;
@ -576,7 +576,7 @@ public class RtmpConnection implements RtmpPublisher {
} }
} }
private String onXmlyServerInfo(Command invoke) { private String onSrsServerInfo(Command invoke) {
// SRS server special information // SRS server special information
AmfObject objData = (AmfObject) invoke.getData().get(1); AmfObject objData = (AmfObject) invoke.getData().get(1);
if ((objData).getProperty("data") instanceof AmfObject) { if ((objData).getProperty("data") instanceof AmfObject) {

Loading…
Cancel
Save