• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Camera class and device path...

 
Justin Fox
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic