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

Inherits Function.

Description

Returns a file with a segment of a video chat or live story in a modified OGG format for audio or MPEG-4 format for video.

Returns object_ptr<Data>.

Public Types

using ReturnType = object_ptr<data>
 Typedef for the type returned by the function.

Public Member Functions

 getGroupCallStreamSegment ()
 getGroupCallStreamSegment (int32 group_call_id_, int53 time_offset_, int32 scale_, int32 channel_id_, object_ptr< GroupCallVideoQuality > &&video_quality_)
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

int32 channel_id_
 Identifier of an audio/video channel to get as received from tgcalls.
int32 group_call_id_
 Group call identifier.
int32 scale_
 Segment duration scale; 0-1. Segment's duration is 1000/(2**scale) milliseconds.
int53 time_offset_
 Point in time when the stream segment begins; Unix timestamp in milliseconds.
object_ptr< GroupCallVideoQuality > video_quality_
 Video quality as received from tgcalls; pass null to get the worst available quality.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ getGroupCallStreamSegment() [1/2]

getGroupCallStreamSegment ( )

Default constructor for a function, which returns a file with a segment of a video chat or live story in a modified OGG format for audio or MPEG-4 format for video.

Returns object_ptr<Data>.

◆ getGroupCallStreamSegment() [2/2]

getGroupCallStreamSegment ( int32 group_call_id_,
int53 time_offset_,
int32 scale_,
int32 channel_id_,
object_ptr< GroupCallVideoQuality > && video_quality_ )

Creates a function, which returns a file with a segment of a video chat or live story in a modified OGG format for audio or MPEG-4 format for video.

Returns object_ptr<Data>.

Parameters
[in]group_call_id_Group call identifier.
[in]time_offset_Point in time when the stream segment begins; Unix timestamp in milliseconds.
[in]scale_Segment duration scale; 0-1. Segment's duration is 1000/(2**scale) milliseconds.
[in]channel_id_Identifier of an audio/video channel to get as received from tgcalls.
[in]video_quality_Video quality as received from tgcalls; pass null to get the worst available quality.

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: