Module tdlight.api

Class TdApi.VideoNote

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.VideoNote
Enclosing class:
TdApi

public static final class TdApi.VideoNote extends TdApi.Object
Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.
  • Field Details

    • duration

      public int duration
      Duration of the video, in seconds; as defined by the sender.
    • waveform

      public byte[] waveform
      A waveform representation of the video note's audio in 5-bit format; may be empty if unknown.
    • length

      public int length
      Video width and height; as defined by the sender.
    • minithumbnail

      public TdApi.Minithumbnail minithumbnail
      Video minithumbnail; may be null.
    • thumbnail

      public TdApi.Thumbnail thumbnail
      Video thumbnail in JPEG format; as defined by the sender; may be null.
    • speechRecognitionResult

      public TdApi.SpeechRecognitionResult speechRecognitionResult
      Result of speech recognition in the video note; may be null.
    • video

      public TdApi.File video
      File containing the video.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • VideoNote

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

      public VideoNote(int duration, byte[] waveform, int length, TdApi.Minithumbnail minithumbnail, TdApi.Thumbnail thumbnail, TdApi.SpeechRecognitionResult speechRecognitionResult, TdApi.File video)
      Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.
      Parameters:
      duration - int Duration of the video, in seconds; as defined by the sender.
      waveform - byte[] A waveform representation of the video note's audio in 5-bit format; may be empty if unknown.
      length - int Video width and height; as defined by the sender.
      minithumbnail - Minithumbnail Video minithumbnail; may be null.
      thumbnail - Thumbnail Video thumbnail in JPEG format; as defined by the sender; may be null.
      speechRecognitionResult - SpeechRecognitionResult Result of speech recognition in the video note; may be null.
      video - File File containing the video.
    • VideoNote

      public VideoNote(DataInput input) throws IOException
      Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.
      Throws:
      IOException
  • Method Details