Example 2: playing a camera video (no wait mode)
|Top Previous Next|
This example shows how to play a video from an IP camera in a "no wait" mode: operations are performed in background threads, without waiting. When an operation is finished, an event is called. This is a recommended mode, you can provide a visual feedback while waiting, and the user can interrupt a long operation.
3. Assign RVCamera1's properties: the camera address and the user name and password. For example:
•CameraHost = 'novatron.dyndns.tv',
•CameraPort = 8888
4. Assign RVCamera.CommandMode = rvsmNoWait.
5. Add in TForm1.FormCreate:
6. Create the event handler for RVCamera1.OnSearchComplete event:
procedure Form1.RVCamera1SearchComplete(Sender: TObject; Status: Integer);
if Status = 0 then