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

Inherits Object.

Description

A video to be sent.

Public Member Functions

 inputVideo ()
 inputVideo (object_ptr< InputFile > &&video_, object_ptr< inputThumbnail > &&thumbnail_, object_ptr< InputFile > &&cover_, int32 start_timestamp_, array< int32 > &&added_sticker_file_ids_, int32 duration_, int32 width_, int32 height_, bool supports_streaming_)
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

array< int32 > added_sticker_file_ids_
 File identifiers of the stickers added to the video, if applicable.
object_ptr< InputFile > cover_
 Cover of the video; pass null to skip cover uploading; not supported in secret chats and for self-destructing messages.
int32 duration_
 Duration of the video, in seconds.
int32 height_
 Video height.
int32 start_timestamp_
 Timestamp from which the video playing must start, in seconds.
bool supports_streaming_
 True, if the video is expected to be streamed.
object_ptr< inputThumbnail > thumbnail_
 Video thumbnail; pass null to skip thumbnail uploading.
object_ptr< InputFile > video_
 Video file to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender.
int32 width_
 Video width.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputVideo() [1/2]

inputVideo ( )

A video to be sent.

◆ inputVideo() [2/2]

inputVideo ( object_ptr< InputFile > && video_,
object_ptr< inputThumbnail > && thumbnail_,
object_ptr< InputFile > && cover_,
int32 start_timestamp_,
array< int32 > && added_sticker_file_ids_,
int32 duration_,
int32 width_,
int32 height_,
bool supports_streaming_ )

A video to be sent.

Parameters
[in]video_Video file to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender.
[in]thumbnail_Video thumbnail; pass null to skip thumbnail uploading.
[in]cover_Cover of the video; pass null to skip cover uploading; not supported in secret chats and for self-destructing messages.
[in]start_timestamp_Timestamp from which the video playing must start, in seconds.
[in]added_sticker_file_ids_File identifiers of the stickers added to the video, if applicable.
[in]duration_Duration of the video, in seconds.
[in]width_Video width.
[in]height_Video height.
[in]supports_streaming_True, if the video is expected to be streamed.

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: