Class PeertubeStreamLinkHandlerFactory
- java.lang.Object
-
- org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
-
- org.schabi.newpipe.extractor.services.peertube.linkHandler.PeertubeStreamLinkHandlerFactory
-
public final class PeertubeStreamLinkHandlerFactory extends LinkHandlerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
VIDEO_API_ENDPOINT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId(java.lang.String url)
static PeertubeStreamLinkHandlerFactory
getInstance()
java.lang.String
getUrl(java.lang.String id)
java.lang.String
getUrl(java.lang.String id, java.lang.String baseUrl)
boolean
onAcceptUrl(java.lang.String url)
-
-
-
Field Detail
-
VIDEO_API_ENDPOINT
public static final java.lang.String VIDEO_API_ENDPOINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static PeertubeStreamLinkHandlerFactory getInstance()
-
getUrl
public java.lang.String getUrl(java.lang.String id) throws ParsingException, java.lang.UnsupportedOperationException
- Specified by:
getUrl
in classLinkHandlerFactory
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
getUrl
public java.lang.String getUrl(java.lang.String id, java.lang.String baseUrl)
- Overrides:
getUrl
in classLinkHandlerFactory
-
getId
public java.lang.String getId(java.lang.String url) throws ParsingException, java.lang.UnsupportedOperationException
- Specified by:
getId
in classLinkHandlerFactory
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
onAcceptUrl
public boolean onAcceptUrl(java.lang.String url) throws FoundAdException
- Specified by:
onAcceptUrl
in classLinkHandlerFactory
- Throws:
FoundAdException
-
-