Camera can not be detected! any ideas?
i am programming a microsoft which just likes NetMeeting,and i have a problem now.this question might seem silly to you ,but i am a new jmf_er,so i need your help!
to detect camera ,i wrote the code as follows:
Vector list = CaptureDeviceManager.getDeviceList ( null );
if ( list != null )
for ( int i=0; i<list.size(); i++ )
devInfo = (CaptureDeviceInfo)list.elementAt ( i );
name = devInfo.getName();
System.out.println(name);
if ( name.startsWith ("vfw:") )
System.out.println ("DeviceManager List : " + name );
capDevices.addElement ( new MyCaptureDeviceInfo ( devInfo ) );
but i discovered that there is no name starts with ("vfw:")!and the camera can be detected when i use another microsoft !
i do not know what is wrong ,
any ideas are welcome,thank you!
Regards
Adigan
The ist thing is that ur code is incorrect
the last statment (addElement)is not meant to be here
use the following code..
CaptureDeviceInfo devInfo=null;
Vector list = CaptureDeviceManager.getDeviceList ( null );
if ( list != null ){
for ( int i=0; i<list.size(); i++ ){
devInfo = (CaptureDeviceInfo)list.elementAt ( i );
String name = devInfo.getName();
if(name.startsWith ("vfw:")){
dExist=true;
break;
if(dExist==true){
MediaLocator m = devInfo.getLocator();
DataSource ds = null;
try {
ds=Manager.createDataSource(m); Player player = Manager.createRealizedPlayer (ds);
player.start();
Component videoScreen= player.getVisualComponent();
Frame frm=new Frame();
frm.setBound(100,100,300,300);
frm.add(videoScreen);
frm.setVisible(true);
} catch (Exception e) {
else{System.out.println("no device exist");}
Similar Messages
-
I can not get itunes to download to my computer, keeps saying a temporary file can not install, got any ideas.
keeps saying a temporary file can not install, got any ideas.
What's the precise text of that message, please? (There's a few different ones I can think of that you might be getting.) -
My iMac 10.6.7 freezes at startup or if I click anything, won't restart, key commands don't work, I have to keep shutting it off to restart.....I repaired disc via target mode using a laptop, but access permissions there or by clicking anything on the screen...it spits out the discs that came with it...any ideas?
My iMac 10.6.7 freezes at startup
How large is your HD & how much space do you have left on it?
it spits out the discs that came with it...any ideas?
Make sure the DVDs are not dirty, smudged and/or scratched.
http://support.apple.com/kb/TS2000 Mac doesn't start up from install disc
*** Your drive may need cleaning. Cleaning kits can be purchased from any store that sells CD/DVDs. ***
(10.6.7)
Use Software Update or the OS 10.6.8 combo update to update your OS. Also, update everything SU has to offer for your computer. When done, repair permissions and restart your computer. -
Hi all, Since I updated to Mavericks I am having trouble with Safari showing all the buttons/clickable options, but they are gray and will not work. Specifically, the Trash Can/Delete and the "Move to" folder button simply do not work. Any ideas?
Please post a screenshot that shows what you mean. Be careful not to include any private information.
Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply. -
I have a new Dell computer running windows 7 and am unable to download itunes. The message I recieve after trying to run the download is: This installation package could not be opened. Verify that the package exists and that you can access it. Any ideas?
Hello tcampbell1549,
Thank you for using Apple Support Communities.
For more information, take a look at:
Issues installing iTunes or QuickTime for Windows
http://support.apple.com/kb/ht1926
Have a nice day,
Mario -
I get this message when syncing my Ipod touch "itunes can not back up the ipod because a session could not be started" any ideas?
Have you looked at the previous posts on the right side of this page under the heading "More Like This" with your same problem?
-
My ipod touch does not show up in my itunes source list, and shows up as a digital camera in "My Computer". Any ideas?
Start here. Is ti normal and expected for the computer to also see the iPod as a comera since that is how you get saved photos from the iPod to the computer.
iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows -
I'm trying to sync a new iphone into i tunes. I'm getting a message that says that this iphone cannot be used because the apple mobile device service is not started. Any idea what I can do to solve this issue?
See Here...
AMDS for Windows
http://support.apple.com/kb/TS1567
AMDS for Mac
http://support.apple.com/kb/ht1747 -
i just jupdated to IOs5 on my ipod touch when i go to my unlock screen the camera option is not always there any ideas?
You need to double click the Home button to get the camera button.
-
Every time I right-click an image in Firefox 3.6.12 to view image size info it says "Unknown (not cached)". Any ideas on why this could be happening and how I can stop it? My OS is Ubuntu 10.10. If you need any more info let me know.
Is the disk cache and the memory cache enabled?
You can check these prefs on the about:config page.
* http://kb.mozillazine.org/browser.cache.disk.enable
* http://kb.mozillazine.org/browser.cache.memory.enable
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
Your More system details list shows two outdated Flash plugins that you should remove and update to Flash 10.1 r102 or at least remove 10.0 r45 and wait until your distribution offers a 10.1 r102 update.
# Shockwave Flash 10.0 r45
# Shockwave Flash 10.1 r85
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/ -
MacBook Pro OS 10.9.5, 250 GB solid state hard drive.
I can't figure out what is taking up all my hard drive space (it is not backups). Any ideas? -
since i updated my Apple ID with correct email address I can now only send imessages to email addresses and not iphone numbers - any idea how to fix this problem ?
You might want to try contacting Apple for assistance by going to https://expresslane.apple.com, then click See All Products and Services>iTunes>iTunes Store>Passwords & Security Questions>Lost or Forgotten Apple ID password. They should be able to explain what's going on and help you reset the password for the old ID if necessary. The call should be free.
-
I lost my iphone, got a new sim card and put it in my boyfriend's old iphone. When I synch it in itunes it will only synch with his stuff and not mine. Any ideas how I can get it to synch with my itunes??
Are you using a Mac? It sounds like you are using his computer to sync to. If this is the case, then it will sync to all of his stuff unless a new user is created with your personal stuff on it.
When you want to sync your iPhone to that computer, switch to your user first, and then everything will sync with your stuff. If he wants to hook up his iPhone to sync it, then he needs to switch back to his own username first. -
I by accident deleted an important Note that had all my passwords on my Notes Ap on my Iphone 5. I can not find a file that has deleted Notes files so I can recover it. Any idea how I can get it back? Thanks,Mike
Do you have a backup of your iPhone? If so, do a restore and whatever Notes were backed up should reappear.
You will lose any changes made since that backup though. -
Hi I have a mac osx lion10.7.3 and i can't get my mail set up with a blueyonder.co.uk address inbox works fine but i can't get outbox to work will not send mail any idea's thank's
And, you are sure you have provided the correct username and password for you email account? I'm not familiar with Virgin media, so you might contact their tech support to find out why you are having a problem sending mail but none receiving mail. I assume your mail account has always been POP3 and not IMAP. Typically, the outgoing mail servers are not the same for the different types of account service.
Maybe you are looking for
-
With each upgrade of Firefox, I have a harder and harder time, getting to the links provided in my emails. Some times I am able to trick the link into working, if I continue to to try every link in the email, but most of the time, I just have to give
-
We are using Lync but just installed a new VOIP system called SWYX Everything is working fine except if a user picks up his phone (usb Phone) Lync is also popping up behind the screen of the SWYX software client. Problem is that when Lync is also pop
-
Sales Order Creation With out Exicse Duty
Dear All, I want to create the sales order with out excise duty calculation. But for this customer is excise applicable for other material. Thanks Saravanan R
-
When i called *611 to check my order statud for my 6+ it said 'revieved and activated' Can anyone tell me what that means?
-
kde 3.2.2 is out this is a maintance bugfix release details here: http://www.kde.org/announcements/change - _3_2_2.php have fun!