Native Player  1.0
media_segment_sequence.h File Reference

This file defines MediaSegmentSequence class. More...

#include <memory>
#include <vector>

Go to the source code of this file.

Classes

class  MediaSegmentSequence
 Container of possibly infinite (in case of live streams) sequence of MediaSegments for particular representation described in the DASH manifest. This class is used by DashManifest More...
 
class  MediaSegmentSequence::Iterator
 Constant bidirectional iterator through the sequence. More...
 

Namespaces

 dash
 
 dash::mpd
 

Functions

bool DownloadSegment (dash::mpd::ISegment *seg, std::vector< uint8_t > *data)
 
bool DownloadSegment (std::unique_ptr< dash::mpd::ISegment > seg, std::vector< uint8_t > *data)
 

Detailed Description

This file defines MediaSegmentSequence class.

Definition in file media_segment_sequence.h.

Function Documentation

bool DownloadSegment ( dash::mpd::ISegment *  seg,
std::vector< uint8_t > *  data 
)

Downloads the whole segment to the vector pointed by data for the given segment.

Parameters
[in]segAn ISegment for which data will be downloaded.
[out]dataAn array container to which data will be downloaded.
Returns
True if download succeed.
False if download fails (e.g. wrong ISegment).
bool DownloadSegment ( std::unique_ptr< dash::mpd::ISegment >  seg,
std::vector< uint8_t > *  data 
)
inline

Downloads whole segment to vector pointed by data for given segment.

Note
This method calls DownloadSegment(dash::mpd::ISegment* seg, std::vector<uint8_t>* data)
Parameters
[in]segAn ISegment for which data will be downloaded.
[out]dataAn array container to which data will be downloaded.
Returns
True if download succeed.
False if download fails (e.g. wrong ISegment).

Definition at line 204 of file media_segment_sequence.h.