|
| HlsNotifier (const HlsParams &hls_params) |
|
virtual bool | Init ()=0 |
|
virtual bool | NotifyNewStream (const MediaInfo &media_info, const std::string &playlist_name, const std::string &stream_name, const std::string &group_id, uint32_t *stream_id)=0 |
|
virtual bool | NotifySampleDuration (uint32_t stream_id, uint32_t sample_duration)=0 |
|
virtual bool | NotifyNewSegment (uint32_t stream_id, const std::string &segment_name, uint64_t start_time, uint64_t duration, uint64_t start_byte_offset, uint64_t size)=0 |
|
virtual bool | NotifyKeyFrame (uint32_t stream_id, uint64_t timestamp, uint64_t start_byte_offset, uint64_t size)=0 |
|
virtual bool | NotifyCueEvent (uint32_t stream_id, uint64_t timestamp)=0 |
|
virtual bool | NotifyEncryptionUpdate (uint32_t stream_id, const std::vector< uint8_t > &key_id, const std::vector< uint8_t > &system_id, const std::vector< uint8_t > &iv, const std::vector< uint8_t > &protection_system_specific_data)=0 |
|
virtual bool | Flush ()=0 |
|
const HlsParams & | hls_params () const |
|
Definition at line 20 of file hls_notifier.h.
◆ Flush()
virtual bool shaka::hls::HlsNotifier::Flush |
( |
| ) |
|
|
pure virtual |
◆ hls_params()
const HlsParams& shaka::hls::HlsNotifier::hls_params |
( |
| ) |
const |
|
inline |
◆ Init()
virtual bool shaka::hls::HlsNotifier::Init |
( |
| ) |
|
|
pure virtual |
◆ NotifyCueEvent()
virtual bool shaka::hls::HlsNotifier::NotifyCueEvent |
( |
uint32_t |
stream_id, |
|
|
uint64_t |
timestamp |
|
) |
| |
|
pure virtual |
◆ NotifyEncryptionUpdate()
virtual bool shaka::hls::HlsNotifier::NotifyEncryptionUpdate |
( |
uint32_t |
stream_id, |
|
|
const std::vector< uint8_t > & |
key_id, |
|
|
const std::vector< uint8_t > & |
system_id, |
|
|
const std::vector< uint8_t > & |
iv, |
|
|
const std::vector< uint8_t > & |
protection_system_specific_data |
|
) |
| |
|
pure virtual |
- Parameters
-
stream_id | is the value set by NotifyNewStream(). |
key_id | is the key ID for the stream. |
system_id | is the DRM system ID in e.g. PSSH boxes. For example this can be used to determine the KEYFORMAT attribute for EXT-X-KEY. |
iv | is the new initialization vector. |
protection_system_specific_data | is the DRM specific data. The interpretation of this data is up to the implementation, possibly using system_id to determine how to interpret the data. |
Implemented in shaka::hls::SimpleHlsNotifier.
◆ NotifyKeyFrame()
virtual bool shaka::hls::HlsNotifier::NotifyKeyFrame |
( |
uint32_t |
stream_id, |
|
|
uint64_t |
timestamp, |
|
|
uint64_t |
start_byte_offset, |
|
|
uint64_t |
size |
|
) |
| |
|
pure virtual |
Called on every key frame. For Video only.
- Parameters
-
stream_id | is the value set by NotifyNewStream(). |
timestamp | is the timesamp of the key frame in timescale units passed in media_info. |
start_byte_offset | is the offset of where the keyframe starts. |
size | is the size in bytes. |
Implemented in shaka::hls::SimpleHlsNotifier.
◆ NotifyNewSegment()
virtual bool shaka::hls::HlsNotifier::NotifyNewSegment |
( |
uint32_t |
stream_id, |
|
|
const std::string & |
segment_name, |
|
|
uint64_t |
start_time, |
|
|
uint64_t |
duration, |
|
|
uint64_t |
start_byte_offset, |
|
|
uint64_t |
size |
|
) |
| |
|
pure virtual |
- Parameters
-
stream_id | is the value set by NotifyNewStream(). |
segment_name | is the name of the new segment. |
start_time | is the start time of the segment in timescale units passed in media_info. |
duration | is also in terms of timescale. |
start_byte_offset | is the offset of where the subsegment starts. This should be 0 if the whole segment is a subsegment. |
size | is the size in bytes. |
Implemented in shaka::hls::SimpleHlsNotifier.
◆ NotifyNewStream()
virtual bool shaka::hls::HlsNotifier::NotifyNewStream |
( |
const MediaInfo & |
media_info, |
|
|
const std::string & |
playlist_name, |
|
|
const std::string & |
stream_name, |
|
|
const std::string & |
group_id, |
|
|
uint32_t * |
stream_id |
|
) |
| |
|
pure virtual |
- Parameters
-
media_info | specifies the stream. |
playlist_name | is the name of the playlist that this stream should go. |
stream_name | is the name of this stream. |
group_id | is the group ID for this stream. |
stream_id | is set to a value so that it can be used to call the other methods. If this returns false, the stream_id may be set to an invalid value. |
- Returns
- true on sucess, false otherwise.
Implemented in shaka::hls::SimpleHlsNotifier.
◆ NotifySampleDuration()
virtual bool shaka::hls::HlsNotifier::NotifySampleDuration |
( |
uint32_t |
stream_id, |
|
|
uint32_t |
sample_duration |
|
) |
| |
|
pure virtual |
Change the sample duration of stream with stream_id.
- Parameters
-
stream_id | is the value set by NotifyNewStream(). |
sample_duration | is the duration of a sample in timescale of the media. |
- Returns
- true on success, false otherwise. This may fail if the stream specified by stream_id does not exist.
Implemented in shaka::hls::SimpleHlsNotifier.
The documentation for this class was generated from the following file: