Adds a picture in picture button to the header of Discord's media viewer for every video: attachments, video links and embeds, and web players such as YouTube.
Tap it and the video moves into the system's floating window, so it keeps playing when you leave Discord. Tap it again, or use the window's own close button, to bring it back.
The video carries on from where it was, keeps playing while Discord is in the background, and the window's own play and pause buttons are respected.
On iOS the window is the system's picture in picture player, with its own play, pause and close buttons.
On Android the floating window shows just the video, without the media viewer's controls. Expanding it returns to the media viewer at the point the window reached.
If the system refuses to open the window, a toast tells you so.
A port of Vencord's PictureInPicture.
Differences from Vencord
Discord mobile plays videos in the media viewer, so the button lives in the media viewer's header instead of on the video in chat.
Links Discord shows without a playable embed, such as Instagram reels, have no video to put in the window.