Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Media Framework: surviving laptop hibernation

 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic