Skip to main content

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.

AttributeTypeDescription
urlStringURL to create the sharing link.
descriptionStringDescription for social sharing.
posterUrlStringPoster URL for social sharing.
socials[LuraControlsSharingSocial]Social sharing platforms to enable.
Sharing Example
let sharing = LuraControlsSharingConfiguration(
url: "https://example.com/watch/asset-id",
description: "Example video description",
posterUrl: "https://example.com/poster.jpg",
socials: [.facebook, .whatsapp, .x, .pinterest, .reddit, .tumblr]
)

let controls = LuraControl(sharing: sharing)
let config = LuraPlayerConfiguration(controls: controls)
player?.setConfig(config)