This is thread safe.
More...
#include <simple_hls_notifier.h>
|
class | SimpleHlsNotifierTest |
| }@
|
|
bool | Init () override |
|
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) override |
|
bool | NotifySampleDuration (uint32_t stream_id, int32_t sample_duration) override |
|
bool | NotifyNewSegment (uint32_t stream_id, const std::string &segment_name, int64_t start_time, int64_t duration, uint64_t start_byte_offset, uint64_t size) override |
|
bool | NotifyKeyFrame (uint32_t stream_id, int64_t timestamp, uint64_t start_byte_offset, uint64_t size) override |
|
bool | NotifyCueEvent (uint32_t container_id, int64_t timestamp) override |
|
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) override |
|
bool | Flush () override |
|
This is thread safe.
Definition at line 39 of file simple_hls_notifier.h.
◆ SimpleHlsNotifier()
shaka::hls::SimpleHlsNotifier::SimpleHlsNotifier |
( |
const HlsParams & |
hls_params | ) |
|
|
explicit |
◆ Flush()
bool shaka::hls::SimpleHlsNotifier::Flush |
( |
| ) |
|
|
overridevirtual |
◆ Init()
bool shaka::hls::SimpleHlsNotifier::Init |
( |
| ) |
|
|
overridevirtual |
◆ NotifyCueEvent()
bool shaka::hls::SimpleHlsNotifier::NotifyCueEvent |
( |
uint32_t |
stream_id, |
|
|
int64_t |
timestamp |
|
) |
| |
|
overridevirtual |
◆ NotifyEncryptionUpdate()
bool shaka::hls::SimpleHlsNotifier::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 |
|
) |
| |
|
overridevirtual |
- 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. |
Implements shaka::hls::HlsNotifier.
Definition at line 432 of file simple_hls_notifier.cc.
◆ NotifyKeyFrame()
bool shaka::hls::SimpleHlsNotifier::NotifyKeyFrame |
( |
uint32_t |
stream_id, |
|
|
int64_t |
timestamp, |
|
|
uint64_t |
start_byte_offset, |
|
|
uint64_t |
size |
|
) |
| |
|
overridevirtual |
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. |
Implements shaka::hls::HlsNotifier.
Definition at line 405 of file simple_hls_notifier.cc.
◆ NotifyNewSegment()
bool shaka::hls::SimpleHlsNotifier::NotifyNewSegment |
( |
uint32_t |
stream_id, |
|
|
const std::string & |
segment_name, |
|
|
int64_t |
start_time, |
|
|
int64_t |
duration, |
|
|
uint64_t |
start_byte_offset, |
|
|
uint64_t |
size |
|
) |
| |
|
overridevirtual |
- 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. |
Implements shaka::hls::HlsNotifier.
Definition at line 354 of file simple_hls_notifier.cc.
◆ NotifyNewStream()
bool shaka::hls::SimpleHlsNotifier::NotifyNewStream |
( |
const MediaInfo & |
media_info, |
|
|
const std::string & |
playlist_name, |
|
|
const std::string & |
stream_name, |
|
|
const std::string & |
group_id, |
|
|
uint32_t * |
stream_id |
|
) |
| |
|
overridevirtual |
- 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.
Implements shaka::hls::HlsNotifier.
Definition at line 297 of file simple_hls_notifier.cc.
◆ NotifySampleDuration()
bool shaka::hls::SimpleHlsNotifier::NotifySampleDuration |
( |
uint32_t |
stream_id, |
|
|
int32_t |
sample_duration |
|
) |
| |
|
overridevirtual |
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.
Implements shaka::hls::HlsNotifier.
Definition at line 341 of file simple_hls_notifier.cc.
The documentation for this class was generated from the following files: