Welcome to Gaia! :: View User's Journal | Gaia Journals

 
 

View User's Journal

eiscash's Blog
iOS Picture in Picture Not Working Youtube Safari Browser?
If you were like me all excited for picture in picture mode on the iphone and then YouTube went ahead and blocked it here is the work around for you using shortcuts on IOS 14.


1. Launch the Shortcuts app on your ‌iPhone‌ and click the plus (+) icon in the top-right corner of the screen.

2. Tap Add Action.

3. Select Web.

4. Under "Safari," select Run JavaScript on Web Page.

5. Where it says "Run JavaScript on" tap the blue words Web Page, then select Shortcut Input in the pop-up menu.

6. Remove the existing JavaScript code in the shortcut window and paste in the following code:

let v = document.querySelector('video');
v.addEventListener('webkitpresentationmodechanged', (e)=>e.stopPropagation(), true);

setTimeout(()=>v.webkitSetPresentationMode('picture-in-picture'), 3000);

completion()

7.Tap the three dots icon in the top-right corner of the screen.

8. Give your shortcut a name, e.g. "Picture in Picture," then toggle the switch next to Show in Share Sheet to the green ON position.

9. Tap Share Sheet Types, then select Deselect All and tap Safari web pages.

10. Return to the Details screen, then tap Done.

11. Tap Done to finish.

When are ready select the Shortcut in Safari via the Action/Share icon when you want to use Picture in Picture on YouTube's mobile website. biggrin





 
 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum