Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::PackedAudioSegmenter Class Reference

#include <packed_audio_segmenter.h>

Public Member Functions

virtual Status Initialize (const StreamInfo &stream_info)
 
virtual Status AddSample (const MediaSample &sample)
 
virtual Status FinalizeSegment ()
 
virtual double TimescaleScale () const
 
BufferWritersegment_buffer ()
 

Detailed Description

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.

Member Function Documentation

◆ AddSample()

Status shaka::media::PackedAudioSegmenter::AddSample ( const MediaSample sample)
virtual
Parameters
samplegets added to this object.
Returns
OK on success.

Definition at line 52 of file packed_audio_segmenter.cc.

◆ 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_infois 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
Returns
A pointer to the buffer for the current segment.

Definition at line 68 of file packed_audio_segmenter.h.

◆ 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: