Package com.igrium.videolib.vlc
Class VLCVideoPlayer
java.lang.Object
com.igrium.videolib.vlc.VLCVideoPlayer
- All Implemented Interfaces:
VideoPlayer
,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected VLCVideoPlayer.VLCCodecInterface
protected VLCVideoPlayer.VLCControlsInterface
protected VLCEvents
protected final net.minecraft.util.Identifier
protected final VLCVideoManager
protected VLCVideoPlayer.VLCMediaInterface
protected uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer
protected OpenGLVideoSurface
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VLCVideoPlayer
(net.minecraft.util.Identifier id, VLCVideoManager manager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
final net.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.protected void
init()
protected void
registerTexture
(net.minecraft.util.Identifier texId)
-
Field Details
-
id
protected final net.minecraft.util.Identifier id -
manager
-
mediaPlayer
protected uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer mediaPlayer -
surface
-
mediaInterface
-
controlsInterface
-
codecInterface
-
events
-
-
Constructor Details
-
VLCVideoPlayer
-
-
Method Details
-
init
protected void init() -
getId
public final net.minecraft.util.Identifier getId()Description copied from interface:VideoPlayer
Get the identifier of this video player.- Specified by:
getId
in interfaceVideoPlayer
- Returns:
- Video player ID.
-
getTexture
public net.minecraft.util.Identifier getTexture()Description copied from interface:VideoPlayer
Get the texture that this video player will write to.- Specified by:
getTexture
in interfaceVideoPlayer
- Returns:
- Texture ID.
-
registerTexture
protected void registerTexture(net.minecraft.util.Identifier texId) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getMediaInterface
- Specified by:
getMediaInterface
in interfaceVideoPlayer
-
getControlsInterface
- Specified by:
getControlsInterface
in interfaceVideoPlayer
-
getCodecInterface
- Specified by:
getCodecInterface
in interfaceVideoPlayer
-
getEvents
- Specified by:
getEvents
in interfaceVideoPlayer
-