From d6635b7818a0804fc8cf85d77c5de0c737c5eaf2 Mon Sep 17 00:00:00 2001 From: Timo K Date: Mon, 1 Jun 2026 16:13:03 +0200 Subject: [PATCH] add docs --- docs/controls.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/controls.md b/docs/controls.md index b97fe795d..7a2a1d96c 100644 --- a/docs/controls.md +++ b/docs/controls.md @@ -7,6 +7,9 @@ A few aspects of Element Call's interface can be controlled through a global API - `controls.canEnterPip(): boolean` Determines whether it's possible to enter picture-in-picture mode. - `controls.enablePip(): void` Puts the call interface into picture-in-picture mode. Throws if not in a call. - `controls.disablePip(): void` Takes the call interface out of picture-in-picture mode, restoring it to its natural display mode. Throws if not in a call. +- `controls.onPipMediaOrientationUpdate: ((orientation: "landscape"|"portrait") => void) | undefined` Callback called whenever the PiP media orientation changes. + The client should track this value to already initiate the pip in the right orientation. + It should update the orientation of the current Pip window when called. ## Audio devices