title: Resize/Scaling down a YouTubePlayerFragment while video is playing
body: <p>I am trying to replicate the video minimization in the Youtube app as shown <a href="https://imgur.com/a/Lqxz0" rel="nofollow">here</a>. In order to achieve this, I've tried using the <a href="https://github.com/pedrovgs/DraggablePanel" rel="nofollow">Draggable Panel</a> library. When I ran the sample, I noticed that the video does not scale but rather crops when minimized during playback. When the video is stopped (not paused) and displaying a thumbnail, the view scales as its supposed to. I read on another question that YouTubePlayerView is implemented with a SurfaceView. I also read in the docs that SurfaceView behaves differently from a normal view because of how it punches a hole in the screen. I believe because YoutubePlayerView is based off of SurfaceView ,it's not scaling properly. How do I scale the video playing within a YoutubePlayerView properly to match the size of its parent layout during playback?</p>