Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
i want to call a function when a camera or any device is removed from computer.
I think it's OS depending issue.
But in cross platform then how we will deal with this?
You should implement detection part with native API's for different systems (like udev for Linux).