Picture-in-picture

Picture-in-Picture mode moves the player to a fixed position in the bottom right corner of the page. Once the feature is enabled, it can be initiated by the corresponding button on the control bar or, by default, it is automatically initiated when 50% of the player is vertically scrolled out of the viewport.

By default, this feature is disabled. The following code can be used to enable the automatic scroll-based initiation:

playerInstance.otvtoolkit().enablePiP();