Dear all,
I have three questions -
1.Is there authentication method available in com.sun.media.rtsp package. If there,
where to get sample code or api specification for it.
2.I have a question about rtsp in jobs4jmf, here is my code with an rtsp url.
I am using axis 207 camera to read the mpeg4 stream with rtsp://192.168.2.22/mpeg4/media.amp. I can access stream with vlc. Authentication with this url.
MediaLocator st = new MediaLocator("rtsp://192.168.2.22/mpeg4/media.amp");
Player mediaPlayer = Manager.createRealizedPlayer( st );
Component video = mediaPlayer.getVisualComponent();
Abov e code is compiled fine. jmf.jar and fobs4jmf.jar are in classpath.
java -cp :/usr/java/JMF-2.1.1e/lib/jmf.jar:/usr/java/JMF-2.1.1e/lib/fobs4jmf.jar LiveMediaTest
Following error is generated-
bandwidth info: AS:3016
bandwidth info: AS:3000
bandwidth info: AS:16
Exception in thread "JMF thread: com.sun.media.content.rtsp.Handler@19106c7[ com.sun.media.content.rtsp.Handler@19106c7 ] ( realizeThread)" java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
at java.lang.Double.valueOf(Double.java:447)
at java.lang.Double.<init>(Double.java:539)
at com.sun.media.content.rtsp.RtspUtil.setDuration(RtspUtil.java:521)
at com.sun.media.content.rtsp.RtspUtil.rtspSetup(RtspUtil.java:168)
at com.sun.media.content.rtsp.Handler.initRtspSession(Handler.java:117)
at com.sun.media.content.rtsp.Handler.doRealize(Handler.java:84)
at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
Can some help to solve the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
I have three questions -
1.Is there authentication method available in com.sun.media.rtsp package. If there,
where to get sample code or api specification for it.
2.I have a question about rtsp in jobs4jmf, here is my code with an rtsp url.
I am using axis 207 camera to read the mpeg4 stream with rtsp://192.168.2.22/mpeg4/media.amp. I can access stream with vlc. Authentication with this url.
MediaLocator st = new MediaLocator("rtsp://192.168.2.22/mpeg4/media.amp");
Player mediaPlayer = Manager.createRealizedPlayer( st );
Component video = mediaPlayer.getVisualComponent();
Abov e code is compiled fine. jmf.jar and fobs4jmf.jar are in classpath.
java -cp :/usr/java/JMF-2.1.1e/lib/jmf.jar:/usr/java/JMF-2.1.1e/lib/fobs4jmf.jar LiveMediaTest
Following error is generated-
bandwidth info: AS:3016
bandwidth info: AS:3000
bandwidth info: AS:16
Exception in thread "JMF thread: com.sun.media.content.rtsp.Handler@19106c7[ com.sun.media.content.rtsp.Handler@19106c7 ] ( realizeThread)" java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
at java.lang.Double.valueOf(Double.java:447)
at java.lang.Double.<init>(Double.java:539)
at com.sun.media.content.rtsp.RtspUtil.setDuration(RtspUtil.java:521)
at com.sun.media.content.rtsp.RtspUtil.rtspSetup(RtspUtil.java:168)
at com.sun.media.content.rtsp.Handler.initRtspSession(Handler.java:117)
at com.sun.media.content.rtsp.Handler.doRealize(Handler.java:84)
at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
Can some help to solve the problem.
I tried to do the same yesterday by using JMStudio with forbs4jmf_0.4.2_win32. And i obtain the same exception with a 215 PTZ Axis Camera.
Do you have fix the problem ?