AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Hikvision IP Camera Problem Getting MJPEG stream

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Hikvision IP Camera Problem Getting MJPEG stream

Postby rameedev » Fri Mar 17, 2017 7:08 am

I am trying to use the framework to get a MJPEG stream from my Hikvision IP Camera. I am using the sample 'Player' project under source code.
The url I am trying -- http://uname:pwd@16.80.15.37:80/Streami ... ttppreview

I have tried using the above url in firefox and it works. In the Sample project once I give the URL it says 'Remote Server Returned an Error:401 Unauthorized'.

Not sure what could be the issue , in firefox once I give the url it asks me if I want to connect , not sure if this has got something to do with AForge not able to access the stream...

Please provide inputs

Thanks
rameedev
 
Posts: 2
Joined: Fri Mar 17, 2017 6:59 am

Re: Hikvision IP Camera Problem Getting MJPEG stream

Postby andrew.kirillov » Fri Mar 17, 2017 8:02 am

Try using Login/Password properties of MJPEGStream class instead of putting those into URL.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3196
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Hikvision IP Camera Problem Getting MJPEG stream

Postby rameedev » Fri Mar 17, 2017 11:43 am

Thanks , that worked.
Thanks
rameedev
 
Posts: 2
Joined: Fri Mar 17, 2017 6:59 am




Return to AForge.NET Framework