Search code examples
javavideo-capture

How to capture video from IP camera using java?


here i'm trying to execute a code found with google for capturing video from an IP Camera. i use NetBeans 7.1

link for complete code here : [http://blog.950buy.com/article/capture-video-from-ip-camera-using-jmf/][1]

I have two lines in red and i don't understand why. please could comeone check errors in these lines:

....
public String jpgURL=”http://10.0.0.81/axis-cgi/jpg/image.cgi?resolution=1024×768″;
public String mjpgURL=”http://10.0.0.81/axis-cgi/jpg/image.cgi?resolution=1024×768″;
....

My NetBeans 7.1 says there is illegal character \8221

Thank you PS : The whole code is too big to put here.


Solution

  • excerpt from this site

    You used Unicode 8220 (aka \u291c, 0x291c, “, left quote) or 8821 (aka \u291d, 0x291d, ”, right quote) instead of a simple 34 (aka \u0022, 0x22, ") that Java requires. This probably resulted from using a word processor like MS Word instead of a text processor or IDE to compose your Java source which converts "s into “ and ”.