DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Friends | List of all members
shaka::media::StreamInfo Class Referenceabstract

Abstract class holds stream information. More...

#include <stream_info.h>

Inheritance diagram for shaka::media::StreamInfo:
shaka::media::AudioStreamInfo shaka::media::TextStreamInfo shaka::media::VideoStreamInfo

Public Member Functions

 StreamInfo (StreamType stream_type, int track_id, uint32_t time_scale, uint64_t duration, const std::string &codec_string, const std::string &language, const uint8_t *codec_config, size_t codec_config_size, bool is_encrypted)
 
virtual bool IsValidConfig () const =0
 
virtual std::string ToString () const
 
StreamType stream_type () const
 
uint32_t track_id () const
 
uint32_t time_scale () const
 
uint64_t duration () const
 
const std::string & codec_string () const
 
const std::string & language () const
 
bool is_encrypted () const
 
const std::vector< uint8_t > & codec_config () const
 
void set_duration (int duration)
 
void set_codec_config (const std::vector< uint8_t > &data)
 
void set_codec_string (const std::string &codec_string)
 
void set_language (const std::string &language)
 

Friends

class base::RefCountedThreadSafe< StreamInfo >
 

Detailed Description

Abstract class holds stream information.

Definition at line 26 of file stream_info.h.

Member Function Documentation

virtual bool shaka::media::StreamInfo::IsValidConfig ( ) const
pure virtual
Returns
true if this object has appropriate configuration values, false otherwise.

Implemented in shaka::media::AudioStreamInfo, shaka::media::VideoStreamInfo, and shaka::media::TextStreamInfo.

std::string shaka::media::StreamInfo::ToString ( ) const
virtual
Returns
A human-readable string describing the stream info.

Reimplemented in shaka::media::AudioStreamInfo, and shaka::media::VideoStreamInfo.

Definition at line 40 of file stream_info.cc.


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