mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-01 23:57:37 +08:00
时间戳统一使用毫秒
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
|
||||
class MultiMediaSourceMuxer {
|
||||
public:
|
||||
typedef std::shared_ptr<MultiMediaSourceMuxer> Ptr;
|
||||
|
||||
MultiMediaSourceMuxer(const string &vhost,
|
||||
const string &strApp,
|
||||
const string &strId,
|
||||
@@ -68,6 +70,18 @@ public:
|
||||
_rtmp->setListener(listener);
|
||||
_rtsp->setListener(listener);
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回总的消费者个数
|
||||
* @return
|
||||
*/
|
||||
int readerCount() const{
|
||||
return _rtsp->readerCount() + _rtmp->readerCount();
|
||||
}
|
||||
|
||||
void updateTimeStamp(uint32_t stamp){
|
||||
_rtsp->updateTimeStamp(stamp);
|
||||
}
|
||||
private:
|
||||
RtmpMediaSourceMuxer::Ptr _rtmp;
|
||||
RtspMediaSourceMuxer::Ptr _rtsp;
|
||||
|
||||
Reference in New Issue
Block a user