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

support live flashP2P(integrated by chnvideo VDN). 0.9.75

This commit is contained in:
winlin 2014-04-24 16:32:19 +08:00
parent b276714573
commit 67e1988b81
11 changed files with 164 additions and 62 deletions

View file

@ -721,14 +721,14 @@ int SrsSource::on_hls_start()
return ret;
}
int SrsSource::on_dvr_start()
int SrsSource::on_dvr_request_sh()
{
int ret = ERROR_SUCCESS;
#ifdef SRS_AUTO_DVR
// feed the dvr the metadata/sequence header,
// when reload to start dvr, dvr will never get the sequence header in stream,
// use the SrsSource.on_dvr_start to push the sequence header to DVR.
// use the SrsSource.on_dvr_request_sh to push the sequence header to DVR.
if (cache_metadata) {
char* payload = (char*)cache_metadata->payload;
int size = (int)cache_metadata->size;