初步添加HlsMediaSource

This commit is contained in:
xiongziliang
2019-12-28 18:50:56 +08:00
parent e72fa359b6
commit 1afacdcff8
12 changed files with 135 additions and 168 deletions

View File

@@ -43,6 +43,9 @@ public:
~HlsRecorder(){
delete _hls;
}
void setMediaInfo(const string &vhost, const string &app, const string &stream_id){
_hls->setMediaInfo(vhost,app,stream_id);
}
protected:
void onTs(const void *packet, int bytes,uint32_t timestamp,int flags) override {
_hls->inputData((char *)packet,bytes,timestamp);