添加流创建时间、在线时间

This commit is contained in:
xiongziliang
2020-10-01 18:57:15 +08:00
parent cd27e5a9f9
commit a1de3bfd30
4 changed files with 20 additions and 2 deletions

View File

@@ -218,6 +218,10 @@ public:
// 获取数据速率单位bytes/s
int getBytesSpeed();
// 获取流创建GMT unix时间戳单位秒
uint64_t getCreateStamp() const;
// 获取流上线时间,单位秒
uint64_t getAliveSecond() const;
////////////////MediaSourceEvent相关接口实现////////////////
@@ -282,6 +286,8 @@ protected:
BytesSpeed _speed;
private:
time_t _create_stamp;
Ticker _ticker;
string _schema;
string _vhost;
string _app;