}
if (r->m_read.flags & RTMP_READ_SEEKING)
- {
+ {
ret = RTMP_READ_IGNORE;
break;
}
if (hostname == 0)
{
Log(LOGERROR,
- "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/playpath\") containing a hostname");
+ "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/app/playpath\") containing a hostname");
return RD_FAILED;
}
if (playpath.av_len == 0)
{
Log(LOGERROR,
- "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/playpath\") containing a playpath");
+ "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/app/playpath\") containing a playpath");
+ return RD_FAILED;
+ }
+ if (app.av_len == 0)
+ {
+ Log(LOGERROR,
+ "You must specify an app (--app) or url (-r \"rtmp://host[:port]/app/playpath\") containing an app");
return RD_FAILED;
}
}
#endif
- if (tcUrl.av_len == 0 && app.av_len != 0)
+ if (tcUrl.av_len == 0)
{
char str[512] = { 0 };
if (req.hostname == 0)
{
Log(LOGERROR,
- "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/playpath\") containing a hostname");
+ "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/app/playpath\") containing a hostname");
goto filenotfound;
}
if (req.playpath.av_len == 0)
{
Log(LOGERROR,
- "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/playpath\") containing a playpath");
- goto filenotfound;;
+ "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/app/playpath\") containing a playpath");
+ goto filenotfound;
+ }
+ if (req.app.av_len == 0)
+ {
+ Log(LOGERROR,
+ "You must specify an app (--app) or url (-r \"rtmp://host[:port]/app/playpath\") containing an app");
+ goto filenotfound;
}
if (req.protocol == RTMP_PROTOCOL_UNDEFINED)