clone a video capturing DataSource
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   lakeman_lakeman
Posted On:   Monday, January 28, 2002 03:48 PM

Hi all, When i attampted to clone a DataSource for video capturing device (in order to transmitting video via network while doing self-monitoring), it doesn't seems to work. Please refer to the following code segment:- -------------------------------------- // For self-monitor DataSource ds = null; //original DataSource ds_cloneable = null; //cloneable DataSource ds_trans = null; //clone for transmitter DataSource ds_self = null; //clone for self-mon ......... try { ds = javax.media.Manager.createDataSource(new MediaLocator("vfw://0")) ds_cloneable = Manager.createCloneableDataSource(ds); } catch (Exception e) {}    More>>
			

Hi all,

When i attampted to clone a DataSource for video capturing device (in order to transmitting video via network while doing self-monitoring), it doesn't seems to work.

Please refer to the following code segment:-


--------------------------------------
// For self-monitor
DataSource ds = null; //original
DataSource ds_cloneable = null; //cloneable
DataSource ds_trans = null; //clone for transmitter
DataSource ds_self = null; //clone for self-mon

.........

try {
ds = javax.media.Manager.createDataSource(new MediaLocator("vfw://0"))
ds_cloneable = Manager.createCloneableDataSource(ds);
} catch (Exception e) {}

..........

ds_trans = ((SourceCloneable)ds_cloneable).createClone();

ds_self = ((SourceCloneable)ds_cloneable).createClone();

--------------------------------------


notice that, if i change the locator to be a movie file e.g. abc.mov, the code works pretty fine. And my video camera is working properly as well.

So is there anything wrong from the above code? Please help me out.

Thank in advance!!!


   <<Less
About | Sitemap | Contact