RenderHeads / UnityPlugin-AVProLiveCamera

AVPro Live Camera is a Unity plugin for webcams, TV cards and capture cards

Home Page:https://renderheads.com/products/avpro-live-camera/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Randomly resolution and fps init

Filaind opened this issue · comments

We have a problem with a camera init.
So, we set a camera index and mode, invoke _liveCamera.Begin();

But, camera starting on randomly resolution and fps.

Example:
Mode 0 = 1920x1080 30fps

But camera start in 640x480 24fps.
If we invoke repeately _liveCamera.Begin(); camera can start normaly in 1920x1080 30fps.

This bug contains on different camera inputs

AVPro Live Camera - Version 2.8.0

Could you show us the code you're using to set the index and device, and how you're calling Begin()?

Thanks,

@AndrewRH

    public void SetDevice(int id)
    {
        cameraInputSettings.cameraIndex = id;
        _liveCamera._deviceSelection = AVProLiveCamera.SelectDeviceBy.Index;
        _liveCamera._desiredDeviceIndex = id;
        _liveCamera.Begin();
        MakeDropdowns();
    }

    public void SetResolution(int id)
    {
        cameraInputSettings.modeIndex = id;
        _liveCamera._modeSelection = AVProLiveCamera.SelectModeBy.Index;
        _liveCamera._desiredModeIndex = id;
        _liveCamera.Begin();
    }

Thanks....I can't see anything wrong with that code! We're investigating...

@Filaind Which webcam device is this happening with?

Could not reproduce