ReferenceFeatures
Orientation lock
Screen orientation locking while fullscreen is active
Locks screen orientation while fullscreen is active.
Import
No packaged feature bundle includes this feature — add it to your createPlayer features yourself.
API Reference
Configuration
Props the Player component accepts. They exist only while this feature is selected.
State
Actions
Usage
Selecting the feature adds it to the player.
Orientation type
The feature locks to landscape unless the provider sets another Screen Orientation API type. The value can change while the player is running; if the screen is already locked, it re-locks to the new type.
Clearing the value restores landscape.
Selector
Pass selectOrientationLock to usePlayer to subscribe to the lock state. Returns undefined if the orientation lock feature is not configured.
Unsupported browsers and rejected lock requests are ignored.