mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-21 00:28:08 +08:00
8 lines
490 B
Markdown
8 lines
490 B
Markdown
|
# Global JS controls
|
||
|
|
||
|
A few aspects of Element Call's interface can be controlled through a global API on the `window`:
|
||
|
|
||
|
- `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.
|