Skip to main content

MCP Serverside Ads

MCP is a feature complete OTT Platform owned by Akta Tech. You can dynamically insert user targeted ads in the server. MCP Serverside Ads are automatically detected and handled in Lura Player from the token in the configuration. No additional configuration is needed.

To configure ads in MCP, go to your mcp.

Create Ad Tag

Under the Monetization tab, go to Ad Tags

Press create new ad tag

Configure your add and press create

Play Configurations

After creating the ad tag, go to play configurations under the Play Services

Press Add New

After filling the Name of the play configuration, press on Show Advanced Options

Select VOD Ad-Server Host and Ad Tag that you have created earlier

After creating the play configuration, you can implement your video with the token you have created, and it will start showing ads.

For more information about MCP, go to How to add ads to the play configuration in MCP

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.eyJ2aWQiOiI0MTY3MzA3IiwiaXNzIjoieEEyQjZaTzBSdUdLekVhdE1ySWRrdlpHVUt4N0d6QTUifQ.lFFIk3pmw4IChX8mZBit5lDAN6j6ko7AvKwB6PuRtDo",
};

return (
<View>
<LuraPlayer ref={playerRef} config={config} />
</View>
);
}