mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
DASH: Fix number mode bug to make it run. v5.0.96 (#3240)
* Add utc time utility * Fix calculate duration in fmp4 * Refine dash code, use segment template timeline * Shrink m4s file and cleanup * Support play by dash.js * Use SegmentTemplate timeline mode with $Number$ Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
af192d6184
commit
271afbbf82
18 changed files with 506 additions and 105 deletions
|
@ -893,8 +893,7 @@ srs_error_t SrsOriginHub::initialize(SrsLiveSource* s, SrsRequest* r)
|
|||
void SrsOriginHub::dispose()
|
||||
{
|
||||
hls->dispose();
|
||||
|
||||
// TODO: Support dispose DASH.
|
||||
dash->dispose();
|
||||
}
|
||||
|
||||
srs_error_t SrsOriginHub::cycle()
|
||||
|
@ -905,7 +904,9 @@ srs_error_t SrsOriginHub::cycle()
|
|||
return srs_error_wrap(err, "hls cycle");
|
||||
}
|
||||
|
||||
// TODO: Support cycle DASH.
|
||||
if ((err = dash->cycle()) != srs_success) {
|
||||
return srs_error_wrap(err, "dash cycle");
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue