#include <packed_audio_segmenter.h>
Implements packed audio segment writer. https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-3.4 A Packed Audio Segment contains encoded audio samples and ID3 tags that are simply packed together with minimal framing and no per-sample timestamps.
Definition at line 40 of file packed_audio_segmenter.h.
◆ AddSample()
◆ FinalizeSegment()
Status shaka::media::PackedAudioSegmenter::FinalizeSegment |
( |
| ) |
|
|
virtual |
Flush all the samples that are (possibly) buffered and write them to the current segment.
- Returns
- OK on success.
Definition at line 73 of file packed_audio_segmenter.cc.
◆ Initialize()
Status shaka::media::PackedAudioSegmenter::Initialize |
( |
const StreamInfo & |
stream_info | ) |
|
|
virtual |
Initialize the object.
- Parameters
-
stream_info | is the stream info for the segmenter. |
- Returns
- OK on success.
Definition at line 30 of file packed_audio_segmenter.cc.
◆ segment_buffer()
BufferWriter* shaka::media::PackedAudioSegmenter::segment_buffer |
( |
| ) |
|
|
inline |
◆ TimescaleScale()
double shaka::media::PackedAudioSegmenter::TimescaleScale |
( |
| ) |
const |
|
virtual |
- Returns
- The scale for converting timestamp in input stream's scale to output stream's scale.
Definition at line 78 of file packed_audio_segmenter.cc.
The documentation for this class was generated from the following files: