Constructor: documentAttributeVideo
Defines a video
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| round_message | Bool | Optional | Whether this is a round video |
| supports_streaming | Bool | Optional | Whether the video supports streaming |
| nosound | Bool | Optional | Whether the specified document is a video file with no audio tracks |
| duration | double | Optional | Duration in seconds |
| w | int | Optional | Video width |
| h | int | Optional | Video height |
| preload_prefix_size | int | Optional | Number of bytes to preload when preloading videos (particularly video stories). |
| video_start_ts | double | Optional | Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail. |
| video_codec | string | Optional | Codec used for the video, i.e. “h264”, “h265”, or “av1” |
Type: DocumentAttribute
Example:
$documentAttributeVideo = ['_' => 'documentAttributeVideo', 'round_message' => Bool, 'supports_streaming' => Bool, 'nosound' => Bool, 'duration' => double, 'w' => int, 'h' => int, 'preload_prefix_size' => int, 'video_start_ts' => double, 'video_codec' => 'string'];