For video data, SuperMap iServer provides two types of services: rest data service and rest video stream service, which are respectively used for video data management and streaming. This section will introduce the specific publishing process and precautions for you.
Operation steps
Function access:
- Service management Home ‐ > publish service button
- Service management Home ‐ > Service ‐ > service The management tab ‐ > quickly publish service button
Operating instructions:
- Select datasource, you can select the workspace type to save the video dataset, such as "file workspace", "Oracle "Workspace", "SQL Server workspace" "," PostgreSQL workspace "", etc.;
- Configuration the data, "Select" or input the file path of the file workspace to be used or the link information of the database-type workspace, and click "Next";
- Select service type, you can select "rest data service" or "rest video stream service", click "Next".
- You can only select "rest data service" for publishing when the published workspace contains only video datasets generated by online video or streaming video into the desktop;
- When the published workspace contains the video data set generated by importing the local video file into the desktop, it is recommended that you select both "rest data service" and "rest video stream service", otherwise the video data set cannot be loaded on the client.
- Configuartion service, corresponding service configuration item, please refer to: configuartion service;
- Click Publish to publish the rest data service or rest video stream service.
Precautions
- Select to publish the rest data service and the rest video stream service at the same time, and the two services will be bound. You can go to service management home page ‐ > service ‐ > service Management tab ‐ > data services card ‐ > service providers tab to view the root address of the video stream service bound to data services. And the Address in the video feature in data services is also changed from that file path of the video file to the corresponding online video address in the rest video stream service. For example: http://{ip}:{port}/iserver/services/{videoStreamServiceName}/restjsr/hls/stream/{datasetName}/{videoFeatureId}/{videoStreamName}
- If you successfully publish the rest video stream service on a Linux (x64) or Linux (arm64) system, but the above online video address in the service is 500, please refer to the handling method of video file streaming failure to solve this problem.
Related topics