Created
          May 1, 2020 11:53 
        
      - 
      
 - 
        
Save alexbilbie/389591777edc21918923d7247b3ec86d to your computer and use it in GitHub Desktop.  
    Picture in picture
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function startPiP() { | |
| var videos = document.getElementsByTagName('video'); | |
| for(vid in videos) { | |
| if(videos[vid].src) videos[vid].webkitSetPresentationMode("picture-in-picture"); | |
| } | |
| } | |
| startPiP(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment