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
|
@ -896,6 +896,12 @@ public:
|
|||
virtual std::string get_dash_path(std::string vhost);
|
||||
// Get the path for DASH MPD, to generate the MPD file.
|
||||
virtual std::string get_dash_mpd_file(std::string vhost);
|
||||
// Get the number of fragments in MPD file.
|
||||
virtual int get_dash_window_size(std::string vhost);
|
||||
// Whether cleanup the old m4s files.
|
||||
virtual bool get_dash_cleanup(std::string vhost);
|
||||
// The timeout in srs_utime_t to dispose the dash.
|
||||
virtual srs_utime_t get_dash_dispose(std::string vhost);
|
||||
// hls section
|
||||
private:
|
||||
// Get the hls directive of vhost.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue