Class: TD::Types::VideoNote

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

Overview

Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.

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_note.rb', line 14

def duration
  @duration
end

#lengthInteger

Video width and height; as defined by the sender.

Returns:

  • (Integer)

    the current value of length



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

def length
  @length
end

#minithumbnailTD::Types::Minithumbnail?

Video minithumbnail; may be null.

Returns:



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

def minithumbnail
  @minithumbnail
end

#speech_recognition_resultTD::Types::SpeechRecognitionResult?

Result of speech recognition in the video note; may be null.

Returns:



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

def speech_recognition_result
  @speech_recognition_result
end

#thumbnailTD::Types::Thumbnail?

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

Returns:



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

def thumbnail
  @thumbnail
end

#videoTD::Types::File

File containing the video.

Returns:



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

def video
  @video
end

#waveformString?

A waveform representation of the video note’s audio in 5-bit format; may be empty if unknown.

Returns:

  • (String, nil)

    the current value of waveform



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

def waveform
  @waveform
end