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<LuraControlsSharingSocial> | Social sharing platforms to enable. |
Sharing Example
val luraConfiguration = LuraConfiguration(
controls = LuraControlsConfiguration(
sharing = LuraControlsSharingConfiguration(
url = "https://example.com/watch/asset-id",
description = "Example video description",
posterUrl = "https://example.com/poster.jpg",
socials = listOf(
LuraControlsSharingSocial.FACEBOOK,
LuraControlsSharingSocial.WHATSAPP,
LuraControlsSharingSocial.X,
LuraControlsSharingSocial.PINTEREST,
LuraControlsSharingSocial.REDDIT,
LuraControlsSharingSocial.TUMBLR
)
)
)
)
player.setConfig(luraConfiguration)