#include <mpd_notifier.h>
Interface for publish/subscribe publisher class which notifies MpdBuilder of media-related events.
Definition at line 32 of file mpd_notifier.h.
virtual bool edash_packager::MpdNotifier::AddContentProtectionElement |
( |
uint32_t |
container_id, |
|
|
const ContentProtectionElement & |
content_protection_element |
|
) |
| |
|
pure virtual |
DashProfile edash_packager::MpdNotifier::dash_profile |
( |
| ) |
const |
|
inline |
- Returns
- The dash profile for this object.
Definition at line 108 of file mpd_notifier.h.
virtual bool edash_packager::MpdNotifier::Flush |
( |
| ) |
|
|
pure virtual |
virtual bool edash_packager::MpdNotifier::Init |
( |
| ) |
|
|
pure virtual |
virtual bool edash_packager::MpdNotifier::NotifyEncryptionUpdate |
( |
uint32_t |
container_id, |
|
|
const std::string & |
drm_uuid, |
|
|
const std::vector< uint8_t > & |
new_key_id, |
|
|
const std::vector< uint8_t > & |
new_pssh |
|
) |
| |
|
pure virtual |
Notifiers MpdBuilder that there is a new PSSH for the container. This may be called whenever the key has to change, e.g. key rotation.
- Parameters
-
container_id | Container ID obtained from calling NotifyNewContainer(). |
drm_uuid | is the UUID of the DRM for encryption. |
new_key_id | is the new key ID for the key. |
new_pssh | is the new pssh box (including the header). |
- Attention
- This might change or get removed once DASH IF IOP specification writes a clear guideline on how to handle key rotation.
Implemented in edash_packager::SimpleMpdNotifier, and edash_packager::DashIopMpdNotifier.
virtual bool edash_packager::MpdNotifier::NotifyNewContainer |
( |
const MediaInfo & |
media_info, |
|
|
uint32_t * |
container_id |
|
) |
| |
|
pure virtual |
virtual bool edash_packager::MpdNotifier::NotifyNewSegment |
( |
uint32_t |
container_id, |
|
|
uint64_t |
start_time, |
|
|
uint64_t |
duration, |
|
|
uint64_t |
size |
|
) |
| |
|
pure virtual |
Notifies MpdBuilder that there is a new segment ready. For live, this is usually a new segment, for VOD this is usually a subsegment.
- Parameters
-
container_id | Container ID obtained from calling NotifyNewContainer(). |
start_time | is the start time of the new segment, in units of the stream's time scale. |
duration | is the duration of the new segment, in units of the stream's time scale. |
size | is the new segment size in bytes. |
- Returns
- true on success, false otherwise.
Implemented in edash_packager::SimpleMpdNotifier, and edash_packager::DashIopMpdNotifier.
virtual bool edash_packager::MpdNotifier::NotifySampleDuration |
( |
uint32_t |
container_id, |
|
|
uint32_t |
sample_duration |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: