1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug #47: use stream time to stop for duration of rtmpdump

This commit is contained in:
winlin 2014-04-14 10:51:31 +08:00
parent bcfe82f88f
commit 2c6b6c6846
3 changed files with 25 additions and 12 deletions

View file

@ -62,6 +62,10 @@ private:
SrsHttpHooks* http_hooks;
#endif
SrsBandwidth* bandwidth;
// elapse duration in ms
// for live play duration, for instance, rtmpdump to record.
// @see https://github.com/winlinvip/simple-rtmp-server/issues/47
int64_t duration;
public:
SrsRtmpConn(SrsServer* srs_server, st_netfd_t client_stfd);
virtual ~SrsRtmpConn();