Playing YouTube videos in picture-in-picture mode on iPhone is something that I have always wanted. That’s why I was so ecstatic, when with iOS 14, Safari could play YouTube videos in the PiP mode. However, just a few days back the YouTube removed this functionality as it wants the PiP mode to remain an attractive feature of the premium plan. But don’t be disheartened as there is a hack to get the YouTube picture-in-picture mode working in iOS 14 Safari on iPhone and iPad.

Get Picture-in-Picture Mode Working in YouTube Safari on iOS 14

So, what are the requirements to force YouTube PiP mode to work in Apple Safari? Well, you have to create a custom shortcut using the Shortcuts app. Once you have created and customized the YouTube PiP mode shortcut on your iOS device, it’s business as usual.

Now that, you have got the sneak peek into how this hack works, it’s time to get going with quick steps!

Create YouTube PiP Mode Shortcut Using Shortcuts App

1. First off, open Shortcuts app on your iPhone or iPad and tap on the “+” button at the top right corner of the screen.

Tap on the plus button

2. Now, tap on the Add Action button.

tap on the action button

3. Next, choose Web.

Tap on Web option

4. Next, select “Run JavaScript on Web Page” under Safari section.

Tap on Run JavaScript on web page

5. Tap on Web Page option which is right next to Run JavaScript and choose Shortcut Input in the menu.

Select Shortcut input

6. Up next, remove the JavaScript that shows up in the shortcut window. Then, paste the one given below. After that, tap on the three dots at the top right corner of the screen.

let v = document.querySelector(‘video’); v.addEventListener(‘webkitpresentationmodechanged’, (e)=>e.stopPropagation(), true); setTimeout(()=>v.webkitSetPresentationMode(‘picture-in-picture’), 3000); completion()

Paste the javascript

7. Give a suitable name to your shortcut.

name your shortcut

8. Next, turn on the switch for “Show in Share Sheet” and then tap on “Share Sheet Types”.

Turn on Show in Share Sheet

9. Next up, tap on Deselect All at the top right corner of the screen and choose Safari web pages.

Select Safari web pages in Shortcuts

10. Tap on the back button at the top left corner of the screen and then hit the Done button. You will need to tap on Done again to finish.

Make sure to tap on Done to finish

Play YouTube Video in Picture-in-Picture Mode Using Safari

After you have created the YouTube PiP mode shortcut, playing videos in the PiP mode via Safari is quite simple.

  1. Open Safari on your iOS device and then head over to the video you wish to play. After that, play the video as usual and then hit the share button.

Tap on Share button

2. Now, choose YouTube PiP shortcut which you have just created in the action sheet.

Choose YouTube PiP mode shortcut

Note:

  • A popup may appear asking you to give YouTube PiP access to youtube.com. Tap on Allow to proceed. 

Playing YouTube in PiP mode via Safari

That’s pretty much it! Now, it’s time to relish the video while still carrying out other tasks like messaging or taking note.

Enjoy Playing YouTube Videos in PiP Mode Via Safari on Your iPhone or iPad

So, that’s how you can force YouTube PiP mode to work in iOS 14 Safari. Though I am still hoping for an official way to arrive sooner than later, I am glad to have such a handy workaround as long as it works.

What’s your take on this tip? Has it worked on your device? Feel free to share your thoughts in the comments below.

By the way, how smooth has been your run with iOS 14? If you are yet to get the most out of it, then check out our guides for customizing iOS 14 widgets, creating unique app icons, and making custom home screen widgets.

5 COMMENTS

  1. Get Best Pest Control Services In Hyderabad Pest Control Hyderabad Is one of The Top Pest Control Company In Hyderabad
    We Give Termite Control Services In Hyderabad, Cockroach Control Services In Hyderabad,Residential Pest Control Services In Hyderabad etc Call 9703008881

  2. So by doing this shortcut, i will be giving away sensitive information like passwords, phone numbers and credit card information?

    Who will be receiving this information?

  3. So by doing this shortcut, will i giving away my sensitive information like passwords and credit card information?

  4. “youtube pip” shortcut didnt have on my screen when i want to share the video. why? is it because my device is not up to date? my device is SE 2016 version.

LEAVE A REPLY