Changing RVCamView source while streaming
Posted: Sat Aug 26, 2017 2:29 pm
I am trying to use a RVCamView in the configuration window of my system so the user can preview the image of each camera while selecting one
The problem is:
If I change the camera with the Mostrar Imagem checkbox checked, the stream stops and don´t restart.
If I uncheck the checkbox, change the camera and check the checkbox the stream start.
I believe is a timing problem and I would prefer not to force the user stop the preview streaming before change the camera.
Is there a solution for this behavior ?
obs. The extra parameter in the CamListLoader.Select prevents the procedure to execute RunCamera if it is false.
The OnChange event of the Camera dropbox contain
and the checkbox OnClick event contains
The problem is:
If I change the camera with the Mostrar Imagem checkbox checked, the stream stops and don´t restart.
If I uncheck the checkbox, change the camera and check the checkbox the stream start.
I believe is a timing problem and I would prefer not to force the user stop the preview streaming before change the camera.
Is there a solution for this behavior ?
obs. The extra parameter in the CamListLoader.Select prevents the procedure to execute RunCamera if it is false.
The OnChange event of the Camera dropbox contain
Code: Select all
if ckMostraImagem.Checked then begin
RVCamera.Abort;
RVCamera.WaitForVideo
end;
CamListLoader.Select(cmbCameras.ItemIndex, RVCamera,False);
if ckMostraImagem.Checked then begin
RVCamera.PlayVideoStream;
end;
Code: Select all
if ckMostraImagem.Checked then begin
RVCamera.PlayVideoStream;
end
else begin
RVCamera.Abort;
RVCamera.WaitForVideo
end