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