#include <Service.h>
Definition at line 30 of file Service.h.
◆ Service()
◆ ~Service()
virtual MBMS_RT::Service::~Service |
( |
| ) |
|
|
virtualdefault |
◆ add_and_start_content_stream()
auto MBMS_RT::Service::add_and_start_content_stream |
( |
std::shared_ptr< ContentStream > |
s | ) |
|
Definition at line 56 of file Service.cpp.
58 spdlog::debug(
"adding stream with playlist path {}", s->playlist_path());
61 if (stream.uri == s->playlist_path()) {
62 spdlog::debug(
"matched hls entry with uri {}", stream.uri);
63 s->set_resolution(stream.resolution);
64 s->set_codecs(stream.codecs);
65 s->set_bandwidth(stream.bandwidth);
66 s->set_frame_rate(stream.frame_rate);
75 HlsPrimaryPlaylist pl;
77 HlsPrimaryPlaylist::Stream s{
78 "/" + stream.second->playlist_path(),
79 stream.second->resolution(),
80 stream.second->codecs(),
81 stream.second->bandwidth(),
82 stream.second->frame_rate()
const std::vector< Stream > & streams() const
std::map< std::string, std::shared_ptr< ContentStream > > _content_streams
DashManifest _dash_manifest
DeliveryProtocol _delivery_protocol
HlsPrimaryPlaylist _hls_primary_playlist
◆ add_name()
auto MBMS_RT::Service::add_name |
( |
const std::string & |
name, |
|
|
const std::string & |
lang |
|
) |
| |
Definition at line 31 of file Service.cpp.
32 spdlog::debug(
"Service name added: {} ({})", name, lang);
std::map< std::string, std::string > _names
◆ content_streams()
const std::map<std::string, std::shared_ptr<ContentStream> >& MBMS_RT::Service::content_streams |
( |
| ) |
const |
|
inline |
◆ delivery_protocol()
◆ delivery_protocol_string()
std::string MBMS_RT::Service::delivery_protocol_string |
( |
| ) |
const |
|
inline |
◆ manifest_path()
const std::string& MBMS_RT::Service::manifest_path |
( |
| ) |
const |
|
inline |
Definition at line 48 of file Service.h.
std::string _manifest_path
◆ names()
const std::map<std::string, std::string>& MBMS_RT::Service::names |
( |
| ) |
const |
|
inline |
◆ read_master_manifest()
auto MBMS_RT::Service::read_master_manifest |
( |
const std::string & |
manifest, |
|
|
const std::string & |
base_path |
|
) |
| |
Definition at line 36 of file Service.cpp.
37 spdlog::debug(
"service: master manifest contents:\n{}, base path {}", manifest, base_path);
49 [&]() ->
const std::string & {
50 spdlog::debug(
"Service: master manifest requested");
void add_item(std::shared_ptr< CacheItem > item)
◆ set_delivery_protocol_from_mime_type()
auto MBMS_RT::Service::set_delivery_protocol_from_mime_type |
( |
const std::string & |
mime_type | ) |
|
Definition at line 92 of file Service.cpp.
94 std::vector<std::string> strs;
95 boost::split(strs, mime_type, boost::is_any_of(
";"));
96 std::string adjusted_mime_type = strs.front();
◆ _cache
◆ _content_streams
std::map<std::string, std::shared_ptr<ContentStream> > MBMS_RT::Service::_content_streams |
|
private |
◆ _dash_manifest
◆ _delivery_protocol
◆ _hls_primary_playlist
◆ _manifest
std::string MBMS_RT::Service::_manifest |
|
private |
◆ _manifest_path
std::string MBMS_RT::Service::_manifest_path |
|
private |
◆ _names
std::map<std::string, std::string> MBMS_RT::Service::_names |
|
private |
The documentation for this class was generated from the following files: