IP Camera
Home IP Cameras Reviews Forums IP Camera Software IP Camera Comparison Tools and Support Contact Us

Site Search

Your IP Network Camera and Video Server Source

- IP Camera and Video Server Reviews
- Discussion Forums
- Tools and Support
- Industry News and Articles
- Complete Product and Software Listings
Where to Buy

Latest IP Camera Reviews

Newsletter Sign Up

IP Camera Help Center

IP Camera Forum
IP Camera Software
Integrators & Solution Providers
Glossary of Terms
Camera Comparison
Camera Demos
View Articles
Press Releases
Tools and Support
Where to Buy

Other Resources:

Website Help

About Us
Media Kit
Contact Us
RSS Feed
Site Map
Industry Links
Link Directory

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Streaming live video from i.p. camera problem

Post new topic   Reply to topic    IP Camera Forum Forum Index -> Troubleshooting
Author Message
New Member

Joined: 12 Jul 2010
Posts: 5
Location: Nottingham

PostPosted: Sun Jul 25, 2010 4:10 am    Post subject: Streaming live video from i.p. camera problem Reply with quote

Hi gurus

I am having trouble streaming a live audio from an axis camera m1054 through my application please any help is appreciated as i have tried on some forums but still have not got an answer. please as this is my final year project.

below is the code.

public class mymediap extends JPanel

public mymediap( )
setLayout( new BorderLayout() ); // use a BorderLayout
Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, new Boolean(true) );

String mediaURL="rtsp://";
MediaLocator medialoc = new MediaLocator(mediaURL);
Player myPlayer = Manager.createPlayer(medialoc);//Manager.createRealizedPlayer(ml);

// get the components for the video and the playback controls
Component myvideo = myPlayer.getVisualComponent();
Component controls = myPlayer.getControlPanelComponent();

if ( myvideo != null )
add( myvideo, BorderLayout.CENTER ); // add video component

if ( controls != null )
add( controls, BorderLayout.SOUTH ); // add controls

myPlayer.start(); // start playing the media clip
} // end try
catch ( NoPlayerException noPlayerException )
System.err.println( "No media player found" );
catch (Exception e){
System.out.println("hello: " + e);

but when i tried the rtsp url on the normal firefox webbrowser it worked fine. please help.


Exception in thread "JMF thread: com.sun.media.content.rtsp.Handler@14f8dab[ com.sun.media.content.rtsp.Handler@14f8dab ] ( realizeThread)" java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
at java.lang.Double.valueOf(Double.java:475)
at java.lang.Double.<init>(Double.java:567)
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)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger

Joined: 20 Aug 2010
Posts: 21

PostPosted: Fri Aug 20, 2010 3:10 am    Post subject: Reply with quote

1. put the cam in 'anonymous' mode in case your issue is with authentication rather than just stream code.

2. test in vlc media player and see if the stream comes through with audio

3. have never seen the &RTSP/1.0 portion before. try without it.

4. read the VAPIX docs on axis.com, developer section.
Video On Your Cell Phone
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IP Camera Forum Forum Index -> Troubleshooting All times are GMT - 4 Hours
Page 1 of 1


Highest Rated
Warning: join() [function.join]: Invalid arguments passed in /home/ncrftp503/public_html/lib/functions.php on line 363
No cameras with more than 1 rating found

Most Viewed