[rtmpdump] r181 - trunk/rtmpsrv.c
hyc
subversion at mplayerhq.hu
Mon Jan 4 08:59:41 CET 2010
Author: hyc
Date: Mon Jan 4 08:59:40 2010
New Revision: 181
Log:
Handle getStreamLength
Modified:
trunk/rtmpsrv.c
Modified: trunk/rtmpsrv.c
==============================================================================
--- trunk/rtmpsrv.c Mon Jan 4 08:59:05 2010 (r180)
+++ trunk/rtmpsrv.c Mon Jan 4 08:59:40 2010 (r181)
@@ -144,6 +144,7 @@ SAVC(videoFunction);
SAVC(objectEncoding);
SAVC(_result);
SAVC(createStream);
+SAVC(getStreamLength);
SAVC(play);
SAVC(fmsVer);
SAVC(mode);
@@ -217,7 +218,7 @@ SendConnectResult(RTMP *r, double txn)
}
static bool
-SendCreateStreamResult(RTMP *r, double txn, double ID)
+SendResultNumber(RTMP *r, double txn, double ID)
{
RTMPPacket packet;
char pbuf[256], *pend = pbuf+sizeof(pbuf);
@@ -329,7 +330,11 @@ ServeInvoke(STREAMING_SERVER *server, RT
}
else if (AVMATCH(&method, &av_createStream))
{
- SendCreateStreamResult(r, txn, ++server->streamID);
+ SendResultNumber(r, txn, ++server->streamID);
+ }
+ else if (AVMATCH(&method, &av_getStreamLength))
+ {
+ SendResultNumber(r, txn, 10.0);
}
else if (AVMATCH(&method, &av_play))
{
More information about the rtmpdump
mailing list