Handling a failover scenario using Kinects
One of the very useful scenarios where you can use multiple Kinects is failover. Failover is used to make the system more fault-tolerant by providing automatic switching to a redundant or standby system. Here, we can consider Kinect as a system, if you are building one Kinect application that needs to be run constantly to capture data. It could happen, that one system fails (gets disconnected, power turns off) and your application fails to capture data. In such a situation, you can start the other connected sensor automatically to capture data and turn it off once the first device starts again.
You can easily build this scenario with the knowledge you have gained in this chapter. The
StatusChanged
event handler is the key here. You can monitor sensor status and once it's getting disconnected or powered off, start the other connected sensor.
The following screenshot shows a failover application built using Kinect sensors, where the primary sensor...