Class Video

java.lang.Object
com.github.twitch4j.helix.domain.Video

public class Video extends Object
Video
  • Constructor Details

    • Video

      public Video()
  • Method Details

    • getParsedType

      public Video.Type getParsedType()
      Returns:
      the Video.Type of the video
    • getThumbnailUrl

      public String getThumbnailUrl(int width, int height)
      Gets the thumbnail url for specific dimensions.
      Parameters:
      width - Thumbnail width.
      height - Thumbnail height.
      Returns:
      String
    • getCreatedAt

      @Deprecated public Date getCreatedAt()
      Deprecated.
      in favor of getCreatedAtInstant()
      Returns:
      the timestamp when the video was created
    • getPublishedAt

      @Deprecated public Date getPublishedAt()
      Deprecated.
      in favor of getPublishedAtInstant()
      Returns:
      the timestamp when the video was published
    • getId

      public String getId()
      ID of the video.
    • getStreamId

      @Nullable public @Nullable String getStreamId()
      ID of the stream that the video originated from if the type is "archive". Otherwise set to null.
    • getUserId

      public String getUserId()
      ID of the user who owns the video.
    • getUserLogin

      public String getUserLogin()
      Login of the user who owns the video.
    • getUserName

      public String getUserName()
      Login name corresponding to user_id.
    • getTitle

      public String getTitle()
      Title of the video.
    • getDescription

      public String getDescription()
      Description of the video.
    • getCreatedAtInstant

      public Instant getCreatedAtInstant()
      Date when the video was created.
    • getPublishedAtInstant

      public Instant getPublishedAtInstant()
      Date when the video was published.
    • getUrl

      public String getUrl()
      URL of the video.
    • getThumbnailUrl

      public String getThumbnailUrl()
      Template URL for the thumbnail of the video.
    • getViewable

      public String getViewable()
      Indicates whether the video is publicly viewable. Valid values: "public", "private".
    • getViewCount

      public Integer getViewCount()
      Number of times the video has been viewed.
    • getLanguage

      public String getLanguage()
      Language of the video.
    • getType

      public String getType()
      Type of video. Valid values: "upload", "archive", "highlight".
    • getDuration

      public String getDuration()
      Length of the video.
    • getMutedSegments

      @Nullable public @Nullable List<Video.MutedSegment> getMutedSegments()
      Array of muted segments in the video. If there are no muted segments, the value will be null.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object