Shaka Packager SDK
|
#include <master_playlist.h>
Public Member Functions | |
MasterPlaylist (const std::filesystem::path &file_name, const std::string &default_audio_language, const std::string &default_text_language, const bool is_independent_segments, const bool create_session_keys=false) | |
virtual bool | WriteMasterPlaylist (const std::string &base_url, const std::string &output_dir, const std::list< MediaPlaylist * > &playlists) |
Class to generate HLS Master Playlist. Methods are virtual for mocking.
Definition at line 21 of file master_playlist.h.
shaka::hls::MasterPlaylist::MasterPlaylist | ( | const std::filesystem::path & | file_name, |
const std::string & | default_audio_language, | ||
const std::string & | default_text_language, | ||
const bool | is_independent_segments, | ||
const bool | create_session_keys = false |
||
) |
file_name | is the file name of the master playlist. |
default_audio_language | determines the audio rendition that should be tagged with 'DEFAULT'. |
default_text_language | determines the text rendition that should be tagged with 'DEFAULT'. |
Definition at line 550 of file master_playlist.cc.
|
virtual |
Writes Master Playlist to output_dir + <name of playlist>. This assumes that base_url is used as the prefix for Media Playlists.
base_url | is the prefix for the Media Playlist files. This should be in URI form such that base_url+file_name is a valid HLS URI. |
output_dir | is where the playlist files are written. This is not necessarily the same as base_url. It must be in a form that File interface can open. |
Definition at line 563 of file master_playlist.cc.