Link Search Menu Expand Document

Constructor: documentAttributeVideo

Back to constructors index

Defines a video

Attributes:

NameTypeRequiredDescription
round_messageBoolOptionalWhether this is a round video
supports_streamingBoolOptionalWhether the video supports streaming
nosoundBoolOptionalWhether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)
durationdoubleOptionalDuration in seconds
wintOptionalVideo width
hintOptionalVideo height
preload_prefix_sizeintOptionalNumber of bytes to preload when preloading videos (particularly video stories).
video_start_tsdoubleOptional
video_codecstringOptional

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'];