Class StreamInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class StreamInfo
    extends Info
    Info object for opened contents, i.e. the content ready to play.
    See Also:
    Serialized Form
    • Constructor Detail

      • StreamInfo

        public StreamInfo​(int serviceId,
                          java.lang.String url,
                          java.lang.String originalUrl,
                          StreamType streamType,
                          java.lang.String id,
                          java.lang.String name,
                          int ageLimit)
    • Method Detail

      • getStreamType

        public StreamType getStreamType()
        Get the stream type
        Returns:
        the stream type
      • setStreamType

        public void setStreamType​(StreamType streamType)
      • getThumbnails

        @Nonnull
        public java.util.List<Image> getThumbnails()
        Get the thumbnail url
        Returns:
        the thumbnail url as a string
      • setThumbnails

        public void setThumbnails​(@Nonnull
                                  java.util.List<Image> thumbnails)
      • getTextualUploadDate

        public java.lang.String getTextualUploadDate()
      • setTextualUploadDate

        public void setTextualUploadDate​(java.lang.String textualUploadDate)
      • setUploadDate

        public void setUploadDate​(DateWrapper uploadDate)
      • getDuration

        public long getDuration()
        Get the duration in seconds
        Returns:
        the duration in seconds
      • setDuration

        public void setDuration​(long duration)
      • getAgeLimit

        public int getAgeLimit()
      • setAgeLimit

        public void setAgeLimit​(int ageLimit)
      • setDescription

        public void setDescription​(Description description)
      • getViewCount

        public long getViewCount()
      • setViewCount

        public void setViewCount​(long viewCount)
      • getLikeCount

        public long getLikeCount()
        Get the number of likes.
        Returns:
        The number of likes or -1 if this information is not available
      • setLikeCount

        public void setLikeCount​(long likeCount)
      • getDislikeCount

        public long getDislikeCount()
        Get the number of dislikes.
        Returns:
        The number of likes or -1 if this information is not available
      • setDislikeCount

        public void setDislikeCount​(long dislikeCount)
      • getUploaderName

        public java.lang.String getUploaderName()
      • setUploaderName

        public void setUploaderName​(java.lang.String uploaderName)
      • getUploaderUrl

        public java.lang.String getUploaderUrl()
      • setUploaderUrl

        public void setUploaderUrl​(java.lang.String uploaderUrl)
      • getUploaderAvatars

        @Nonnull
        public java.util.List<Image> getUploaderAvatars()
      • setUploaderAvatars

        public void setUploaderAvatars​(@Nonnull
                                       java.util.List<Image> uploaderAvatars)
      • isUploaderVerified

        public boolean isUploaderVerified()
      • setUploaderVerified

        public void setUploaderVerified​(boolean uploaderVerified)
      • getUploaderSubscriberCount

        public long getUploaderSubscriberCount()
      • setUploaderSubscriberCount

        public void setUploaderSubscriberCount​(long uploaderSubscriberCount)
      • getSubChannelName

        public java.lang.String getSubChannelName()
      • setSubChannelName

        public void setSubChannelName​(java.lang.String subChannelName)
      • getSubChannelUrl

        public java.lang.String getSubChannelUrl()
      • setSubChannelUrl

        public void setSubChannelUrl​(java.lang.String subChannelUrl)
      • getSubChannelAvatars

        @Nonnull
        public java.util.List<Image> getSubChannelAvatars()
      • setSubChannelAvatars

        public void setSubChannelAvatars​(@Nonnull
                                         java.util.List<Image> subChannelAvatars)
      • getVideoStreams

        public java.util.List<VideoStream> getVideoStreams()
      • setVideoStreams

        public void setVideoStreams​(java.util.List<VideoStream> videoStreams)
      • getAudioStreams

        public java.util.List<AudioStream> getAudioStreams()
      • setAudioStreams

        public void setAudioStreams​(java.util.List<AudioStream> audioStreams)
      • getVideoOnlyStreams

        public java.util.List<VideoStream> getVideoOnlyStreams()
      • setVideoOnlyStreams

        public void setVideoOnlyStreams​(java.util.List<VideoStream> videoOnlyStreams)
      • getDashMpdUrl

        public java.lang.String getDashMpdUrl()
      • setDashMpdUrl

        public void setDashMpdUrl​(java.lang.String dashMpdUrl)
      • getHlsUrl

        public java.lang.String getHlsUrl()
      • setHlsUrl

        public void setHlsUrl​(java.lang.String hlsUrl)
      • getRelatedItems

        public java.util.List<InfoItem> getRelatedItems()
      • setRelatedItems

        public void setRelatedItems​(java.util.List<InfoItem> relatedItems)
      • setRelatedStreams

        @Deprecated
        public void setRelatedStreams​(java.util.List<InfoItem> relatedItemsToSet)
        Deprecated.
      • getStartPosition

        public long getStartPosition()
      • setStartPosition

        public void setStartPosition​(long startPosition)
      • setSubtitles

        public void setSubtitles​(java.util.List<SubtitlesStream> subtitles)
      • getHost

        public java.lang.String getHost()
      • setHost

        public void setHost​(java.lang.String host)
      • getCategory

        public java.lang.String getCategory()
      • setCategory

        public void setCategory​(java.lang.String category)
      • getLicence

        public java.lang.String getLicence()
      • setLicence

        public void setLicence​(java.lang.String licence)
      • getLanguageInfo

        public java.util.Locale getLanguageInfo()
      • setLanguageInfo

        public void setLanguageInfo​(java.util.Locale locale)
      • getTags

        public java.util.List<java.lang.String> getTags()
      • setTags

        public void setTags​(java.util.List<java.lang.String> tags)
      • setSupportInfo

        public void setSupportInfo​(java.lang.String support)
      • getSupportInfo

        public java.lang.String getSupportInfo()
      • getStreamSegments

        public java.util.List<StreamSegment> getStreamSegments()
      • setStreamSegments

        public void setStreamSegments​(java.util.List<StreamSegment> streamSegments)
      • setMetaInfo

        public void setMetaInfo​(java.util.List<MetaInfo> metaInfo)
      • getPreviewFrames

        public java.util.List<Frameset> getPreviewFrames()
      • setPreviewFrames

        public void setPreviewFrames​(java.util.List<Frameset> previewFrames)
      • getMetaInfo

        @Nonnull
        public java.util.List<MetaInfo> getMetaInfo()
      • isShortFormContent

        public boolean isShortFormContent()
      • setShortFormContent

        public void setShortFormContent​(boolean isShortFormContent)