title: Is it possible to use Picture in Picture (PIP) mode with Custom Tabs?
body: <p>When opening a YouTube link in an activity with a <code>WebView</code> I don't get <code>Chromecast</code> and full screen icons. To get those, I seem to have to open the YouTube link in a Custom Tab and that works fine but then <strong>I'm unable to enter PIP mode</strong> since I cannot override <code>onBackPressed()</code> like when I host my own <code>WebView</code> with the YouTube video. </p>
  
  <p>Is it possible to open a YouTube video inside an Android app with fullscreen button, <code>Chromecast</code> button and then enter PIP mode when pressing back? </p>
  
  <p>To me it doesn't look that way and the Android YouTube API seems very outdated so didn't even look at that one: <a href="https://developers.google.com/youtube/android/player/" rel="nofollow noreferrer">https://developers.google.com/youtube/android/player/</a></p>