# YouTube PiP | Shortcuts Library

> Bring any YouTube video into PiP directly from YouTube app or Safari

## What this shortcut does

Open YouTube video directly in picture-in-picture from the YouTube app or Safari
Support for 720p and 360p
Control playback speed
Quickly jump forward or backward in video
Play live videos
Light and dark theme support
How to use
Install the Shortcut
Install Scriptable AppStore
Open a YouTube video in the YouTube app.
Press the share button and select “More”
Run the Shortcut by selecting “YouTube PiP” on the list
(protip: add it as a favorite in the share sheet to move it to the top of the list)
Requirements
To install 3rd party Shortcuts you enable “Allow untrusted Shortcuts” in iOS Settings -> Shortcuts
The Shortcut is build using Scriptable and this app must be installed. It’s a free app with a tip jar.
Works on any device running iOS14 or iPadOS13 or newer.
Advanced
For advanced users its possible to tweak the Shortcut a bit using the configuration at the top of the Shortcut.
pip: If true Picture-in-Picture will automatically be enabled after the video has loaded. Set to false to keep the video in the player window.
speed: The default selected playback speed. Valid values are 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75 and 2.0
hd: The preselected quality. If true the highest quality available will be selected (currently 720p)
completion: Optional parameter. The name of a Shortcut that will be executed just after PiP has been automatically enabled. This is useful for running a Shortcut that will show the SpringBoard such as https://www.icloud.com/shortcuts/e1b2044fb3eb4134880954bad71681df
theme: The theme to use it in player. Empty value will automatically select theme based on system appearance. Valid values are: nord, polar and ocean-next
Thanks to
@Saha_
for the Shortcut update steps.

## Compatibility

iPhone, iPad

## Required apps

Scriptable

[View this page](https://shortcutlibrary.app/shortcuts/youtube-pip)

[Download Shortcuts Library on the App Store](https://apps.apple.com/app/id6759494377)
