org.videolan.jvlc
Interface VideoIntf

All Known Subinterfaces:
JLibVLC
All Known Implementing Classes:
Video

public interface VideoIntf


Method Summary
 void destroyVideo()
          Destroys video output, but the item continues to play.
 boolean getFullscreen()
           
 int getHeight()
           
 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.
 

Method Detail

toggleFullscreen

void toggleFullscreen()
                      throws VLCException
Toggles the fullscreen.

Throws:
VLCException

setFullscreen

void setFullscreen(boolean fullscreen)
                   throws VLCException
Sets fullscreen if fullscreen argument is true.

Parameters:
fullscreen -
Throws:
VLCException

getFullscreen

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

getSnapshot

void getSnapshot(java.lang.String filepath)
                 throws VLCException
Saves a snapshot of the current video window.

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

int getHeight()
              throws VLCException
Returns:
The current video window height
Throws:
VLCException

getWidth

int getWidth()
             throws VLCException
Returns:
The current video window width
Throws:
VLCException

getSize

java.awt.Dimension getSize()
                           throws VLCException
Get the size of the video output window as a Dimension object.

Returns:
The video size in a Dimension object.
Throws:
VLCException

destroyVideo

void destroyVideo()
                  throws VLCException
Destroys video output, but the item continues to play.

Throws:
VLCException

reparent

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

Parameters:
c -
Throws:
VLCException

setSize

void setSize(int width,
             int height)
             throws VLCException
Resizes video output to width and height. This operation could be necessary after reparenting. See reparentVideo().

Parameters:
width - The new video output width
height - The new video output height
Throws:
VLCException

setSize

void setSize(java.awt.Dimension d)
             throws VLCException
Resizes video output to width and height. This operation could be necessary after reparenting. See reparentVideo().

Parameters:
d - The new size of video
Throws:
VLCException