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
-
Method Summary
Modifier and TypeMethodDescriptiondefault ContentAvailabilityGet the availability of the stream.longGet the stream duration in secondsdefault StringGet the video's short description.Get the stream typeThe original textual date provided by the service.Extracts the upload date and time of this item and parses it.Get the uploader avatars.Get the uploader namelongParses the number of views (or of current viewers in case of live streams)booleanisAd()Check if the stream is an ad.default booleanWhether the stream is a short-form content.booleanWhether the uploader has been verified by the service's provider.Methods inherited from interface org.schabi.newpipe.extractor.InfoItemExtractor
getName, getThumbnails, getUrl
-
Method Details
-
getStreamType
Get the stream type- Returns:
- the stream type
- Throws:
ParsingException- if there is an error in the extraction
-
isAd
Check if the stream is an ad.- Returns:
trueif the stream is an ad.- Throws:
ParsingException- if there is an error in the extraction
-
getDuration
Get 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
-
getViewCount
Parses 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
-
getUploaderName
Get the uploader name- Returns:
- the uploader name
- Throws:
ParsingException- if there is an error in the extraction
-
getUploaderUrl
- Throws:
ParsingException
-
getUploaderAvatars
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
-
isUploaderVerified
Whether 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
The 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
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:
-
getShortDescription
Get 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
-
isShortFormContent
Whether 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
-
getContentAvailability
Get the availability of the stream.The availability may not reflect the actual availability when requesting the stream.
- Returns:
- The stream's availability
- Throws:
ParsingException- if there is an error in the extraction
-