Skip to content
Snippets Groups Projects
Commit c7d8e589 authored by Leo Ma's avatar Leo Ma
Browse files

App name and stream name must not be null


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 6acb7726
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -111,7 +111,13 @@ public class RtmpConnection implements RtmpPublisher {
streamName = matcher.group(6);
} else {
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;
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment