Title Configuration
The title of a video is one of the most important elements for attracting and retaining viewers, as it often serves as the first impression for potential viewers. In technical terms, the video title is a metadata field that is used to identify and describe the content of a video. It is a crucial component of video SEO and can greatly impact the discoverability and viewership of a video.
To configure the Title of the video in Lura Player, you can use the following configuration.
Attribute | Type | Description |
---|---|---|
title | string | Title of the content. (not necessary for token flow) |
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",
title: "Title of the video",
};
return (
<View>
<LuraPlayer ref={playerRef} config={config} />
</View>
);
}