<< Click to display table of contents >> Example 1: playing a camera video (wait mode) |
This example shows how to play a video from an IP camera in a "wait" mode: the component waits for each operation to complete. This mode is simpler but it is not recommended: an application freezes while waiting.
1. Place RVCamera1:TRVCamera and RVCamView1:TRVCamView on the form. Assign RVCamView.VideoSource = RVCamera1.
2. If you need a separate component for controlling the camera movement, place RVCamControl1: TRVCamControl on the form. Assign RVCamera1.CameraControl = RVCamControl.
3. Assign RVCamera1's properties: the camera address and the user name and password. For example:
•CameraHost = 'novatron.dyndns.tv',
•CameraPort = 8888
•UserName= 'demo15'
•UserPassword= 'demo15'
4. Assign RVCamera.CommandMode = rvsmWait.
5. Add in TForm1.FormCreate:
if RVCamera1.SearchCamera then
RVCamera1.PlayVideoStream;