This class generates DASH MPDs (Media Presentation Descriptions).
More...
#include <mpd_builder.h>
|
enum | MpdType { kStatic = 0,
kDynamic
} |
|
|
class | DynamicMpdBuilderTest |
|
This class generates DASH MPDs (Media Presentation Descriptions).
Definition at line 58 of file mpd_builder.h.
shaka::MpdBuilder::MpdBuilder |
( |
MpdType |
type, |
|
|
const MpdOptions & |
mpd_options |
|
) |
| |
Constructs MpdBuilder.
- Parameters
-
type | indicates whether the MPD should be for VOD or live content (kStatic for VOD profile, or kDynamic for live profile). |
Definition at line 401 of file mpd_builder.cc.
AdaptationSet * shaka::MpdBuilder::AddAdaptationSet |
( |
const std::string & |
lang | ) |
|
|
virtual |
Adds <AdaptationSet> to the MPD.
- Parameters
-
lang | is the language of the AdaptationSet. This can be empty for videos, for example. |
- Returns
- The new adaptation set, which is owned by this instance.
Definition at line 413 of file mpd_builder.cc.
void shaka::MpdBuilder::AddBaseUrl |
( |
const std::string & |
base_url | ) |
|
Add <BaseURL> entry to the MPD.
- Parameters
-
base_url | URL for <BaseURL> entry. |
Definition at line 409 of file mpd_builder.cc.
void shaka::MpdBuilder::MakePathsRelativeToMpd |
( |
const std::string & |
mpd_path, |
|
|
MediaInfo * |
media_info |
|
) |
| |
|
static |
Adjusts the fields of MediaInfo so that paths are relative to the specified MPD path.
- Parameters
-
mpd_path | is the file path of the MPD file. |
media_info | is the MediaInfo object to be updated with relative paths. |
Definition at line 646 of file mpd_builder.cc.
bool shaka::MpdBuilder::ToString |
( |
std::string * |
output | ) |
|
|
virtual |
Writes the MPD to the given string.
- Parameters
-
[out] | output | is an output string where the MPD gets written. |
- Returns
- true on success, false otherwise.
Definition at line 428 of file mpd_builder.cc.
MpdType shaka::MpdBuilder::type |
( |
| ) |
const |
|
inline |
bool shaka::MpdBuilder::WriteMpdToFile |
( |
media::File * |
output_file | ) |
|
Write the MPD to specified file.
- Parameters
-
[out] | output_file | is MPD destination. output_file will be flushed but not closed. |
- Returns
- true on success, false otherwise.
Definition at line 423 of file mpd_builder.cc.
The documentation for this class was generated from the following files: