All live streams can be configured through user interaction by calling IltmsLiveStreamDevConfig::ShowDialog. Unfortunately, IltmsLiveStreamDevConfig::ShowDialog does not allow live stream devices to be set up programmatically. The streaming toolkit does, however, support the URL used by the capture device to be specified directly. Specifying the URL allows simple configurations of RTSP, ONVIF, and UDP live streams to be implemented. Perform the following steps to set up a simple URL-based stream:
1. |
Get the list of current live sources in the server by calling IltmsServer::GetLiveStreams. |
2. |
Create a new live stream through IltmsLiveStreams::CreateLiveStream. |
3. |
Set the server URL to access the stream via IltmsLiveStream::put_Path. |
4. | Get the video devices through IltmsLiveStream::get_VideoDevices. |
5. | Search for the device index by calling IltmsDevices::Find with the following names: For RTSP use "@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}{E2B7DE48-38C5-11D5-91F6-00104BDB8FF9}"For ONVIF use "@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}{5CEF7131-CD23-447D-BFAF-EDF99CF03F53}" For UDP use "@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}{E2B7DF17-38C5-11D5-91F6-00104BDB8FF9}" |
6. | Select the device by calling IltmsDevices::put_Selection with the index returned in the previous step. |
7. | Call IltmsLiveStream::put_VideoDeviceURL to configure the device's URL. |
8. | (Optional) Set additional properties such as the audio type, video size, video frame rate, or whether to use hardware compression. For more information, see IltmsLiveStream. |
9. | Add the new configuration to the existing list of streams through IltmsLiveStreams::AddLiveStream. |
10. | Update the server configuration with the list of live streams by calling IltmsServer::SetLiveStreams. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.