Package com.igrium.videolib.api
Interface VideoPlayer
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DummyVideoPlayer
,VLCVideoPlayer
Loads and plays a video.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.Identifier
getId()
Get the identifier of this video player.net.minecraft.util.Identifier
Get the texture that this video player will write to.static net.minecraft.util.Identifier
getTextureId
(net.minecraft.util.Identifier id) Generate a texture identifier from a video player identifier.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getId
net.minecraft.util.Identifier getId()Get the identifier of this video player.- Returns:
- Video player ID.
-
getTexture
net.minecraft.util.Identifier getTexture()Get the texture that this video player will write to.- Returns:
- Texture ID.
-
getMediaInterface
MediaInterface getMediaInterface() -
getControlsInterface
ControlsInterface getControlsInterface() -
getCodecInterface
CodecInterface getCodecInterface() -
getEvents
VideoEvents getEvents() -
getTextureId
static net.minecraft.util.Identifier getTextureId(net.minecraft.util.Identifier id) Generate a texture identifier from a video player identifier. This is just an internal utility function. It's not guarenteed that any given video player will use this scheme. UsegetTexture()
instead.- Parameters:
id
- Video player ID.- Returns:
- Texture ID.
-