TDLib
Loading...
Searching...
No Matches
alternativeVideo Class Referencefinal

Inherits Object.

Description

Describes an alternative re-encoded quality of a video file.

Public Member Functions

 alternativeVideo ()
 alternativeVideo (int64 id_, int32 width_, int32 height_, string const &codec_, object_ptr< file > &&hls_file_, object_ptr< file > &&video_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

string codec_
 Codec used for video file encoding, for example, "h264", "h265", "av1", or "av01".
int32 height_
 Video height.
object_ptr< file > hls_file_
 HLS file describing the video.
int64 id_
 Unique identifier of the alternative video, which is used in the HLS file.
object_ptr< file > video_
 File containing the video.
int32 width_
 Video width.

Static Public Attributes

static const std::int32_t ID = 483379470
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ alternativeVideo() [1/2]

alternativeVideo ( )

Describes an alternative re-encoded quality of a video file.

◆ alternativeVideo() [2/2]

alternativeVideo ( int64 id_,
int32 width_,
int32 height_,
string const & codec_,
object_ptr< file > && hls_file_,
object_ptr< file > && video_ )

Describes an alternative re-encoded quality of a video file.

Parameters
[in]id_Unique identifier of the alternative video, which is used in the HLS file.
[in]width_Video width.
[in]height_Video height.
[in]codec_Codec used for video file encoding, for example, "h264", "h265", "av1", or "av01".
[in]hls_file_HLS file describing the video.
[in]video_File containing the video.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


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