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



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def duration
  @duration
end

#file_nameString

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

Returns:

  • (String)

    the current value of file_name



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def file_name
  @file_name
end

#has_stickersBoolean

True, if stickers were added to the video.

Returns:

  • (Boolean)

    the current value of has_stickers



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def has_stickers
  @has_stickers
end

#heightInteger

Video height; as defined by the sender.

Returns:

  • (Integer)

    the current value of height



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def height
  @height
end

#mime_typeString

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

Returns:

  • (String)

    the current value of mime_type



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def mime_type
  @mime_type
end

#minithumbnailTD::Types::Minithumbnail?

Video minithumbnail; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def minithumbnail
  @minithumbnail
end

#supports_streamingBoolean

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

Returns:

  • (Boolean)

    the current value of supports_streaming



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def supports_streaming
  @supports_streaming
end

#thumbnailTD::Types::PhotoSize?

Video thumbnail; as defined by the sender; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def thumbnail
  @thumbnail
end

#videoTD::Types::File

File containing the video.

Returns:



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def video
  @video
end

#widthInteger

Video width; as defined by the sender.

Returns:

  • (Integer)

    the current value of width



14
15
16
# File 'lib/tdlib/types/video.rb', line 14

def width
  @width
end