Class: TD::Types::Video
- Defined in:
- lib/tdlib/types/video.rb
Overview
Describes a video file.
Instance Attribute Summary collapse
-
#duration ⇒ Integer
Duration of the video, in seconds; as defined by the sender.
-
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
-
#has_stickers ⇒ Boolean
True, if stickers were added to the video.
-
#height ⇒ Integer
Video height; as defined by the sender.
-
#mime_type ⇒ TD::Types::String
MIME type of the file; as defined by the sender.
-
#minithumbnail ⇒ TD::Types::Minithumbnail?
Video minithumbnail; may be null.
-
#supports_streaming ⇒ Boolean
True, if the video should be tried to be streamed.
-
#thumbnail ⇒ TD::Types::Thumbnail?
Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null.
-
#video ⇒ TD::Types::File
File containing the video.
-
#width ⇒ Integer
Video width; as defined by the sender.
Method Summary
Methods inherited from Base
Instance Attribute Details
#duration ⇒ Integer
Duration of the video, in seconds; as defined by the sender.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def duration @duration end |
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def file_name @file_name end |
#has_stickers ⇒ Boolean
True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def has_stickers @has_stickers end |
#height ⇒ Integer
Video height; as defined by the sender.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def height @height end |
#mime_type ⇒ TD::Types::String
MIME type of the file; as defined by the sender.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def mime_type @mime_type end |
#minithumbnail ⇒ TD::Types::Minithumbnail?
Video minithumbnail; may be null.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def minithumbnail @minithumbnail end |
#supports_streaming ⇒ Boolean
True, if the video should be tried to be streamed.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def supports_streaming @supports_streaming end |
#thumbnail ⇒ TD::Types::Thumbnail?
Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def thumbnail @thumbnail end |
#video ⇒ TD::Types::File
File containing the video.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def video @video end |
#width ⇒ Integer
Video width; as defined by the sender.
16 17 18 |
# File 'lib/tdlib/types/video.rb', line 16 def width @width end |