• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Camera class and device path...  RSS feed

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking into the Camera class, and I don't know how to find out the path name to my device, could anyone help me out?

thanks,

Justin Fox
 
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Invert the phase coupler and focus the gravitron flow.

Seriously, what Camera class?
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lol, well I googled "Camera Class Java" and it came up, But I trashed that endeavor and looked into the JMF2.1.1 .

Umm, I got the app I'm using to connect to my usb quickcam. I have a little routine that when I click "record" it basically just takes a picture every 2.25 seconds. The loop to do this is a while() loop and I just do a procedure (take a pic) and then use robot.delay() function to pause for 2250 ms.

But I want to be able to press a pause button, and when the program is "recording" the UI freezes up and I can't press anything, the loop works and it does take pictures, but i have to ctrl+c to exit too.

I dont know how to go about this to where the buttons are always clickable even if that while loop is going.

My guess is that the robot.delay() is basically just like thread.sleep() and pauses the main thread so nothing else can happen, and by the time it is done pausing, its pausing again. So in reality there is basically no time to click on another button.

If I could get some help, That would be awesome.

I'm at work right now, so I'll post the code when I get home.
But some thoughts on how to approach this would still be greatly
appreciated.

Justin Fox
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
My, my, aren't you a big fella. Here, have a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!