Raw.DocumentAttributeVideo

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: 198
Constructor ID: 0x43c57c48

Property

  • roundMessage : boolean or undefined

    Whether this is a round video

  • supportsStreaming : boolean or undefined

    Whether the video supports streaming

  • nosound : boolean or undefined

    Whether the specified document is a video file with no audio tracks (a gif animation (even as mpeg4), for example)

  • duration : number

    Duration in seconds

  • w : number

    Video width

  • h : number

    Video height

  • preloadPrefixSize : number or undefined

    Number of bytes to preload when preloading videos (particularly video stories).

  • videoStartTs : number or undefined

    Floating point unix timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail.

  • videoCodec : string or undefined

    Codec used for the video, i.e. β€œh264”, β€œh265”, or β€œav1”