CONNECT Player SDK 5 for Browsers and Connected TV
5.28.x 5.27.x 5.26.x 5.25.x 5.24.x 5.23.x 5.22.x 5.21.x 5.20.x 5.19.x 5.18.x 5.17.x 5.16.x 5.15.x 5.14.x 5.13.x 5.12.x 5.11.x 5.10.x 5.9.x 5.7.x 5.6.x 5.5.x 5.4.x 5.3.x 5.2.x
5.28.x 5.27.x 5.26.x 5.25.x 5.24.x 5.23.x 5.22.x 5.21.x 5.20.x 5.19.x 5.18.x 5.17.x 5.16.x 5.15.x 5.14.x 5.13.x 5.12.x 5.11.x 5.10.x 5.9.x 5.7.x 5.6.x 5.5.x 5.4.x 5.3.x 5.2.x

PiP: Picture-in-page / Picture-in-Picture

Picture-in-Page

To test this feature and view the example code, please see the Browsers and Connected TV SDK 5 Example Code Quick Start guide. This feature is not supported by the Reduced Size SDK.

Picture-in-page mode moves the player to a fixed position in the bottom right corner of the page.

This feature should not be confused with full picture-in-picture where the video pane can float separately away from its parent browser window - see below.

Once the feature is enabled, you can initiate it using the corresponding button on the control bar. Alternatively, (by default) it is initiated automatically when 50% of the player is scrolled vertically out of the viewport. This feature is disabled by default; use the following code to enable automatic scroll-based initiation.

JavaScript
playerInstance.otvtoolkit().enablePiP();


Picture-in-Picture

A browsers native Picture-in-Picture functionality can be enabled in deployments where QuickMark forensic watermarking is not enabled.

JavaScript
playerInstance.requestPictureInPicture();

The browser enforces that the initiation of this function has come from a user gesture, e.g. mouse click of a UI element.

Browser/Streaming differences

Behaviour

Safari / HLS

DASH

Subtitles

Native subtitles rendered in the child PiP window.

Subtitles remain rendered in the original parent video pane.

Position

Restricted by MacOS to be in one of the 4 corners of the screen.

Freely movable.

Controls

Browser renders native controls in child PiP window.

Browser renders native controls in child PiP window.