|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapwidgets.APWidget
apwidgets.APVideoView
public class APVideoView
Constructor Summary | |
---|---|
APVideoView()
Creates a new video view that fills the screen and has a media controller |
|
APVideoView(boolean hasMediaController)
Creates a new video view that fills the screen |
|
APVideoView(int x,
int y,
int width,
int height,
boolean hasMediaController)
Creates a new video view |
Method Summary | |
---|---|
int |
getCurrentPosition()
Returns the current position. |
int |
getDuration()
Returns the duration of the video |
java.lang.String |
getVideoPath()
Get the path of the video file |
void |
init(processing.core.PApplet pApplet)
Initializes the video view. |
void |
onCompletion(android.media.MediaPlayer mediaPlayer)
|
boolean |
onError(android.media.MediaPlayer mediaPlayer,
int a,
int b)
|
void |
onPrepared(android.media.MediaPlayer mp)
|
void |
pause()
Pauses the playing of the video file |
void |
seekTo(int msec)
Move to a certain point in the file, counted from the beginning in millisecond. |
void |
setLooping(boolean looping)
Makes the video start from the beginning when the end of the video has been reached |
void |
setVideoPath(java.lang.String videoPath)
Sets the path of the video file. |
void |
start()
Starts playing the video file |
void |
stopPlayBack()
Stops the playback I guess. |
Methods inherited from class apwidgets.APWidget |
---|
addOnClickWidgetListener, getHeight, getPApplet, getWidth, getView, getX, getY, onClick, setPosition, setSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public APVideoView()
public APVideoView(boolean hasMediaController)
hasMediaController
- Specifies whether the video view should have a media controller or notpublic APVideoView(int x, int y, int width, int height, boolean hasMediaController)
x
- The x-position of the video viewy
- The y-position of the video viewwidth
- The width of the video viewheight
- The height of the video viewhasMediaController
- Specifies whether the video view should have a media controller or notMethod Detail |
---|
public void setLooping(boolean looping)
looping
- public void setVideoPath(java.lang.String videoPath)
videoPath
- The path of the video filepublic void start()
public void stopPlayBack()
public void pause()
public void seekTo(int msec)
msec
- public void init(processing.core.PApplet pApplet)
APWidgetContainer
as it is added to it.
init
in class APWidget
public java.lang.String getVideoPath()
public int getDuration()
public int getCurrentPosition()
public void onCompletion(android.media.MediaPlayer mediaPlayer)
onCompletion
in interface android.media.MediaPlayer.OnCompletionListener
public boolean onError(android.media.MediaPlayer mediaPlayer, int a, int b)
onError
in interface android.media.MediaPlayer.OnErrorListener
public void onPrepared(android.media.MediaPlayer mp)
onPrepared
in interface android.media.MediaPlayer.OnPreparedListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |