StartPreview or StartRecording from video clips or URLs
Previewing or recording video clips
It is possible to preview or record a video clip (or a streaming URL) by invoking StartPreview or StartRecording as follows:
-
set VideoSource = vs_VideoFileOrURL
-
set VideoSource_FileOrUrl = "http://.....YourStreamingUrl..." or ("mms://...yourStreamingUrl....")
-
(optionally) invoke SetAuthentication (ap_StreamingUrl, "...username...", "...password...")
-
then invoke StartPreview or StartRecording
Authentication
If an authentication is required to connecto a streaming url, there are 2 ways to set an username and password required:
-
either by invoking SetAuthentication (at_StreamingUrl, "...username...", "...password..." ) before invoking OpenPlayer,
-
either through the OnAuthenticationNeeded event that will occur when connecting if SetAuthentication has not been invoked yet.