Class: shaka.polyfill.Orientation

A polyfill for systems that do not implement screen.orientation. For now, this only handles systems that implement the deprecated window.orientation feature... e.g. iPad.

Constructor

new Orientation()

A polyfill for systems that do not implement screen.orientation. For now, this only handles systems that implement the deprecated window.orientation feature... e.g. iPad.

Source:

Methods

install()

Install the polyfill if needed.
Source:

installBasedOnScreenMethods_()

Modifies screen.orientation to add no-ops for missing methods. Meant for cases where screen.orientation is defined, but has missing methods that cannot be properly polyfilled.
Source:

installBasedOnWindowMethods_()

Makes a polyfill for orientation, based on window methods. Note that some of the features this is based on are deprecated, so this will not necessarily work on all platforms.
Source: