WebCam switching from Front To Back

Hello
Thanks for the tip, but I've done that before. But always had a problem.

I solved it as follows, not pretty but works!

       ---> by a WebCamChange

        WebCamera.Stop;
        WebCamera.ReInitializeDevices;

        ---> after  is WebCameraCameraDevicesInitialized event

        if camState = Front then
            WebCamera.CameraType := ctFront;
        else
            WebCamera.CameraType := ctRear;

        WebCamera.Start;

regards
Klaus