Cannot retrieve playback video from Web API

Milestone logs this error when I try to access playback video. On my side I get a websocket timeout. Live video plays as expected.

2018-09-06;11:55:10 PM;Info;InitializeFromSiteItem;Server type: XProtectProfessional, Product name: Milestone XProtect Professional 2018 R2, Server sub type: 300, Code base: XPE, Server innner type: XPE, Version string: 12.2
2018-09-06;11:55:10 PM;Info;ConfigurationHelper();Number of read configurations: 1
2018-09-06;11:55:10 PM;Info;ConfigurationHelper.GetConfiguration();Settings has been found.
2018-09-06;11:55:10 PM;Info;Main thread;Current Culture: en-US
2018-09-06;11:55:10 PM;Info;Main thread;Current UI Culture: en-US
2018-09-06;11:55:10 PM;Error;RequestCallback;Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
2018-09-06;11:55:10 PM;Error;RequestCallback;An invalid IP address was specified.
2018-09-06;11:55:10 PM;Error;RequestCallback;Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.

The “Limit playback streams” box is unchecked in my Mobile Server Performance tab.

Software is

Milestone XProtect Professional 2018 R2

Versions: 12.2a Build: 5336

Device pack version: 9.8a

Thanks!

Hi Guys,

As web-sockets are working for live stream, I doubt it is something from them.

You could try to disable them but it probably won’t make it work.

Do you know if there is a playback for the particular camera at all?

Also if the user you are logged in has a user rights for playback?

Could you double-check both with SmartClient and Milestone WebClient, please ?

How to disable WebSockets per connection could be seen on this thread:

https://developer.milestonesys.com/s/question/0D50O00004ELCrASAX/?t=1536779973569

Thank you for your prompt response. Here are the answers to the questions that you’ve asked.

>Do you know if there is a playback for the particular camera at all?

Yes, there are playbacks for all 5 videos on the server.

>Also if the user you are logged in has a user rights for playback?

User has all right except for admin as seen in the users menu.

>Could you double-check both with SmartClient and Milestone WebClient, please ?

Logged in as the user on SmartClient and got live video and playback on the SmartClient.

Today I will be installing Milestone on a virtual machine to replicate the issue. I will try turning off websockets.

Hi Petar,

I installed everything in our development environment and it works flawlessly. The websocket thread you suggested was for the SDK. We are working directly with the web API. This seems like a configuration issue with Milestone. Anything in particular you could suggest that we look at?

Thanks.

Well, sounds very strange on first look.

Could you try if playback for particular camera and user is available trough the Milestone web client, on the environment that is failing.

If it is - it will be much more stranger. If it is not - you are most probably right and it is some configuration/environment issue.