David Kimura PRO said about 3 years ago on Record Audio to Active Storage :
  You would likely need to make most of your changes in the recorder function and also change the stream function to allow video. This episode may help with getting the camera to show. You would just want to ignore the bits about the streaming server as you wouldn't be transmitting the video feed.

https://www.driftingruby.com/episodes/video-chat-with-webrtc