List of all members | Public Fields | Public Instance Methods | Static Public Attributes
storyVideo Class Referencefinal

Inherits Object.

Description

Describes a video file sent in a story.

Public Fields

double duration_
 Duration of the video, in seconds.
 
int32 width_
 Video width.
 
int32 height_
 Video height.
 
bool has_stickers_
 True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets.
 
bool is_animation_
 True, if the video has no sound.
 
object_ptr< minithumbnailminithumbnail_
 Video minithumbnail; may be null.
 
object_ptr< thumbnailthumbnail_
 Video thumbnail in JPEG or MPEG4 format; may be null.
 
int32 preload_prefix_size_
 Size of file prefix, which is expected to be preloaded, in bytes.
 
double cover_frame_timestamp_
 Timestamp of the frame used as video thumbnail.
 
object_ptr< filevideo_
 File containing the video.
 

Public Instance Methods

 storyVideo ()
 
 storyVideo (double duration_, int32 width_, int32 height_, bool has_stickers_, bool is_animation_, object_ptr< minithumbnail > &&minithumbnail_, object_ptr< thumbnail > &&thumbnail_, int32 preload_prefix_size_, double cover_frame_timestamp_, object_ptr< file > &&video_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ storyVideo() [1/2]

Describes a video file sent in a story.

◆ storyVideo() [2/2]

storyVideo ( double  duration_,
int32  width_,
int32  height_,
bool  has_stickers_,
bool  is_animation_,
object_ptr< minithumbnail > &&  minithumbnail_,
object_ptr< thumbnail > &&  thumbnail_,
int32  preload_prefix_size_,
double  cover_frame_timestamp_,
object_ptr< file > &&  video_ 
)

Describes a video file sent in a story.

Parameters
[in]duration_Duration of the video, in seconds.
[in]width_Video width.
[in]height_Video height.
[in]has_stickers_True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets.
[in]is_animation_True, if the video has no sound.
[in]minithumbnail_Video minithumbnail; may be null.
[in]thumbnail_Video thumbnail in JPEG or MPEG4 format; may be null.
[in]preload_prefix_size_Size of file prefix, which is expected to be preloaded, in bytes.
[in]cover_frame_timestamp_Timestamp of the frame used as video thumbnail.
[in]video_File containing the video.

Method 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: