As you all may know that, there’s no way to use YouTube picture-in-picture mode on both Android and iOS devices. Apple launched the long-awaited picture-in-picture mode on iPhones with iOS 14. Users will also reduce videos and play them in a floating window thanks to the new ability to play them in the PiP. However, some users have reported that the Picture in Picture feature on their iPhone does not fit with YouTube. So, in this guide, you’ll learn the easiest way to YouTube PiP shortcut for iPhone Safari on iOS 14.
A YouTube Premium membership unlocks a slew of extra features. Context play is one of the features used. It essentially encourages you to play the video in the background while doing something else on your mobile. Although this is great for music, you’ll need something called ‘Picture-in-Picture’ mode if you’re watching a movie.
With the newest iOS 14 update, Apple added the PiP option to iPhones. Although the feature is available for video calls on WhatsApp and Facetime, it is not yet available for video streaming on the YouTube app. There is, though, a solution for this.
Create YouTube PiP Shortcut for iPhone Safari on iOS 14
The same code can also be included in an iOS Shortcut that can be picked from Safari’s Activity view (formerly known as the Share Sheet) if you want to watch a YouTube-hosted video in Picture in Picture, according to CodeEverywhere.
Here’s how to create YouTube PiP shortcut for iPhone:
Step 1. Open the Shortcuts app on your iPhone and tap the “+” icon at the top right-hand corner.
Step 2. Tap Add Action.
Step 3. Select Web.
Step 5. Tap the blue words Web Page, then select Shortcut Input in the pop-up menu.
let v = document.querySelector(‘video’);
v.addEventListener(‘webkitpresentationmodechanged’, (e)=>e.stopPropagation(), true);Log Out
Step 7. Type the shortcut name and tap Done.
Step 8. Tap the three dots icon in the top-right corner of the screen and also on the next page.
Step 9. Turn on Show in Share Sheet.
Step 10. Tap Share Sheet Types, then select Deselect All and tap Safari web pages.
Step 11. Return to the Details screen, then tap Done twice.
How to Use the Picture-in-Picture for YouTube Safari on iPhone
- Open the Safari web browser and go to YouTube’s mobile website.
- Play any YouTube video you want and then tap the share icon.
- Select the YouTube PiP shortcut that we created before. tap Allow.
- Finally, enjoy the PiP mode on your iPhone on iOS 14.
The YouTube video will begin playing in a floating picture-in-picture mode on iOS 14 until you touch it. You can also adjust the video replay speed and resolution in the mini-player from here.
To proceed with PiP mode, instead of pressing close, press the Home button or swipe up to the iPhone home screen. You can move the mini-player window around, use seek shortcuts, and play and pause the video as you normally would.
This is how you can easily create a YouTube PiP shortcut (picture-in-picture) for iPhone Safari.
Read More from IntoPut: