java.lang.Object
uk.co.caprica.vlcj.player.renderer.RendererItem
Encapsulation of a renderer item.
-
Constructor Summary
ConstructorsConstructorDescriptionRendererItem(uk.co.caprica.vlcj.binding.internal.libvlc_renderer_item_t item) Create a new renderer item. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAudio()Can this renderer item play audio?booleancanVideo()Can this renderer item play video?booleanhold()Hold this renderer item.iconUri()Get the item icon URI.name()Get the item name.voidrelease()Release the renderer item.uk.co.caprica.vlcj.binding.internal.libvlc_renderer_item_tGet the native renderer item instance.toString()type()Get the item type.
-
Constructor Details
-
RendererItem
public RendererItem(uk.co.caprica.vlcj.binding.internal.libvlc_renderer_item_t item) Create a new renderer item.- Parameters:
item- native renderer item instance
-
-
Method Details
-
name
Get the item name.- Returns:
- name
-
type
Get the item type.- Returns:
- type
-
iconUri
Get the item icon URI.- Returns:
- icon URI
-
canAudio
public boolean canAudio()Can this renderer item play audio?- Returns:
trueif this item can play audio;falseif it can not
-
canVideo
public boolean canVideo()Can this renderer item play video?- Returns:
trueif this item can play video;falseif it can not
-
hold
public boolean hold()Hold this renderer item.The item must be held prior to setting it via a call to
MediaPlayer.setRenderer(RendererItem)onMediaPlayer.The item must be released when the caller no longer has any use for it.
- Returns:
trueif the renderer item was successfully held;falseon error
-
release
public void release()Release the renderer item.The renderer item may still be kept and re-used, invoke
hold()again. -
rendererItemInstance
public uk.co.caprica.vlcj.binding.internal.libvlc_renderer_item_t rendererItemInstance()Get the native renderer item instance.- Returns:
- renderer item instance
-
toString
-