Skip to main content

Carousel Layout

The carousel layout is designed to support a horizontal scroll direction. You can set it up like this:

let layout = ShortVideoCarouselLayout.default
let configuration = ShortVideoConfiguration()
configuration.layout = layout
.
.
.
shortVideoView.configuration = configuration

With the carousel layout, attributes that can be customized include:

  • Background color
  • Spacing between items
  • Video scale mode

For customization of individual carousel items, the LORA Short Video SDK provides the following attributes:

  • Item ratio (width/height)
  • Corner radius
  • Background color
  • Play button (set to nil to hide it)
  • Mute/unmute button
  • Thumbnail scale mode
  • Video scale mode