I'm using Ozeki SDK with C# for streaming RTSP from AXIS P1204 camera. When I try to connect to the camera, nothing happens and no video is streamed.
Here is the code i'm using to stream video:
Camera = IPCameraFactory.GetCamera("rtsp://192.168.0.90:554/axis-media/media.amp", "root", "pass");
Connector.Connect(Camera.VideoChannel, ImageProvider);
Camera.Start();
VideoViewer.Start();
I traced the network traffic with wireshark:
As it seems, the Ozeki SDK can't login to the Axis P1204. With VLC media player, I can get the video stream with no problem.
Any suggestions?
The snippet is quite short but you get a 401 Unauthorized response. Initially, you could try to get access to the camera by enabling anonymous access In Basic Setup Users). Depending on Ozeki SDK having support for basic and/or digest authentication, you can configure the camera to allow password type Unencrypted (basic authentication) or Encrypted (digest authentication).