/fullscreen-orientation

Set fullscreen orientation.

Primary LanguageTypeScriptMIT LicenseMIT

fullscreen-orientation

Installation

npm install fullscreen-orientation

Usage

import { fullscreen } from 'fullscreen-orientation';

// get some element
const video = document.createElement('video');

// orientation handler
const remove = fullscreen(video, 'landscape')

// no longer use, remove handler
remove();

License

MIT