Closed BasilDavid closed 5 months ago
Hey @BasilDavid , thanks for the excellently detailed issue. I think this is a great feature request, though I think how I'd prefer solving is a bit different.
I think it would be better for the VideoKitRecorder
input to allow users to set the input to be used. That way instead of us adding the LateScreenInput
, you can attach any arbitrary input you'd like. I have to figure out a clean API to do this, but I'll run it by you.
I'd like to get this into the next update.
Hey @olokobayusuf , Thank you for your quick response. I appreciate your willingness to consider my request.
I agree that allowing users to specify the input source for VideoKitRecorder
is a great idea, providing more flexibility. I look forward to seeing the clean API you'll create for this feature.
If you need any feedback or assistance, please feel free to reach out. I'm ready to help.
@BasilDavid following up on this old thread, but this was implemented a while ago in the upcoming VideoKit update (0.0.18 alpha):
MediaRecorder recorder = ...
ScreenSource source = new ScreenSource(recorder, useLateUpdate: true);
Issue: I have been using the NatCorder library in combination with the Google Cardboard XR Plugin to capture VR footages. However, I encountered an issue where the screen recorder was capturing single-view footages instead of capturing the VR black mask as desired.
Proposed Enhancement: I have implemented a new class,
LateScreenInput
, that captures frames using LateUpdate, allowing me to capture the VR black mask successfully. This addition provides users with more flexibility when recording VR content, as it captures the VR mask, while theScreenInput
can still capture non-VR views. I believe this enhancement could be valuable for users who need to capture VR content with the Cardboard XR Plugin.Code Changes: I've made the following changes in the
LateScreenInput
class:Code Comparison: Below is a comparison of the original
ScreenInput
class and my modifiedLateScreenInput
class.Original
ScreenInput
class:Modified
LateScreenInput
class:How to Use: To use the
LateScreenInput
class for capturing VR content with the Cardboard XR Plugin, follow these steps:LateScreenInput
object, passing your media recorder and desired resolution as parameters. Additionally, make sure to create aRealtimeClock
for timestamp generation.Example Usage:
Additional Information:
Expected Behavior:
With this enhancement, users should be able to capture VR footages that include the VR black mask when using the Cardboard XR Plugin, in addition to the existing non-VR view capture functionality.