So the youtube app on android at the moment, has a drag action ... If you touch an drag a video while it's playing, the video shrinks and puts itself into the bottom right corner.
I tried to implement this with a SimpleExoPlayerView, which is a frame layout that contains a surface view to render the video on. However the animations aren't in sync with the frame rate of the video, and therefore when scaling the SimpleExoPlayerView, I end up with a terrible animation. It scales up, however, the parts that are scaled that haven't had a redraw from the surfaceview and video frame, are just black. Which makes sense.
I have read that surface view is not meant for transformations, and a texture view should be used instead. However I am coding for Android TV and therefore cannot afford to drop the frame rate or have latency as the texture view is known to have.
So my question is how the in the world did the youtube app accomplish this.
Yes they have their own YoutubePlayerView .. but this must be an extension of a surface view, if not a glsurfaceview.
Any ideas on how to get my animation to work smoothly with the surface view ???
Ps this happens for all transformations .. even animating x, y coords as a translation.