uk.co.caprica.vlcj.player.direct
Class DirectMediaPlayer

java.lang.Object
  extended by uk.co.caprica.vlcj.player.MediaPlayer
      extended by uk.co.caprica.vlcj.player.direct.DirectMediaPlayer

public class DirectMediaPlayer
extends MediaPlayer

Media player implementation that provides direct access to the video frame data.


Field Summary
 
Fields inherited from class uk.co.caprica.vlcj.player.MediaPlayer
libvlc
 
Constructor Summary
DirectMediaPlayer(libvlc_instance_t instance, int width, int height, RenderCallback renderCallback)
          Create a new media player.
 
Method Summary
 int height()
          Get the buffer height.
 int width()
          Get the buffer width.
 
Methods inherited from class uk.co.caprica.vlcj.player.MediaPlayer
addMediaPlayerEventListener, canPause, enableLogo, enableMarquee, getAspectRatio, getAudioDelay, getAudioDescriptions, getAudioTrack, getAudioTrackCount, getBrightness, getChapter, getChapterCount, getChapterDescriptions, getContrast, getCropGeometry, getFps, getGamma, getHue, getLength, getMediaPlayerState, getMediaState, getMediaStatistics, getPosition, getRate, getSaturation, getScale, getSnapshot, getSpu, getSpuCount, getSpuDescriptions, getTime, getTitle, getTitleCount, getTitleDescriptions, getVideoDescriptions, getVideoDimension, getVideoOutputs, getVideoTrack, getVideoTrackCount, getVolume, isAdjustVideo, isMute, isPlayable, isPlaying, isSeekable, mediaPlayerInstance, menuActivate, menuDown, menuLeft, menuRight, menuUp, mute, mute, nextChapter, nextFrame, onAfterRelease, onBeforePlay, pause, play, playMedia, playMedia, prepareMedia, prepareMedia, previousChapter, release, removeMediaPlayerEventListener, saveSnapshot, saveSnapshot, selectAudioOutput, setAdjustVideo, setAspectRatio, setAudioDelay, setAudioTrack, setBrightness, setChapter, setContrast, setCropGeometry, setDeinterlace, setEnableKeyInputHandling, setEnableMouseInputHandling, setGamma, setHue, setLogoFile, setLogoLocation, setLogoOpacity, setLogoOpacity, setLogoPosition, setMarqueeColour, setMarqueeColour, setMarqueeLocation, setMarqueeOpacity, setMarqueeOpacity, setMarqueeSize, setMarqueeText, setMarqueeTimeout, setPause, setPosition, setRate, setSaturation, setScale, setSpu, setStandardMediaOptions, setTime, setTitle, setVideoTrack, setVolume, skip, skip, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectMediaPlayer

public DirectMediaPlayer(libvlc_instance_t instance,
                         int width,
                         int height,
                         RenderCallback renderCallback)
Create a new media player.

Parameters:
instance - libvlc instance
width - width for the video
height - height for the video
renderCallback - call-back to receive the video frame data
Method Detail

width

public int width()
Get the buffer width.

Returns:
width

height

public int height()
Get the buffer height.

Returns:
height

(C)2010 Caprica Software Limited