I need to record video+sound together and save the result to a file, and I would like to be able to play the file back as well. I have yet to find a solution which makes this easy. Actually, I have yet to see a complete solution at all. With GSVideo, I was able to record the video and audio separately. Then I could play them back separately as well, but then there were synchronization issues, such as the video playing back faster than the audio. Also, there were buffering issues while recording, even at 15 FPS---this should not be the case, I have a fairly new laptop.
So:
How can I record video and sound in a single file?
When I run this (Sketch->Run or Sketch-Present), the resulting "fullscreen" is not actually fullscreen. There is black space where the top menu bar normally is (this area is not accessible to the cursor) and black space where the MacOS docker normally is (this space is accessible to the cursor). How can I get the full area of the screen to be used?
If I export the above code into an executable and select "Full Screen (present mode)", the same thing happens. Initially, I see a gray area which covers the full screen, but once the program initializes, it no longer covers the entire screen.
I have also tried commenting out line 8. When I do this, the entire screen is covered in Sketch->Present mode and also when exporting in "Full Screen (present mode)". The only downside to this view is that if the cursor moves too far down the screen, the MacOS docker pops up---this did not happen when using the fullscreen API. Since I'm trying to use this processing app as part of a "kiosk", I need as minimal "distractions" as possible.
Can I get the best of both worlds? A fullscreen which uses the entire fullscreen, but one which does not allow the MacOS docker to pop up when the cursor moves too far down.