Native Player  1.0
CommonStreamDescription Struct Reference

Describes a media stream common part for the audio and video streams used in their description. More...

#include <media_stream.h>

Public Member Functions

 CommonStreamDescription ()
 Constructs a CommonStreamDescription with 0 values. More...
 
 CommonStreamDescription (const CommonStreamDescription &other)=default
 Constructs a copy of other. More...
 
 CommonStreamDescription (CommonStreamDescription &&other)=default
 
CommonStreamDescriptionoperator= (const CommonStreamDescription &other)=default
 Assigns other to this CommonStreamDescription More...
 
CommonStreamDescriptionoperator= (CommonStreamDescription &&other)=default
 
 ~CommonStreamDescription ()=default
 Destroys CommonStreamDescription object. More...
 

Public Attributes

uint32_t id
 
uint32_t bitrate
 
std::shared_ptr< ContentProtectionDescriptorcontent_protection
 

Detailed Description

Describes a media stream common part for the audio and video streams used in their description.

Note
Fields which aren't specified in the DASH manifest should be 0 or empty.
See also
AudioStream
VideoStream

Definition at line 56 of file media_stream.h.

Constructor & Destructor Documentation

CommonStreamDescription::CommonStreamDescription ( )
inline

Constructs a CommonStreamDescription with 0 values.

Definition at line 72 of file media_stream.h.

CommonStreamDescription::CommonStreamDescription ( const CommonStreamDescription other)
default

Constructs a copy of other.

CommonStreamDescription::CommonStreamDescription ( CommonStreamDescription &&  other)
default

Move-constructs a CommonStreamDescription object, making it point at the same object that other was pointing to.

CommonStreamDescription::~CommonStreamDescription ( )
default

Destroys CommonStreamDescription object.

Member Function Documentation

CommonStreamDescription& CommonStreamDescription::operator= ( const CommonStreamDescription other)
default

Assigns other to this CommonStreamDescription

CommonStreamDescription& CommonStreamDescription::operator= ( CommonStreamDescription &&  other)
default

Move-assigns other to this CommonStreamDescription object.

Member Data Documentation

uint32_t CommonStreamDescription::bitrate

Describes bitrate of the media stream. Can be useful while choosing stream to play basing on network connection.

Definition at line 65 of file media_stream.h.

std::shared_ptr<ContentProtectionDescriptor> CommonStreamDescription::content_protection

Describes content protection information. Such as DRM type and server address.

Definition at line 69 of file media_stream.h.

uint32_t CommonStreamDescription::id

Describes id of a media stream. It is counted from 0 and is increased when next audio or video stream is added.

Note
AudioStream and VideoStream objects are identified and counted independently.

Definition at line 61 of file media_stream.h.


The documentation for this struct was generated from the following file: