StartPreview or StartRecording from video clips or URLs
Previewing or recording video clips
To preview or record a video clip (or a streaming URL) by invoking StartPreview or StartRecording, proceed as follows:
- Set VideoSource = vs_VideoFileOrURL.
- Set VideoSource_FileOrURL = "http://.....YourStreamingUrl..." (or "mms://...yourStreamingUrl....").
- Optionally, invoke SetAuthentication (at_StreamingUrl, "...username...", "...password...").
- Invoke StartPreview or StartRecording.
To hear the audio of the clip or URL during preview or recording, set AudioDeviceRendering = true before invoking StartPreview or StartRecording (default value: false, no audio rendered). To record it, set AudioRecording = true.
Authentication
If authentication is required to connect to a streaming URL, there are 2 ways to set the required username and password:
- either invoke SetAuthentication (at_StreamingUrl, "...username...", "...password...") before invoking StartPreview or StartRecording,
- or use the OnAuthenticationNeeded event, which occurs when connecting if SetAuthentication has not been invoked yet.