|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.video.VideoSource
public class VideoSource
Used to define the source of video. Starts a thread to close the stream, connection etc. of a video
| Field Summary | |
|---|---|
static VideoSource |
CAPTURE
|
| Constructor Summary | |
|---|---|
VideoSource(String id,
InputStream stream,
Connection connection,
String mime)
Construct a VideoSource with a stream, a connection a mimetype and a callback |
|
VideoSource(String id,
InputStream stream,
String mime)
Construct a VideoSource with a stream, a mimetype and a callback |
|
VideoSource(String id,
String file,
String mime)
Constructs a VideoSource with only a url and a callback, used for devices supporting progressive download |
|
| Method Summary | |
|---|---|
protected void |
close()
Closes the specified source |
protected Connection |
getConnection()
Returns the connection |
protected String |
getFile()
Returns the file url |
protected FramePositioningControl |
getFramePositioningControl()
Returns the frame control |
protected String |
getId()
Returns the id |
protected String |
getMime()
Returns the mimetype |
protected Player |
getPlayer()
Returns the player |
protected InputStream |
getStream()
Returns the stream |
protected VideoControl |
getVideoControl()
Returns the video control |
protected VolumeControl |
getVolumeControl()
Returns the volume control |
protected void |
open()
Opens the specified source |
protected void |
setParent(VideoContainer parent)
Sets the VideoContainer parent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static VideoSource CAPTURE
| Constructor Detail |
|---|
public VideoSource(String id,
String file,
String mime)
id - the idfile - the url of the video file
public VideoSource(String id,
InputStream stream,
String mime)
id - the idstream - the streammime - the mimetype
public VideoSource(String id,
InputStream stream,
Connection connection,
String mime)
id - the idstream - the streamconnection - the connectionmime - the mimetype| Method Detail |
|---|
protected void setParent(VideoContainer parent)
parent - the VideoContainer parent
protected void open()
throws Exception
Exception - if an error occurs (obviously)protected void close()
protected String getId()
protected String getFile()
protected InputStream getStream()
protected Connection getConnection()
protected String getMime()
protected Player getPlayer()
protected VideoControl getVideoControl()
protected FramePositioningControl getFramePositioningControl()
protected VolumeControl getVolumeControl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||