How to use a Sony Alpha or Sony RX100 series camera as a webcam (Mac and PC)

With all the talk lately about Canon releasing updates to enable their cameras to be used as webcams, I decided to venture on a science experiment. I have a Sony RX-100 IV, an absolutely amazing camera that is just sitting idle. So decided to try and figure out whats involved in getting it to work…