Hello,
I’ve been looking into creating an API endpoint that will handle the logging in internally and allow the user to request a video snippet that will then be exportet and finally downloaded to the user’s PC.
My current thought would be that when the user calls the enpoint, the endpoint uses the Milestone Export component, exporting the video to the server where the API is located and then the API endpoint lets the user download the video to their own machine for viewing.
Would the be possible with the Export Component or which would be the better way to do it?
What you describe is very much like the export feature implemented in Mobile Server. There is a SDK for Mobile Server. https://doc.developer.milestonesys.com/mipsdkmobile/
Using the MIP SDK Exporter and VMS directly is also possible and I am not sure which approach is better.
https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/exportsample/readme.html&tree=tree_2.html
Right, so I’ve look at both these options, with only the samples for the Component based stuff being able to actually work (Only on a non secure connection sadly).
But I was sort of hoping to get the MIP stuff working, as that does seem to be more or less what I want.
However my issue right now, is the fact that we’ve set up the XProtect Mobile Server, which gives me access to XProtect over the webinstead of through the smart client and I had our SysAdmin look at a guide that I found to set up CORS, but I am still getting CORS errors, do you have an idea, what might be causing it?
CORS link:
https://supportcommunity.milestonesys.com/s/article/XProtect-Mobile-Server-app-on-different-server-CORS?language=en_US
Hey ,
If you run just Mobile Server and explore Web Client or run sample apps hosted in Mobile Server you do not need to setup CORS.
If you wan to make calls to Mobile Server API endpoint for another host, than you need to configure CORS.
Please look into those links as well :
https://doc.developer.milestonesys.com/mipsdkmobile/samples/HostOnServer_5.html
https://doc.developer.milestonesys.com/mipsdkmobile/reference/protocols/mobile_configuration.html
Make sure you restart Mobile Server after changing configuration.
If you continue to experience issues please provide some more detailed information about your case:
- Configuration
- Request \ response
- Where you are app is hosted