Shaka Packager SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
shaka::media::TextSample Class Reference

Public Member Functions

 TextSample (const std::string &id, int64_t start_time, int64_t end_time, const TextSettings &settings, const TextFragment &body)
 
 TextSample (const std::string &id, int64_t start_time, int64_t end_time, const TextSettings &settings, const TextFragment &body, TextSampleRole role)
 
const std::string & id () const
 
int64_t start_time () const
 
int64_t duration () const
 
const TextSettingssettings () const
 
const TextFragmentbody () const
 
int64_t EndTime () const
 
int32_t sub_stream_index () const
 
void set_sub_stream_index (int32_t idx)
 
bool is_empty () const
 
TextSampleRole role () const
 

Detailed Description

Definition at line 135 of file text_sample.h.

Constructor & Destructor Documentation

◆ TextSample() [1/2]

shaka::media::TextSample::TextSample ( const std::string &  id,
int64_t  start_time,
int64_t  end_time,
const TextSettings settings,
const TextFragment body 
)

Definition at line 23 of file text_sample.cc.

◆ TextSample() [2/2]

shaka::media::TextSample::TextSample ( const std::string &  id,
int64_t  start_time,
int64_t  end_time,
const TextSettings settings,
const TextFragment body,
TextSampleRole  role 
)

Definition at line 35 of file text_sample.cc.

Member Function Documentation

◆ body()

const TextFragment & shaka::media::TextSample::body ( ) const
inline

Definition at line 154 of file text_sample.h.

◆ duration()

int64_t shaka::media::TextSample::duration ( ) const
inline

Definition at line 152 of file text_sample.h.

◆ EndTime()

int64_t shaka::media::TextSample::EndTime ( ) const

Definition at line 48 of file text_sample.cc.

◆ id()

const std::string & shaka::media::TextSample::id ( ) const
inline

Definition at line 150 of file text_sample.h.

◆ is_empty()

bool shaka::media::TextSample::is_empty ( ) const
inline

Definition at line 159 of file text_sample.h.

◆ role()

TextSampleRole shaka::media::TextSample::role ( ) const
inline

Definition at line 160 of file text_sample.h.

◆ set_sub_stream_index()

void shaka::media::TextSample::set_sub_stream_index ( int32_t  idx)
inline

Definition at line 158 of file text_sample.h.

◆ settings()

const TextSettings & shaka::media::TextSample::settings ( ) const
inline

Definition at line 153 of file text_sample.h.

◆ start_time()

int64_t shaka::media::TextSample::start_time ( ) const
inline

Definition at line 151 of file text_sample.h.

◆ sub_stream_index()

int32_t shaka::media::TextSample::sub_stream_index ( ) const
inline

Definition at line 157 of file text_sample.h.


The documentation for this class was generated from the following files: