api.getGroupCallStreamSegment()
Returns a file with a segment of a group call stream in a modified OGG format for audio or MPEG-4 format for video
Parameters
GetGroupCallStreamSegmentParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
groupCallId | number | Group call identifier |
timeOffset | number | Point in time when the stream segment begins; Unix timestamp in milliseconds |
scale | number | Segment duration scale; 0-1. Segment's duration is 1000/(2**scale) milliseconds |
channelId | number | Identifier of an audio/video channel to get as received from tgcalls |
videoQuality | Video quality as received from tgcalls; pass null to get the worst available quality |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'getGroupCallStreamSegment' | 'error'
airgram: Airgram
request: {
method: 'getGroupCallStreamSegment'
params: GetGroupCallStreamSegmentParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}