set camera id device dynamically