video
Class DataSource

java.lang.Object
  extended by javax.media.protocol.DataSource
      extended by javax.media.protocol.PushBufferDataSource
          extended by video.DataSource
All Implemented Interfaces:
javax.media.Controls, javax.media.Duration

public class DataSource
extends javax.media.protocol.PushBufferDataSource

This DataSource captures live frames from the screen. You can specify the location, size and frame rate in the URL string as follows: screen://x,y,width,height/framespersecond Eg: screen://20,40,160,120/12.5 Note: Requires JDK 1.3+ to compile and run


Field Summary
 
Fields inherited from interface javax.media.Duration
DURATION_UNBOUNDED, DURATION_UNKNOWN
 
Constructor Summary
DataSource()
           
 
Method Summary
 void connect()
           
 void disconnect()
           
 java.lang.String getContentType()
           
 java.lang.Object getControl(java.lang.String controlType)
           
 java.lang.Object[] getControls()
           
 javax.media.Time getDuration()
           
 javax.media.protocol.PushBufferStream[] getStreams()
           
 void start()
           
 void stop()
           
 
Methods inherited from class javax.media.protocol.DataSource
getLocator, setLocator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource()
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class javax.media.protocol.DataSource

connect

public void connect()
             throws java.io.IOException
Specified by:
connect in class javax.media.protocol.DataSource
Throws:
java.io.IOException

disconnect

public void disconnect()
Specified by:
disconnect in class javax.media.protocol.DataSource

start

public void start()
           throws java.io.IOException
Specified by:
start in class javax.media.protocol.DataSource
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
Specified by:
stop in class javax.media.protocol.DataSource
Throws:
java.io.IOException

getControls

public java.lang.Object[] getControls()
Specified by:
getControls in interface javax.media.Controls
Specified by:
getControls in class javax.media.protocol.DataSource

getControl

public java.lang.Object getControl(java.lang.String controlType)
Specified by:
getControl in interface javax.media.Controls
Specified by:
getControl in class javax.media.protocol.DataSource

getDuration

public javax.media.Time getDuration()
Specified by:
getDuration in interface javax.media.Duration
Specified by:
getDuration in class javax.media.protocol.DataSource

getStreams

public javax.media.protocol.PushBufferStream[] getStreams()
Specified by:
getStreams in class javax.media.protocol.PushBufferDataSource