public class MediaCCCLiveStreamExtractor extends StreamExtractor
StreamExtractor.Privacy
NO_AGE_LIMIT, UNKNOWN_SUBSCRIBER_COUNT
Constructor and Description |
---|
MediaCCCLiveStreamExtractor(StreamingService service,
LinkHandler linkHandler) |
Modifier and Type | Method and Description |
---|---|
List<AudioStream> |
getAudioStreams()
This should return a list of available
AudioStream s. |
String |
getCategory()
The name of the category of the stream.
|
Description |
getDescription()
This is the stream description.
|
String |
getHlsUrl()
I am not sure if this is in use, and how this is used.
|
String |
getName()
Get the name
|
StreamType |
getStreamType()
Get the
StreamType . |
String |
getThumbnailUrl()
This will return the url to the thumbnail of the stream.
|
String |
getUploaderName()
The name of the creator/uploader of the stream.
|
String |
getUploaderUrl()
The Url to the page of the creator/uploader of the stream.
|
List<VideoStream> |
getVideoOnlyStreams()
This should return a list of available
VideoStream s. |
List<VideoStream> |
getVideoStreams()
This should return a list of available
VideoStream s. |
long |
getViewCount()
The count of how many people have watched the video/listened to the audio stream.
|
void |
onFetchPage(Downloader downloader)
Fetch the current page.
|
getAgeLimit, getDashMpdUrl, getDislikeCount, getErrorMessage, getFrames, getHost, getLanguageInfo, getLength, getLicence, getLikeCount, getMetaInfo, getPrivacy, getRelatedItems, getRelatedStreams, getStreamSegments, getSubChannelAvatarUrl, getSubChannelName, getSubChannelUrl, getSubtitles, getSubtitlesDefault, getSupportInfo, getTags, getTextualUploadDate, getTimeStamp, getTimestampSeconds, getUploadDate, getUploaderAvatarUrl, getUploaderSubscriberCount, isUploaderVerified
assertPageFetched, fetchPage, forceContentCountry, forceLocalization, getBaseUrl, getDownloader, getExtractorContentCountry, getExtractorLocalization, getId, getLinkHandler, getOriginalUrl, getService, getServiceId, getTimeAgoParser, getUrl, isPageFetched
public MediaCCCLiveStreamExtractor(StreamingService service, LinkHandler linkHandler)
public void onFetchPage(@Nonnull Downloader downloader) throws IOException, ExtractionException
Extractor
onFetchPage
in class Extractor
downloader
- the downloader to useIOException
- if the page can not be loadedExtractionException
- if the pages content is not understood@Nonnull public String getName() throws ParsingException
Extractor
getName
in class Extractor
ParsingException
- if the name cannot be extracted@Nonnull public String getThumbnailUrl() throws ParsingException
StreamExtractor
getThumbnailUrl
in class StreamExtractor
ParsingException
@Nonnull public Description getDescription() throws ParsingException
StreamExtractor
getDescription
in class StreamExtractor
Description.EMPTY_DESCRIPTION
if the
description is empty.ParsingException
public long getViewCount()
StreamExtractor
getViewCount
in class StreamExtractor
@Nonnull public String getUploaderUrl() throws ParsingException
StreamExtractor
ChannelExtractor
, so be sure to implement that one before you return a value here,
otherwise NewPipe will crash if one selects this url.getUploaderUrl
in class StreamExtractor
ParsingException
@Nonnull public String getUploaderName() throws ParsingException
StreamExtractor
getUploaderName
in class StreamExtractor
ParsingException
@Nonnull public String getHlsUrl()
StreamExtractor
getHlsUrl
in class StreamExtractor
public List<AudioStream> getAudioStreams() throws IOException, ExtractionException
StreamExtractor
AudioStream
s.
You can also return null or an empty list, however be aware that if you don't return anything
in getVideoStreams(), getVideoOnlyStreams() and getDashMpdUrl() either the Collector will
handle this as a failed extraction procedure.getAudioStreams
in class StreamExtractor
IOException
ExtractionException
public List<VideoStream> getVideoStreams() throws IOException, ExtractionException
StreamExtractor
VideoStream
s.
Be aware this is the list of video streams which do contain an audio stream.
You can also return null or an empty list, however be aware that if you don't return anything
in getAudioStreams(), getVideoOnlyStreams() and getDashMpdUrl() either the Collector will
handle this as a failed extraction procedure.getVideoStreams
in class StreamExtractor
IOException
ExtractionException
public List<VideoStream> getVideoOnlyStreams()
StreamExtractor
VideoStream
s.
Be aware this is the list of video streams which do NOT contain an audio stream.
You can also return null or an empty list, however be aware that if you don't return anything
in getAudioStreams(), getVideoStreams() and getDashMpdUrl() either the Collector will handle
this as a failed extraction procedure.getVideoOnlyStreams
in class StreamExtractor
public StreamType getStreamType() throws ParsingException
StreamExtractor
StreamType
.getStreamType
in class StreamExtractor
ParsingException
@Nonnull public String getCategory()
StreamExtractor
getCategory
in class StreamExtractor