npm install fullscreen-orientation
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();
import { fullscreen } from 'fullscreen-orientation';
// orientation handler
const remove = fullscreen('landscape');
// no longer use, remove handler
remove();