Skip to main content

Trick Play Configuration

Trick play images are a compilation of cropped images extracted from various frames of a video, serving as visual cues for viewers to quickly navigate to desired locations within the video. These images enable users to efficiently scan, select, and explore the video content, enhancing their overall viewing experience.

To configure the trick play image of a video in Lura Player, you can use the following configuration.

AttributeTypeRequiredDescription
urlStringyesTrick play URL of the content.
typeStringyesMIME type of the content.
widthIntnoWidth of the content (not required for single trick play image)
heightIntnoHeight of the content (not required for single trick play image)

Note that width and height are optional parameters that only needs to be passed when there are multiple trick play images. Lura Player will adaptively select the trick play image that is closest to the window width and scale accordingly. With Lura Player's adaptive trick play image selection, you can optimize your video content delivery, reduce bandwidth consumption, and provide a superior viewing experience for your customers.

Here are the supported MIME types:

  • image/bif
Single trick play image
val luraConfiguration = LuraConfiguration(
...
content = LuraContent(
media = listOf(
LuraMedia(
type = "image/bif",
url = "https://example.com/pvw.bif"
)
),
...
),
...
)

playerView = findViewById(R.id.lura_player_view)
player = LuraPlayer(context = this, playerView = playerView)
player.setConfig(luraConfiguration)
Multiple trick play images
val luraConfiguration = LuraConfiguration(
...
content = LuraContent(
media = listOf(
LuraMedia(
type = "image/bif",
url = "https://example.com/pvw.bif",
width = 640,
height = 360
),
LuraMedia(
type = "image/bif",
url = "https://example.com/pvw2.bif",
width = 1920,
height = 1080
)
),
...
),
...
)

playerView = findViewById(R.id.lura_player_view)
player = LuraPlayer(context = this, playerView = playerView)
player.setConfig(luraConfiguration)