Interface StreamInfoItemExtractor
- 
- All Superinterfaces:
- InfoItemExtractor
 - All Known Implementing Classes:
- BandcampDiscographStreamInfoItemExtractor,- BandcampPlaylistStreamInfoItemExtractor,- BandcampRadioInfoItemExtractor,- BandcampSearchStreamInfoItemExtractor,- BandcampStreamInfoItemExtractor,- MediaCCCLiveStreamKioskExtractor,- MediaCCCRecentKioskExtractor,- MediaCCCStreamInfoItemExtractor,- PeertubeSepiaStreamInfoItemExtractor,- PeertubeStreamInfoItemExtractor,- SoundcloudLikesInfoItemExtractor,- SoundcloudStreamInfoItemExtractor,- YoutubeFeedInfoItemExtractor,- YoutubeMusicSongOrVideoInfoItemExtractor,- YoutubeReelInfoItemExtractor,- YoutubeStreamInfoItemExtractor,- YoutubeStreamInfoItemLockupExtractor
 
 public interface StreamInfoItemExtractor extends InfoItemExtractor 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longgetDuration()Get the stream duration in secondsdefault java.lang.StringgetShortDescription()Get the video's short description.StreamTypegetStreamType()Get the stream typejava.lang.StringgetTextualUploadDate()The original textual date provided by the service.DateWrappergetUploadDate()Extracts the upload date and time of this item and parses it.default java.util.List<Image>getUploaderAvatars()Get the uploader avatars.java.lang.StringgetUploaderName()Get the uploader namejava.lang.StringgetUploaderUrl()longgetViewCount()Parses the number of views (or of current viewers in case of live streams)booleanisAd()Check if the stream is an ad.default booleanisShortFormContent()Whether the stream is a short-form content.booleanisUploaderVerified()Whether the uploader has been verified by the service's provider.- 
Methods inherited from interface org.schabi.newpipe.extractor.InfoItemExtractorgetName, getThumbnails, getUrl
 
- 
 
- 
- 
- 
Method Detail- 
getStreamTypeStreamType getStreamType() throws ParsingException Get the stream type- Returns:
- the stream type
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
isAdboolean isAd() throws ParsingExceptionCheck if the stream is an ad.- Returns:
- trueif the stream is an ad.
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
getDurationlong getDuration() throws ParsingExceptionGet the stream duration in seconds- Returns:
- the stream duration in seconds or -1 if no duration is available
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
getViewCountlong getViewCount() throws ParsingExceptionParses the number of views (or of current viewers in case of live streams)- Returns:
- the number of views (or of current viewers in case of live streams) or -1 if not available
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
getUploaderNamejava.lang.String getUploaderName() throws ParsingExceptionGet the uploader name- Returns:
- the uploader name
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
getUploaderUrljava.lang.String getUploaderUrl() throws ParsingException- Throws:
- ParsingException
 
 - 
getUploaderAvatars@Nonnull default java.util.List<Image> getUploaderAvatars() throws ParsingException Get the uploader avatars.- Returns:
- the uploader avatars or an empty list if not provided by the service
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
isUploaderVerifiedboolean isUploaderVerified() throws ParsingExceptionWhether the uploader has been verified by the service's provider. If there is no verification implemented, returnfalse.- Returns:
- whether the uploader has been verified by the service's provider
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
getTextualUploadDate@Nullable java.lang.String getTextualUploadDate() throws ParsingExceptionThe original textual date provided by the service. Should be used as a fallback ifgetUploadDate()isn't provided by the service, or it fails for some reason.- Returns:
- The original textual date provided by the service or nullif not provided.
- Throws:
- ParsingException- if there is an error in the extraction
- See Also:
- getUploadDate()
 
 - 
getUploadDate@Nullable DateWrapper getUploadDate() throws ParsingException Extracts the upload date and time of this item and parses it.If the service doesn't provide an exact time, an approximation can be returned. 
 If the service doesn't provide any date at all, thennullshould be returned.- Returns:
- The date and time (can be approximated) this item was uploaded or null.
- Throws:
- ParsingException- if there is an error in the extraction or the extracted date couldn't be parsed
- See Also:
- getTextualUploadDate()
 
 - 
getShortDescription@Nullable default java.lang.String getShortDescription() throws ParsingExceptionGet the video's short description.- Returns:
- The video's short description or nullif not provided by the service.
- Throws:
- ParsingException- if there is an error in the extraction
 
 - 
isShortFormContentdefault boolean isShortFormContent() throws ParsingExceptionWhether the stream is a short-form content.Short-form contents are contents in the style of TikTok, YouTube Shorts, or Instagram Reels videos. - Returns:
- whether the stream is a short-form content
- Throws:
- ParsingException- if there is an error in the extraction
 
 
- 
 
-