Skip to main content

Fullscreen and Picture-in-Picture

While Vindral has support for running in fullscreen mode and Picture-in-Picture (PiP) mode, there are some caveats to be aware of.

The Vindral Player provides buttons and APIs to enter fullscreen mode and picture-in-picture (PiP) mode. When integrating the Vindral Web SDK, you'll need to handle the features yourself.

Picture-in-Picture

Vindral provides a Picture-in-Picture helper that you can use to query for support and toggle PiP mode programatically. If you have requirements on look and feel of the PiP window, you can use the Picture-in-Picture API directly instead. Read more about the Picture-in-Picture API and make sure to understand the limitations and requirements for using it.

One such limitation is that some Android devices, for instance, require fullscreen to be active before PiP can be activated automatically through the Picture-in-Picture API (home screen button). This is not a limitation in Vindral, but a limitation in the Picture-in-Picture API itself.

Fullscreen

The Vindral Player has buttons and methods for toggling fullscreen mode.

When integrating the Vindral WebSDK, you need to handle fullscreen mode yourself, you can use the Fullscreen API directly. Read more about the Fullscreen API and make sure to understand the limitations and requirements for using it.

Native

Have a look at the native examples for information regarding how to toggle fullscreen and PiP on native iOS/Android.