|
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.
|
explicit |
Definition at line 19 of file sync_point_queue.cc.
| 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 27 of file sync_point_queue.cc.
| void shaka::media::SyncPointQueue::Cancel | ( | ) |
Cancel the queue and unblock all threads.
Definition at line 32 of file sync_point_queue.cc.
| double shaka::media::SyncPointQueue::GetHint | ( | double | time_in_seconds | ) |
Definition at line 40 of file sync_point_queue.cc.
| std::shared_ptr< const CueEvent > shaka::media::SyncPointQueue::GetNext | ( | double | hint_in_seconds | ) |
Definition at line 56 of file sync_point_queue.cc.
| bool shaka::media::SyncPointQueue::HasMore | ( | double | hint_in_seconds | ) | const |
Definition at line 92 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 86 of file sync_point_queue.cc.