I updated CSP and CORS in VideoOS.MobileServer.Service.exe.config and restarted mobile server. but it showed same error.
/XProtectMobile/Video/534be663-d505-41a6-937c-d802cc788e01/
This url format is available on new server ?
what did you change in new SDK files? the changes are related to this url ?
maybe you know what issue is related to.
Also, I checked mobile server logs. there are some errors
2020-11-06;9:07:07 PM;Error;HttpListenerAsync.ListenerCallback;The I/O operation has been aborted because of either a thread exit or an application request
2020-11-06;9:07:08 PM;Info;DataChannelsManager.OnDataChannelClose();Stream Closed Without Request! StreamID: 05ad37d4-9588-4843-8dc7-b89e22cedef1, CommChannelID: cbc86158-d054-47c2-9a7a-444a866160ca
2020-11-06;9:08:59 PM;Info;MipSdkWrapper.CheckSettings();Number of read configurations: 1
2020-11-06;9:08:59 PM;Info;MipSdkWrapper.GetConfigurationByServerId();Settings has been found.
2020-11-06;9:08:59 PM;Info;Main thread;Current Culture: en-US
2020-11-06;9:08:59 PM;Info;Main thread;Current UI Culture: en-US
2020-11-06;9:08:59 PM;Info;AlarmSecurityManager.TryRefreshUsers;All users list updated.
2020-11-06;9:08:59 PM;Error;RequestCallback;Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
And I saw similar articles here, But nothing is helpful.
https://developer.milestonesys.com/s/article/cannot-view-playback-web-and-mobile-client-troubleshooting
https://developer.milestonesys.com/s/question/0D53X00005tpCnCSAU/not-able-to-connect-to-milestone-mobile-server-over-https
and I was going to update XPMobileSDK.js and XPMobileSDK.library.js, but they were changed much and hard to integrate with my React app. I think they should be easy to use. Could you look the files I attached? the files are what I used in my app.
I tried to update new SDK (I thought I replace new files simply), but you changed the format much.
Could you look and advise me ? Maybe you can compare them with my old SDK files and correct in the format?
I appreciate your help
when I used new SDK, show this error.
TypeError: Cannot read property 'src' of null
initialize
C:/MERN-securitySafetySystem/CMSS/src/ducks/XPMobileSDK.js:143
140 |
141 | var script = document.querySelector('script[src$="' + XPMobileSDKSettings.fileName + '"]');
142 |
> 143 | path = script.src.replace(RegExp(XPMobileSDKSettings.fileName + '.*$'), '');
144 | head = document.querySelector('head');
145 |
146 | load(XPMobileSDKSettings.includes.slice());