Webcam autostart
-
Suncatcher
- Posts: 79
- Joined: 5. Nov 2013, 16:10
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: BodhiLinux, Windows 7
- Location: Honolulu
Webcam autostart
Is it possible to to make webcam start automatically in guest OS? I mean without going to Devices menu and checking webcam checkbox.
Especially I'm interested in headless mode via VRDP.
Especially I'm interested in headless mode via VRDP.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Webcam autostart
Use USB filters within the VM configuration
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
Suncatcher
- Posts: 79
- Joined: 5. Nov 2013, 16:10
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: BodhiLinux, Windows 7
- Location: Honolulu
Re: Webcam autostart
But I cannot find my webcam among them. My laptop is Asus S500CAnoteirak wrote:Use USB filters within the VM configuration
How to determine which of the devices is webcam? I see one "unknown device" among them but it doesn't seem to be webcam because I tried to add it and haven't succeed.
- Attachments
-
- Untitled.png (47.69 KiB) Viewed 3161 times
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Webcam autostart
Webcam on laptop usually mean it can't be used, since they are directly locked by the host OS without a way to disconnect the webcam and get the lock on Virtualbox.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
Suncatcher
- Posts: 79
- Joined: 5. Nov 2013, 16:10
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: BodhiLinux, Windows 7
- Location: Honolulu
Re: Webcam autostart
It's sad.noteirak wrote:Webcam on laptop usually mean it can't be used, since they are directly locked by the host OS without a way to disconnect the webcam and get the lock on Virtualbox.
But on the Windows 7 guest webcam works stable if connected manually.
Or do you mean that it's impossible to autoconnect webcam on laptops?
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Webcam autostart
I mean the host OS locks the webcam, and it cannot be unplugged to release the lock. So Virtualbox can never get a lock on it, and pass it to the guest.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
Suncatcher
- Posts: 79
- Joined: 5. Nov 2013, 16:10
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: BodhiLinux, Windows 7
- Location: Honolulu
Re: Webcam autostart
But as I saynoteirak wrote:I mean the host OS locks the webcam, and it cannot be unplugged to release the lock. So Virtualbox can never get a lock on it, and pass it to the guest.
I mean my Win 7 guest is running on the same laptop.But on the Windows 7 guest webcam works stable if connected manually.
Is is a pleasent exception and undocumented feature? It shouldn't be so?
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Webcam autostart
So the list is not the same while the VM os running or powered off?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
Suncatcher
- Posts: 79
- Joined: 5. Nov 2013, 16:10
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: BodhiLinux, Windows 7
- Location: Honolulu
Re: Webcam autostart
Yes. List is not the same. If I do not connect webcam via Devices menu list will look like this:noteirak wrote:So the list is not the same while the VM os running or powered off?
If I connect it, the unknown device will transform into Azurewave USB2.0 UVC HD Webcam
Then I made some trick. I've added cam to USB filters during machine run when it recognized.
-
Suncatcher
- Posts: 79
- Joined: 5. Nov 2013, 16:10
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: BodhiLinux, Windows 7
- Location: Honolulu
Re: Webcam autostart
But trick had no sense - it haven't been connected during boot. Furthermore, if the filter is enabled it doesn't work even if connected manually.
It can be seen on screenshot - Skype tried but couldn't get picture from cam and then wrote "Cannot use. The device is busy by other program" or something similar.
But I don't give up so easy and I've made some tests.
Some cases all was wonderful: the cam was connected on boot and it worked!!!
Some cases failed: the device have been unrecognized and and have been listed as "unknown usb device".
Some cases were 50/50: the device worked (when connected via Device/Webcam) but not listed correctly (the screens were made during the same boot):
In some cases the device didn't worked and didn't listed correctly.
I can conclude that I wasn't able to achieve unambiguous behavior of the program.
It can be seen on screenshot - Skype tried but couldn't get picture from cam and then wrote "Cannot use. The device is busy by other program" or something similar.
But I don't give up so easy and I've made some tests.
Some cases all was wonderful: the cam was connected on boot and it worked!!!
Some cases failed: the device have been unrecognized and and have been listed as "unknown usb device".
Some cases were 50/50: the device worked (when connected via Device/Webcam) but not listed correctly (the screens were made during the same boot):
In some cases the device didn't worked and didn't listed correctly.
I can conclude that I wasn't able to achieve unambiguous behavior of the program.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Webcam autostart
In the Device Manager in the host, do you always see the webcam under its true name when you see it as "Unknown Device" in Virtualbox?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Webcam autostart
AFAIK, "Unknown device" simply means that the device driver doesn't supply a readable name, just a numeric ID. It doesn't imply less functionality.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Webcam autostart
Indeed, but from the OP screenshots, it is not always named "Unknown Device", so I suspect the issue being on the host.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Webcam autostart
Or the two menus use two different methods for obtaining the device name. 
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Webcam autostart
That would be nasty then, and bug-prone. But AFAIK they both use the same method, being only one in the API.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!