Plugin Configuration
Lura Plugins are seamlessly integrated tools developed or managed by Lura Player developers to effortlessly add functionality, such as advertisements and analytics, to Lura Player. These plugins are made to simplify the commonly used measuring and monetization tools in the industry into Lura Player.
To add Plugins, you can use the following configuration.
Attribute | Type | Description |
---|---|---|
plugins | PLUGIN_NAME : PLUGIN_CONFIG_OBJ | Lura Player Plugins |
import React, { useRef } from "react";
import { LuraPlayer, LuraPlayerProps } from "lura-react-native-core";
export default function MySampleComponent() {
const playerRef = useRef<LuraPlayer>(null);
const config = {
token:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2aWQiOiI0MzY2NjIzIiwiaXNzIjoiM1FMWjdaV0JsRko1Vk16Y2pyczJPbTd3VTdEanIzNFkifQ.CruM1W3gIEyQTBTqfaY5gTdf7b_2SSNg4gj6JGOj4Mg",
plugins: {
...
PLUGIN_CONFIG_NAME: {
...
PLUGIN_PARAM : VALUE
...
}
...
},
};
return (
<View>
<LuraPlayer ref={playerRef} config={config} />
</View>
);
}