Class: TD::Types::Video

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/video.rb

Overview

Describes a video file.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#durationInteger

Duration of the video, in seconds; as defined by the sender.

Returns:

  • (Integer)

    the current value of duration



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def duration
  @duration
end

#file_nameTD::Types::String

Original name of the file; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of file_name



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def file_name
  @file_name
end

#has_stickersBoolean

True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets.

Returns:

  • (Boolean)

    the current value of has_stickers



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def has_stickers
  @has_stickers
end

#heightInteger

Video height; as defined by the sender.

Returns:

  • (Integer)

    the current value of height



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def height
  @height
end

#mime_typeTD::Types::String

MIME type of the file; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of mime_type



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def mime_type
  @mime_type
end

#minithumbnailTD::Types::Minithumbnail?

Video minithumbnail; may be null.

Returns:



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def minithumbnail
  @minithumbnail
end

#supports_streamingBoolean

True, if the video should be tried to be streamed.

Returns:

  • (Boolean)

    the current value of supports_streaming



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def supports_streaming
  @supports_streaming
end

#thumbnailTD::Types::Thumbnail?

Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null.

Returns:



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def thumbnail
  @thumbnail
end

#videoTD::Types::File

File containing the video.

Returns:



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def video
  @video
end

#widthInteger

Video width; as defined by the sender.

Returns:

  • (Integer)

    the current value of width



16
17
18
# File 'lib/tdlib/types/video.rb', line 16

def width
  @width
end