BTW, I am creating a web-app, so that general public will be able to view videos just by going to a web-page, no login as such. I should be able to show videos by the viewID.
All XProtect VMS’s require a login.
Hi Umesh,
Unfortunately you are right - there a re no samples for asp.net.
The principle however is the same as in regular .NET application.
If I understand your integration correctly, there are two possible solutions:
- Create “REST” wrapper in your ASP.NET back-end, which connect to the Mobile server, gets the stream, and provides it to your front-end (page). For this to happen you can use .NET SDK and keep your credentials in the back-end server. You have to be state-full however. MJPEG stream is a good candidate for streaming format.
- Use JS SDK in order to connect directly to the Mobile server from your web page. In order to not hard-code the VMS credentials, you can get them from your back-end (I suppose you have some authentication/authorization, so only the user with rights will receive the VMS credentials)
Thanks Bo & Petar. For now I am going with JS SDK. My only concern at the moment is…the videos are not that smooth (jittery) when using JS SDK.
Your XProtect Web client renders well, does it use the JS SDK?
Yes, it does.
XProtect Web uses the XPMobile SDK.