Methods Summary |
---|
public void | connect()Opens a connection to the source described by
the URL.
Connect initiates communmication with the source.
connected = true;
|
public void | disconnect()Close the connection to the source described by the URL.
Disconnect frees resources used to maintain a connection
to the source. If no resources are in use, disconnect
is ignored.
Implies a stop, if stop hasn't already been called.
connected = false;
|
public java.lang.String | getContentType()
return "rtsp";
|
public java.lang.Object | getControl(java.lang.String controlName)Returns null because no controls are implemented.
return null;
|
public java.lang.Object[] | getControls()Returns an zero length array because no controls
are supported.
return null;
|
public javax.media.Player | getPlayer()
return streamplayer;
|
public javax.media.protocol.PushBufferStream[] | getStreams()Obtain the collection of streams that this source
manages. The collection of streams is entirely
content dependent. The mime-type of this
DataSource provides the only indication of
what streams can be available on this connection.
if (!connected)
return null;
return srcStreams;
|
public boolean | isStarted()
return started;
|
public void | setControl(java.lang.Object control)
|
public void | setLocator(javax.media.MediaLocator mrl)
super.setLocator(mrl);
|
public void | setPlayer(javax.media.Player player)
streamplayer = player;
|
public void | setSourceStream(javax.media.protocol.PushBufferStream stream)
if (srcStreams != null)
srcStreams[0] = stream;
|
public void | start()Initiates data-transfer. Start must be called before
data is available. Connect must be called before start.
super.start();
|
public void | stop()Stops data-transfer.
If the source has not already been connected and started,
stop does nothing.
super.stop();
|