Class: TD::Types::StoryVideo

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

Overview

Describes a video file sent in a story.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#cover_frame_timestampFloat

Timestamp of the frame used as video thumbnail.

Returns:

  • (Float)

    the current value of cover_frame_timestamp



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def cover_frame_timestamp
  @cover_frame_timestamp
end

#durationFloat

Duration of the video, in seconds.

Returns:

  • (Float)

    the current value of duration



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def duration
  @duration
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



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def has_stickers
  @has_stickers
end

#heightInteger

Video height.

Returns:

  • (Integer)

    the current value of height



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def height
  @height
end

#is_animationBoolean

True, if the video has no sound.

Returns:

  • (Boolean)

    the current value of is_animation



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def is_animation
  @is_animation
end

#minithumbnailTD::Types::Minithumbnail?

Video minithumbnail; may be null.

Returns:



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def minithumbnail
  @minithumbnail
end

#preload_prefix_sizeInteger

Size of file prefix, which is supposed to be preloaded, in bytes.

Returns:

  • (Integer)

    the current value of preload_prefix_size



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def preload_prefix_size
  @preload_prefix_size
end

#thumbnailTD::Types::Thumbnail?

Video thumbnail in JPEG or MPEG4 format; may be null.

Returns:



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def thumbnail
  @thumbnail
end

#videoTD::Types::File

File containing the video.

Returns:



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def video
  @video
end

#widthInteger

Video width.

Returns:

  • (Integer)

    the current value of width



15
16
17
# File 'lib/tdlib/types/story_video.rb', line 15

def width
  @width
end