I think you want to try removing all the capture list stuff and just use -
cam = new Capture(this, "pipeline:autovideosrc");
I think you want to try removing all the capture list stuff and just use -
cam = new Capture(this, "pipeline:autovideosrc");