<< Click to display table of contents >> TRVCamera.PlayVideoStream, PlayVideoFile |
Starts playing video.
procedure PlayVideoStream;
procedure PlayVideoFile(FileName : string);
PlayVideoStream starts playing a video from a camera or a network. A video source depends on DeviceType property.
If the video from the camera starts successfully (when the first frame is received), OnStartVideoStream event occurs. When the video stops, OnEndVideoStream event occurs.
PlayVideoFile starts playing an MJPEG file specified in the FileName parameter. If the video from the file starts successfully (when the first frame is read), OnStartVideoFile event occurs. When the video stops, OnEndVideoFile event occurs. FramePerSec property is used.
To stop a video, call Abort.
You can wait until a video finished using WaitForVideo, WaitForVideoStream, WaitForVideoFile (although, using the events is strongly recommended).