Use a capture device twice at the same time?

I have write a application using JMF. But I have a big question that how can I use a capture device several times at the same time????
For example:
I create a player to play video from my webcam on my PC ,and then I want to send the video stream from my webcam to another PC at the same time. But I failed--only one task can work.
For example:
1, I write a class Player and another class RTPTransmit. Then I send the same medialocator to two of them. Then there will be a exception said that capture device is in use. And only one task can work.
2, I write a class Player and another class RTPTransmit. Then I use :
dataSource1 = Manager.createDataSource( locator );
dataSource2 = Manager.createCloneableDataSource( dataSource1 );
then I send dataSource1 to Player object to play video on local PC and send dataSource2 to RTPTransmit to send video to another PC. But only one task will work too.
My question is that how can I use a capture device several times at the same time???
I have tried several ways and sill can not find a method. If anyone know how to do,could you tell me please? Thank you very much.

Yes ,I use Manager.createCloneableDataSource() method to create the clone of the datasource ,but it can not work too. The java doc illustration is :
Creates a cloneable DataSource. The returned DataSource implements the SourceCloneable interface and enables the creation of clones by the createClone method.
If the input DataSource implements SourceCloneable, it will be returned right away as the result. Otherwise, a "proxy" DataSource is created. It implements the SourceCloneable interface and can be used to generate other clones.
When createCloneableDataSource is called on a DataSource, the returned DataSource should be used in place of the original DataSource. Any attempt to use the original DataSource may generate unpredictable results.
It means that if I clone a datasoure from original datasource, then the createCloneableDataSource() method will return a datasuouce implements interface SourceCloneable, right ? I see that the intereface SourceCloneable has a abstract method createClone() , but when I use createCloneableDataSource() to get a source clone, I find that I can not use method createClone(), why??? For example: data1 is the
orginal datasource. Then:
DataSource data1 = Manager.createDateSource( locator );
DataSource data2 = Manager.createCloneableDataSource( data1 );
now data2 is the "proxy" datasource which implemnets the interface, right? But I can not use data2.cloneClone() ,why? Then I write the fllowing code:
DataSource data3 = Mangaer.createCloneableDataSource( data2 );
DataSource data4 = Manager.createCloneableDataSource( data2 );
playOnLocalPc = new PlayOnLocalPc( data3 );
playOnLocalPc.start();
rtpTransmit = new RTPTransmit( data4 );
rtpTransmit.start();
PlayOnLocalPc and RTPTransmit is my own class to play or transmit video stream. But they can not work at the same time. If I play video from webcam on local PC and then start to transmit stream to other PC , the play window will become black. Why?????It is too strange. Dose anyone know the reason ,please tell me, thank you very much. Giving some example code will be better:) Thank you again!

Similar Messages

  • Prevent Jobs Running Twice at the same time

    Hi all, I would like to know if they are any ways to prevent a release job to run twice at the same time. For exemple, if  I create a job to run every 5 minutes and the job did not finish after 5 minutes, the scheduler will start the same job agains.  This situation causing us bad issues.
    I double check the job start conditions in sm37 but I found nothing special.
    Thanks for help

    Hi Marc,
    We use a workaround. We have asked our abap developpers to write a small utility report which checks if the job it is part of is already running and aborts the job if it is the case.
    When we need a job which must absolutely run only once at the same time, we just add this utility as first step.
    Regards,
    Olivier

  • Can you use two duetts on logic at the same time

    can you use two duetts on logic at the same time so i can have inserts

    tracktor wrote:
    can you use two duetts on logic at the same time so i can have inserts
    Before going ahead on this you should definitely check with Apogee as I think they do not recommend using their interface(s) in an Aggregate device.
    Maybe that's changed.. not sure.
    pancenter-

  • Run one VI twice at the same time.

    I use two eqivalent measurement sets each with individual devices (GPIB). I want to use them from one computer at the same time with the same LabView program, each with independent panel (two instances).
    As far as I know it's only possible with "VI-Setup/reentrant execution", but in this case the panel is disabled and programs are strongly limited.
    Copy to another name is another possibility, but under development conditions not useful.
    Has anybody a more suitable solution.
    Thanks in Advance
    Sven.

    As long as you rename one of the two VI's there should not be a problem running them simultaneously. (I'm not sure why copying to another name should be a problem in your case) I've done this for years successfully with two SR830 Lockin-amps using the gpib bus at reasonably low speeds. If you're pressing the limits, speed wise, you may need to use a semaphore arrangement, to prevent GPIB errors. I'd suggest just trying the dual vi first....it certainly is simpler!
    eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • Can I use my creative cloud account at the same time for my iMac and my MacBook?

    Can I use my creative cloud account at the same time for my iMac and my MacBook?

    Thank you Sheena!!
    Guy
    Op 2-jan.-2015, om 12:16 heeft Sheena Kaul <[email protected]> het volgende geschreven:
    Can I use my creative cloud account at the same time for my iMac and my MacBook?
    created by Sheena Kaul <https://forums.adobe.com/people/Sheena+Kaul> in Adobe Creative Cloud - View the full discussion <https://forums.adobe.com/message/7059158#7059158>
    Hi Guy Heyligen,
    Absolutely. You can use the creative cloud account on two machines.
    You may also refer to the link below:
    Creative Cloud Help | Creative Cloud / Common Questions <http://helpx.adobe.com/creative-cloud/faq.html>
    Regards,
    Sheena
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7059158#7059158 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7059158#7059158
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Creative Cloud by email <mailto:[email protected].com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=46 70>
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624 <https://forums.adobe.com/thread/1516624>.

  • Low memory when using programs like iPhoto, office at the same time I have 4 GB ram

    low memory when using programs like iPhoto, office at the same time I have 4 GB memory ram 3000 graphics 384 mb

    Do you have a question?

  • MacBook Pro Freezes while using more than two applications at the same time

    Over the last two weeks my MBP has been freezing every time i use two or more applications at the same time. For e.g. my whole system freezes from time to time when i use itunes and safari at the same time. This problem never existed before and has just started recently and is really annoying. What can i do to fix it?

    Rather than re-installing Safari have you tried simply "Resetting" it (head to "Reset safari" under the "Safari" menu). It is possible that something in your user folder that supports Safari is really the cause of the problem. Re-installing Safari won't deal with this, but re-setting it can.
    In fact the first thing you should try is simply choosing "Empty cache..". If your cache files are corrupted then this in itself could explain the behaviour.
    If you choose to do the Reset first try it with just "Empty cache" and "remove all website icons" selected. This will reduce the amount that you will "lose" in the process. (Cookies, history, etc). Add in additional options if the first attempt doesn't fix it.
    Cheers
    Rod

  • Can i use 2 channel of USRP at the same time to receive a signal?

    Hi everyone,
    i want to do an implementation of time difference of arrival estimation between two receivers (antenna). I have an USRP  kit, daughterboards and two antennas. There is only one source signal ( it is transmitted in anywhere it doesnt matter).
    Can i use two channel of USRP at the same time to receive  a signal ?
    I need the original source signal and time-shifted version of this signal. 
    Many thanks for your help.
    Sincerely yours,
    Uysal.
    Solved!
    Go to Solution.

    Hello,
    I found this forum post which may be helpful to you.  It looks like you can't receive from the two antennae in the way that you describe.  I think this would require a two USRP setup.
    Jon F.
    Applications Engineer
    National Instruments

  • Hello all,   I have a iMac, iPhone 4s, iPhone 4 and an Apple TV v3...and I would like to be able to stream the same song to all of these devices all at the same time. Is this possible do you know?   any details greatly Rx'd

    Hello all,
    I have a iMac, iPhone 4s, iPhone 4 and an Apple TV v3...and I would like to be able to stream the same song to all of these devices all at the same time. Is this possible do you know?
    any details greatly Rx'd

    Welcome to the Apple Community.
    Thats not possible I'm afraid, only the Apple TV can receive an AirPlay stream, and even then only one at a time, unless you stream from a computer.

  • Can we use Badi BBP_SOURCING_BADI and BBP_DETERMINE_LOGSYS at the same time

    Hi everyone,
    We need you help. We are working in SRM 7 and ECC 6 EhP 4. We have a doubt. Can we use badis BBP_SOURCING_BADI and BBP_DETERMINE_LOGSYS at the same time in a classic scenario?
    We want to create the contract in ECC, and then we want to return the SC in SoCo in order to create the PO with the SC and the contract.
    We activate both, but the SC is not returned in SoCo.
    Thanks,
    Ivá

    Hi Ivan
    You can use both badi to change srm standard behavior.
    but one shopping cart item and it can have only one follow on document either Contract or Purchase order.
    i presumed that you want to use same sc for two purposes to create both SC and PO but it is not possible.
    for example
    shopping cart item has follow on document created  as a contract But you need to create a another shopping cart to create a Purchase order  w.r.t that contract .
    Once follow on documents are created sourcing flag will be removed .- rule
    BBP_SOURCING_BADI - you can write your custom logic and make way to cockpit .
    BBP_DETERMINE_LOGSYS - Determine your logical system.
    Muthuraman

  • I have an iPhone 4S. I have an aftermarket blue ant Bluetooth in my van already synced to my 4s. I bought a JBL Flip speaker and when I try to sync in all it does is say searching. Is it because I can't have these two devices synced at the same time?

    I have an iPhone 4S. In my van I have a portable Bluetooth called blue ant. I have it synced to my iPhone 4S. When I try to sync it to my JBL Flip Bluetooth speaker all it will do is keep searching. My question is this. Is it not possible to have both devices synced at the Same time?

    Nope. You can only be connected to one Bluetooth speaker at once.
    Hope this helps

  • Use more than one transition in the same time between two video clips?

    Dear Premiere Pro programmers,
    Could you please create a way to use more than one transition in the same time between two video clips without exporting to media, or creating new sequence, or using another layer (adjustment or transparent)?
    Message was edited by: Kevin Monahan
    Reason: Next time, create a more descriptive title.

    Hi Aqsa Nori,
    I'm not sure what you are imagining, but it might be possible to achieve by key framing effects. Can you tell us what you want to do? Also, please feel free to file a feature request: http://adobe.ly/feature_request
    Thanks,
    Kevin

  • Imovie downloading twice at the same time??

    I was prompted for an imovie download/update but didnt have the hard disc space initially.  I have now sorted that problem, but it looks like iMovie is downloading twice at the same time??  In the status bar under Launchpad it has two progress status alternating and when I open Launchpad, both progress details are listed under iMovie.  is it possible that it is double downloading?  Considering it is 1.94GB and I am pressed for hard disc space, I dont want it on here twice.  New to Macbook if that isnt already obvious!

    Hi cathygiliam,
    Thanks for visiting Apple Support Communities.
    If it seems like an iMovie update is downloading twice and you have concerns about available hard drive space, the best option may be to cancel the download(s) and start over.
    To cancel a download in App Store, in the toolbar, click Purchases, find the app in the list, hold down the Option key, and then click Cancel.
    To cancel a download in Launchpad, hold down the app icon until all the icons start to jiggle, and then click the app’s delete button (x).
    To cancel a download in the Finder, click the app's delete button (x).
    Mac App Store: Buy, download, and install apps
    http://support.apple.com/kb/PH11493
    Follow the steps in this article to download the update again:
    OS X: Updating OS X and Mac App Store apps
    http://support.apple.com/kb/ht1338
    Cheers,
    Jeremy

  • "you can not use multiple instance of Program at the same time"

    Hello @ all,
    I have a Problem, after the installing from Acrobat Testversion and acrobat reader in version in "all Combination" 8 an 9.
    I get this misstake information "you can not use multiple instance of Program at the same time" if I want open more then 1 .pdf.
    If I have no pdf open, but acrobat/reader so i can´t open with the same Misstake.
    I have deinstalled and installed, Allways I bekame the same information. I tryed all things to clean and know i don`t know forward.
    Important: by Drag an Drop in the Acrobat Reader it is going, but by direct click on the pdf i get mistake.
    Maybe, you know what I can do!
    Thanks for help!

    Installation of both Acrobat and Reader in the same Windows machine is not advisable. If I were you, I would remove both completely and then reinstall the one you want to keep.

Maybe you are looking for

  • Select from dual  into a variable through db links

    HI,I need to select value of current_timestamp in to a variable d1 of a remote database inside function. function (db_lnk varchar2)return number as dbl varchar2(10); begin dbl:=db_lnk; select current_timestamp into d1 from dual@dbl; end; but getting

  • Engineer to Order Scenario-Target Costs and Stock Valuation

    I have got a query  pertaining to Engineer to  Order Scenario. A production order has been created with WBS element as the account assignment .Its a valuated project stock scenario, with configurable material. As per SAP standard behaviour  and my li

  • Quick hashCode question

    Hi, ive read a few previous posts about this and am still not 100% on this. From what i understand, hashCode is worked out using the memory address unless an equals() method is implemented in which case it uses this. Is this right or wrong? Thanks Ch

  • UTF8 conversion support for jni

    We were using db-4.2.52.NC, and found that conversion between the java UTF8 and C native encoding wasn't supported with the BDB jni, so we added it ourselves. We are in the process of upgrading to 11G, has that support been added since then?

  • Vbios failing on a macbook pro

    Hey everyone. I'm working through my first install of Arch on my macbook pro and I ran into a problem. I want to use ATI's catalyst drivers, these require BIOS, but my computer has EFI and Arch tells me that Vbios fails each time I boot. I'm dual boo