Video aspect-fit to native ratio, toggle with double tap/pinch #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
digiview-video-scaling-480p.mov
Resolves #5. Video will start in fullscreen by default as before. Double tap anywhere to switch to its native aspect ratio (unless your device screen and video feed happen to be the same ratio, then there will be no visual effect) with black bars on the edge, double-tap again to return to fullscreen with cropping. I've also enabled auto-animations in the layout, but they look a bit wonky on my Pixel sometimes, I guess resizing SurfaceView while it's playing causes this - any ideas how to avoid it?
Edit: now you can pinch to zoom in/out as well thanks to @omouren ❤️
Switching camera ratio while plugged in will freeze the video and require to plug the USB cable out and back in, tracked under #33.
I'm thinking about enabling full sensor rotation (#20) but disabling fullscreen mode while in portrait since it would look ridiculous, how do you guys feel about that?