Shaka Packager SDK
|
A synchronized queue for cue points. More...
#include <sync_point_queue.h>
Public Member Functions | |
SyncPointQueue (const AdCueGeneratorParams ¶ms) | |
void | AddThread () |
void | Cancel () |
Cancel the queue and unblock all threads. | |
double | GetHint (double time_in_seconds) |
std::shared_ptr< const CueEvent > | GetNext (double hint_in_seconds) |
std::shared_ptr< const CueEvent > | PromoteAt (double time_in_seconds) |
bool | HasMore (double hint_in_seconds) const |
A synchronized queue for cue points.
Definition at line 20 of file sync_point_queue.h.
void shaka::media::SyncPointQueue::AddThread | ( | ) |
Add a new thread. Each thread using this instance must call this method in order to keep track of its clients.
Definition at line 25 of file sync_point_queue.cc.
double shaka::media::SyncPointQueue::GetHint | ( | double | time_in_seconds | ) |
Definition at line 38 of file sync_point_queue.cc.
std::shared_ptr< const CueEvent > shaka::media::SyncPointQueue::GetNext | ( | double | hint_in_seconds | ) |
Definition at line 54 of file sync_point_queue.cc.
bool shaka::media::SyncPointQueue::HasMore | ( | double | hint_in_seconds | ) | const |
Definition at line 90 of file sync_point_queue.cc.
std::shared_ptr< const CueEvent > shaka::media::SyncPointQueue::PromoteAt | ( | double | time_in_seconds | ) |
Promote the first cue that is not greater than time_in_seconds. All unpromoted cues before the cue will be discarded.
Definition at line 84 of file sync_point_queue.cc.