Package com.igrium.videolib.api
Interface VideoHandleFactory
- All Known Implementing Classes:
DummyVideoManager.DummyVideoHandleFactory
,VLCVideoManager.VLCVideoHandleFactory
public interface VideoHandleFactory
Creates or loads video handles that are compatible with a given video manager.
-
Method Summary
Modifier and TypeMethodDescriptiondefault VideoHandle
getVideoHandle
(String url) Get a video from a URL in string form.getVideoHandle
(URL url) Get a video handle from a URL.getVideoHandle
(net.minecraft.util.Identifier id) Get a video handle from an identifier.
-
Method Details
-
getVideoHandle
Get a video handle from an identifier.- Parameters:
id
- The identifier.- Returns:
- The handle, or
null
if no video by this ID exists.
-
getVideoHandle
Get a video handle from a URL.- Parameters:
url
- The URL.- Returns:
- The handle.
-
getVideoHandle
Get a video from a URL in string form.- Parameters:
url
- The URL.- Returns:
- The handle.
- Throws:
MalformedURLException
- If URL is improperly formatted.
-