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:
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 UDP use "@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}{E2B7DF17-38C5-11D5-91F6-00104BDB8FF9}"
Select the device by calling IltmsDevices::put_Selection with the index returned in the previous step.