This file defines MediaSegmentSequence
class.
More...
#include <memory>
#include <vector>
Go to the source code of this file.
|
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) |
|
This file defines MediaSegmentSequence
class.
Definition in file media_segment_sequence.h.
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] | seg | An ISegment for which data will be downloaded. |
[out] | data | An 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] | seg | An ISegment for which data will be downloaded. |
[out] | data | An 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.