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

For #299, extract fragment and fragment window for hls

This commit is contained in:
winlin 2017-03-18 21:29:08 +08:00
parent 6da6e0511d
commit da4c390d69
9 changed files with 450 additions and 192 deletions

View file

@ -30,6 +30,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_core.hpp>
#include <string>
#include <vector>
#include <srs_app_fragment.hpp>
class SrsRequest;
class SrsOriginHub;
@ -39,7 +42,7 @@ class SrsFormat;
/**
* The FMP4(Fragmented MP4) for DASH streaming.
*/
class SrsFragmentedMp4
class SrsFragmentedMp4 : public SrsFragment
{
public:
SrsFragmentedMp4();
@ -82,6 +85,7 @@ class SrsDashController
private:
SrsRequest* req;
SrsMpdWriter* mpd;
std::vector<SrsFragmentedMp4*> fragments;
private:
std::string home;
int video_tack_id;