App name and stream name must not be null

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
camera2
Leo Ma 8 years ago
parent 6acb7726fc
commit c7d8e589b2

@ -111,7 +111,13 @@ public class RtmpConnection implements RtmpPublisher {
streamName = matcher.group(6); streamName = matcher.group(6);
} else { } else {
mHandler.notifyRtmpIllegalArgumentException(new IllegalArgumentException( mHandler.notifyRtmpIllegalArgumentException(new IllegalArgumentException(
"Invalid RTMP URL. Must be in format: rtmp://host[:port]/application[/streamName]")); "Invalid RTMP URL. Must be in format: rtmp://host[:port]/application/streamName"));
return false;
}
if (streamName == null || appName == null) {
mHandler.notifyRtmpIllegalArgumentException(new IllegalArgumentException(
"Invalid RTMP URL. Must be in format: rtmp://host[:port]/application/streamName"));
return false; return false;
} }

Loading…
Cancel
Save