Class: TD::Types::StoryVideo
- Defined in:
- lib/tdlib/types/story_video.rb
Overview
Describes a video file sent in a story.
Instance Attribute Summary collapse
-
#cover_frame_timestamp ⇒ Float
Timestamp of the frame used as video thumbnail.
-
#duration ⇒ Float
Duration of the video, in seconds.
-
#has_stickers ⇒ Boolean
True, if stickers were added to the video.
-
#height ⇒ Integer
Video height.
-
#is_animation ⇒ Boolean
True, if the video has no sound.
-
#minithumbnail ⇒ TD::Types::Minithumbnail?
Video minithumbnail; may be null.
-
#preload_prefix_size ⇒ Integer
Size of file prefix, which is supposed to be preloaded, in bytes.
-
#thumbnail ⇒ TD::Types::Thumbnail?
Video thumbnail in JPEG or MPEG4 format; may be null.
-
#video ⇒ TD::Types::File
File containing the video.
-
#width ⇒ Integer
Video width.
Method Summary
Methods inherited from Base
Instance Attribute Details
#cover_frame_timestamp ⇒ Float
Timestamp of the frame used as video thumbnail.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def end |
#duration ⇒ Float
Duration of the video, in seconds.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def duration @duration end |
#has_stickers ⇒ Boolean
True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def has_stickers @has_stickers end |
#height ⇒ Integer
Video height.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def height @height end |
#is_animation ⇒ Boolean
True, if the video has no sound.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def is_animation @is_animation end |
#minithumbnail ⇒ TD::Types::Minithumbnail?
Video minithumbnail; may be null.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def minithumbnail @minithumbnail end |
#preload_prefix_size ⇒ Integer
Size of file prefix, which is supposed to be preloaded, in bytes.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def preload_prefix_size @preload_prefix_size end |
#thumbnail ⇒ TD::Types::Thumbnail?
Video thumbnail in JPEG or MPEG4 format; may be null.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def thumbnail @thumbnail end |
#video ⇒ TD::Types::File
File containing the video.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def video @video end |
#width ⇒ Integer
Video width.
15 16 17 |
# File 'lib/tdlib/types/story_video.rb', line 15 def width @width end |