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

App and stream name cannot be null in RTMP url


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 7c87ca84
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 (appName == null || streamName == 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