bitmovin-player-react-native
Advanced tools
Comparing version 0.29.0 to 0.30.0
{ | ||
"name": "bitmovin-player-react-native", | ||
"version": "0.29.0", | ||
"version": "0.30.0", | ||
"description": "Official React Native bindings for Bitmovin's mobile Player SDKs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -46,2 +46,55 @@ import { PictureInPictureConfig } from './pictureInPictureConfig'; | ||
playbackSpeedSelectionEnabled?: boolean; | ||
/** | ||
* The UI variant to use for the Bitmovin Player Web UI. | ||
* | ||
* Default is {@link SmallScreenUi} | ||
*/ | ||
variant?: Variant; | ||
/** | ||
* Whether the WebView should be focused on initialization. | ||
* | ||
* By default this is enabled only for the TV UI variant, as it's needed there to | ||
* initiate spatial navigation using the remote control. | ||
* | ||
* @platform Android | ||
*/ | ||
focusUiOnInitialization?: boolean; | ||
} | ||
export abstract class Variant { | ||
/** | ||
* Specifies the function name that will be used to initialize the `UIManager` | ||
* for the Bitmovin Player Web UI. | ||
* | ||
* The function is called on the `window` object with the `Player` as the first argument and | ||
* the `UIConfig` as the second argument. | ||
* | ||
* Example: | ||
* When you added a new function or want to use a different function of our `UIFactory`, | ||
* you can specify the full qualifier name including namespaces. | ||
* e.g. `bitmovin.playerui.UIFactory.buildDefaultSmallScreenUI` for the SmallScreenUi. | ||
* @see UIFactory https://github.com/bitmovin/bitmovin-player-ui/blob/develop/src/ts/uifactory.ts#L60 | ||
* | ||
* Notes: | ||
* - It's not necessary to use our `UIFactory`. Any static function can be specified. | ||
*/ | ||
constructor(public readonly uiManagerFactoryFunction: string) {} | ||
} | ||
export class SmallScreenUi extends Variant { | ||
constructor() { | ||
super('bitmovin.playerui.UIFactory.buildDefaultSmallScreenUI'); | ||
} | ||
} | ||
export class TvUi extends Variant { | ||
constructor() { | ||
super('bitmovin.playerui.UIFactory.buildDefaultTvUI'); | ||
} | ||
} | ||
export class CustomUi extends Variant { | ||
constructor(uiManagerFactoryFunction: string) { | ||
super(uiManagerFactoryFunction); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
932515
12642