org.videolan.jvlc
Class Video

java.lang.Object
  extended by org.videolan.jvlc.Video
All Implemented Interfaces:
VideoIntf

public final class Video
extends java.lang.Object
implements VideoIntf


Constructor Summary
Video(long libvlcInstance)
           
 
Method Summary
 void destroyVideo()
          Destroys video output, but the item continues to play.
 boolean getFullscreen()
           
 int getHeight()
           
 long getInstance()
           
 java.awt.Dimension getSize()
          Get the size of the video output window as a Dimension object.
 void getSnapshot(java.lang.String filepath)
          Saves a snapshot of the current video window.
 int getWidth()
           
 void reparent(java.awt.Component c)
          Moves video output from the current Canvas to another.
 void setFullscreen(boolean fullscreen)
          Sets fullscreen if fullscreen argument is true.
 void setSize(java.awt.Dimension d)
          Resizes video output to width and height.
 void setSize(int width, int height)
          Resizes video output to width and height.
 void toggleFullscreen()
          Toggles the fullscreen.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Video

public Video(long libvlcInstance)
Method Detail

destroyVideo

public void destroyVideo()
                  throws VLCException
Description copied from interface: VideoIntf
Destroys video output, but the item continues to play.

Specified by:
destroyVideo in interface VideoIntf
Throws:
VLCException

getFullscreen

public boolean getFullscreen()
                      throws VLCException
Specified by:
getFullscreen in interface VideoIntf
Returns:
True if the current video window is in fullscreen mode.
Throws:
VLCException

getSnapshot

public void getSnapshot(java.lang.String filepath)
                 throws VLCException
Description copied from interface: VideoIntf
Saves a snapshot of the current video window.

Specified by:
getSnapshot in interface VideoIntf
Parameters:
filepath - The full path (including filename) were to save the snapshot to. If you only give a path, not including the filename, the snapshot will be saved in the specified path using vlc naming conventions.
Throws:
VLCException

getHeight

public int getHeight()
              throws VLCException
Specified by:
getHeight in interface VideoIntf
Returns:
The current video window height
Throws:
VLCException

getWidth

public int getWidth()
             throws VLCException
Specified by:
getWidth in interface VideoIntf
Returns:
The current video window width
Throws:
VLCException

reparent

public void reparent(java.awt.Component c)
              throws VLCException
Description copied from interface: VideoIntf
Moves video output from the current Canvas to another. This funtion doens't resize the video output to the new canvas size. See resizeVideo().

Specified by:
reparent in interface VideoIntf
Throws:
VLCException

setSize

public void setSize(int width,
                    int height)
             throws VLCException
Description copied from interface: VideoIntf
Resizes video output to width and height. This operation could be necessary after reparenting. See reparentVideo().

Specified by:
setSize in interface VideoIntf
Parameters:
width - The new video output width
height - The new video output height
Throws:
VLCException

setFullscreen

public void setFullscreen(boolean fullscreen)
                   throws VLCException
Description copied from interface: VideoIntf
Sets fullscreen if fullscreen argument is true.

Specified by:
setFullscreen in interface VideoIntf
Throws:
VLCException

toggleFullscreen

public void toggleFullscreen()
                      throws VLCException
Description copied from interface: VideoIntf
Toggles the fullscreen.

Specified by:
toggleFullscreen in interface VideoIntf
Throws:
VLCException

getSize

public java.awt.Dimension getSize()
                           throws VLCException
Description copied from interface: VideoIntf
Get the size of the video output window as a Dimension object.

Specified by:
getSize in interface VideoIntf
Returns:
The video size in a Dimension object.
Throws:
VLCException

setSize

public void setSize(java.awt.Dimension d)
             throws VLCException
Description copied from interface: VideoIntf
Resizes video output to width and height. This operation could be necessary after reparenting. See reparentVideo().

Specified by:
setSize in interface VideoIntf
Parameters:
d - The new size of video
Throws:
VLCException

getInstance

public long getInstance()