my dog learned polymorphism*
The moose likes Other JSE/JEE APIs and the fly likes Java Media Framework: surviving laptop hibernation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Media Framework: surviving laptop hibernation" Watch "Java Media Framework: surviving laptop hibernation" New topic
Author

Java Media Framework: surviving laptop hibernation

Jane Jukowsky
Ranch Hand

Joined: Mar 28, 2009
Posts: 145

I am trying to adapt this image capture demo: http://www.comp.rgu.ac.uk/staff/fh/CM4062/mis/jmf/FrameGrab.html
All works well until I hibernate or standby. I come out of hibernation with built-in webcam turned off, only JMF does not know about it.

How can I adapt this code to check whether the cam is on or off? and if it's off, how do I turn it back on without causing the "device already in use" exception?

Here is the code from the link:

 
Don't get me started about those stupid light bulbs.
 
subject: Java Media Framework: surviving laptop hibernation
 
Similar Threads
Camera class and device path...
Why I get java.lang.NullPointerException for grabing image.
JMF application not detecting web camera
Problem with JSF and webcam
JMF application not detecting web camera