Sharing Configuration
The Lura Player UI can display in-video sharing actions through the Controls.Sharing configuration. Use it to define the link, description, poster image, and social platforms exposed by the sharing UI.
| Attribute | Type | Description |
|---|---|---|
| Url | string | URL to create the sharing link. |
| Description | string | Description for social sharing. |
| PosterUrl | string | Poster URL for social sharing. |
| Socials | List<string> | Social sharing platforms to enable. |
Sharing Example
var config = new Configuration
{
Controls = new ControlsConfiguration
{
Sharing = new ControlsSharingConfiguration
{
Url = "https://example.com/watch/asset-id",
Description = "Example video description",
PosterUrl = "https://example.com/poster.jpg",
Socials = new List<string> { "facebook", "whatsapp", "x", "pinterest", "reddit", "tumblr" }
}
}
};
await player.SetConfig(config);