DronePan
DronePan copied to clipboard
Fill video preview screen
Testing of this with osmo on phone - it fills the video view as best it can (without clipping) - but for others it seems not to.
I suddenly had a thought - I wonder if the cases where it doesn't fill the screen are when the video feed is at a lower total size than the pixel count on screen?
So - it scales/fills for iPhone - but not on a nice big iPad - there it shows what it thinks is "100%" ?
Need to test.
Comment from a DJI issue:
The stream size is 720p. That's the upper bound for our products currently.
Might be worth updating to the latest https://github.com/dji-sdk/Mobile-SDK-iOS/tree/master/Sample%20Code/VideoPreviewer/VideoPreviewer too
As far as I can tell - our code does fill the view with the video stream. But - in some cases (non 16x9 or something) - the video stream comes with built in letterboxing on the sides.
Not a lot we can do to fix that :(