|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel chrriis.dj.nativeswing.swtimpl.NSPanelComponent chrriis.dj.nativeswing.swtimpl.components.JVLCPlayer
public class JVLCPlayer
A native multimedia player. It is a browser-based component, which relies on the VLC plugin.
Methods execute when this component is initialized. If the component is not initialized, methods will be executed as soon as it gets initialized.
If the initialization fails, the methods will not have any effect. The results from methods have relevant values only when the component is valid.
Nested Class Summary | |
---|---|
static interface |
JVLCPlayer.VLCPlayerDecoratorFactory
A factory that creates the decorators for VLC players. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JVLCPlayer(NSOption... options)
Construct a VLC player. |
Method Summary | |
---|---|
protected VLCPlayerDecorator |
createVLCPlayerDecorator(Component renderingComponent)
Create a decorator for this vlc player. |
void |
disposeNativePeer()
Explicitely dispose the native resources. |
protected void |
finalize()
|
VLCAudio |
getVLCAudio()
Get the VLC object responsible for audio-related actions. |
VLCInput |
getVLCInput()
Get the VLC object responsible for input-related actions. |
VLCPlaylist |
getVLCPlaylist()
Get the VLC object responsible for playlist-related actions. |
VLCVideo |
getVLCVideo()
Get the VLC object responsible for video-related actions. |
JWebBrowser |
getWebBrowser()
Get the web browser that contains this component. |
boolean |
isControlBarVisible()
Indicate whether the control bar is visible. |
void |
load()
Load the player, with no content. |
void |
load(Class<?> clazz,
String resourcePath)
Load a file from the classpath. |
void |
load(Class<?> clazz,
String resourcePath,
VLCPluginOptions options)
Load a file from the classpath. |
void |
load(String resourceLocation)
Load a file. |
void |
load(String resourceLocation,
VLCPluginOptions options)
Load a file. |
void |
load(VLCPluginOptions options)
Load the player, with no content. |
void |
removeNotify()
|
void |
setControlBarVisible(boolean isControlBarVisible)
Set whether the control bar is visible. |
static void |
setVLCPlayerDecoratorFactory(JVLCPlayer.VLCPlayerDecoratorFactory vlcPlayerDecoratorFactory)
Set the decorator that will be used for future vlc player instances. |
Methods inherited from class chrriis.dj.nativeswing.swtimpl.NSPanelComponent |
---|
constrainVisibility, destroyOnFinalization, getNativeComponent, initialize, initializeNativePeer, isNativePeerDisposed, isNativePeerInitialized, isNativePeerValid, proxyComponentHierarchy, runInSequence |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JVLCPlayer(NSOption... options)
options
- the options to configure the behavior of this component.Method Detail |
---|
public static void setVLCPlayerDecoratorFactory(JVLCPlayer.VLCPlayerDecoratorFactory vlcPlayerDecoratorFactory)
vlcPlayerDecoratorFactory
- the factory that creates the decorators, or null for default decorators.protected VLCPlayerDecorator createVLCPlayerDecorator(Component renderingComponent)
renderingComponent
- the component to add to the decorator's component hierarchy.
public void removeNotify()
removeNotify
in class JComponent
public JWebBrowser getWebBrowser()
public void load()
public void load(String resourceLocation)
resourceLocation
- the path or URL to the file.public void load(VLCPluginOptions options)
options
- the options to better configure the initialization of the VLC plugin.public void load(Class<?> clazz, String resourcePath)
clazz
- the reference clazz of the file to load.resourcePath
- the path to the file.public void load(Class<?> clazz, String resourcePath, VLCPluginOptions options)
clazz
- the reference clazz of the file to load.resourcePath
- the path to the file.options
- the options to better configure the initialization of the VLC plugin.public void load(String resourceLocation, VLCPluginOptions options)
resourceLocation
- the path or URL to the file.options
- the options to better configure the initialization of the VLC plugin.public boolean isControlBarVisible()
public void setControlBarVisible(boolean isControlBarVisible)
isControlBarVisible
- true if the control bar should be visible, false otherwise.public VLCAudio getVLCAudio()
public VLCInput getVLCInput()
public VLCPlaylist getVLCPlaylist()
public VLCVideo getVLCVideo()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void disposeNativePeer()
NSComponent
disposeNativePeer
in interface NSComponent
disposeNativePeer
in class NSPanelComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |