class SupportUtilities
package com.turner.top.sdk.common.support
General video utilities class that detects certain browser features useful for video playback. Every function returns a promise which resolves to the requested value.
See:
Static methods
staticautoPlay (?options:AutoPlayOptions, ?overrideCache:Bool):Promise<Bool>
Detects if autoplay is available for the current browser / device. Note that this does not detect whether muted autoplay is supported, which is allowed for Chrome (Desktop/Mobile), Safari, and iOS.
Parameters:
options | An optional object containing key value pairs for muted, timeout, and video element |
|---|---|
overrideCache | Enables bypassing current cache in case new options are provided |
Returns:
Promise<Bool>
staticmse ():Promise<Bool>
Detects if Media Source Extensions are available for the current browser / device.
Returns:
Promise<Bool>