Code Samples
C# in Windows Presentation Foundation (WPF)
The sample application demonstrates the C# WPF implementation of the ACS API client with the following capabilities:
User login
Listing camera devices
Playing back live and recorded Real Time Streaming Protocol (RTSP) video streams
Monitoring events
Playing back video related to a received alarm
Listing PTZ presets and tours, triggering a PTZ preset and PTZ home position, starting and stopping a PTZ tour
Taking video snapshots
Getting camera geolocation
To run the sample application:
Open the VideoSamples.sln solution in Visual Studio 2019™ or higher.
From the solution context menu, select Restore NuGet Packages.
Build the solution and start the VideoPlayback application.
Note: Valid API subscription key and ACS user credentials are required to use the sample. For more information, see link.
Postman™ Collection
The sample Postman collection demonstrates the interaction with the Cloud API.
Note: A valid API subscription key and ACS user credentials are required to run the collection.
To run the sample collection:
Import sampleCollection.json to Postman.
Click Sample ACS API Collection and go to the Variables tab.
Provide the values for these variables:
ApiKey - Your subscription key.
UserId, Password - Your ACS user credentials.
CameraName - The name of a camera that will be used in the “Initialize Live/Recorded RTSP session from the Selected Camera” request upon execution of the “List of Devices” request. The code that configures the camera to be used in the “Initialize Live/Recorded RTSP session from the Selected Camera” request is available at the “Tests” tab of the “List of Devices” request. Update the code if required to match your needs.
Run the requests in the collection, in the provided order.