Raw.DocumentAttributeVideo
Defines a video
documentAttributeVideo#43c57c48 flags:# round_message:flags.0?true supports_streaming:flags.1?true nosound:flags.3?true duration:double w:int h:int preload_prefix_size:flags.2?int video_start_ts:flags.4?double video_codec:flags.5?string = DocumentAttribute;export namespace Raw {
export class DocumentAttributeVideo {
constructor(params: {
roundMessage?: boolean;
supportsStreaming?: boolean;
nosound?: boolean;
duration: number;
w: number;
h: number;
preloadPrefixSize?: number;
videoStartTs?: number;
videoCodec?: string;
}) {}
}
}π«
This is a types constructor, you canβt use it as method when call invoke.
Layer: 201
Constructor ID: 0x43c57c48
Property
roundMessage: boolean or undefinedWhether this is a round video
supportsStreaming: boolean or undefinedWhether the video supports streaming
nosound: boolean or undefinedWhether the specified document is a video file with no audio tracks
duration: numberDuration in seconds
w: numberVideo width
h: numberVideo height
preloadPrefixSize: number or undefinedNumber of bytes to preload when preloading videos (particularly video stories).
videoStartTs: number or undefinedFloating point unix timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail.
videoCodec: string or undefinedCodec used for the video, i.e. βh264β, βh265β, or βav1β