Storyblock Layout
The storyblock layout is designed to support a horizontal scroll direction.
let layout = ShortVideoStoryBlockLayout.default
let configuration = ShortVideoConfiguration()
configuration.layout = layout
.
.
.
shortVideoView.configuration = configuration
You have the ability to disable scrolling, update item configurations, and customize the next/previous buttons. Here are the attributes that can be customized:
- Container background color
- Background color
- Previous button (set to
nil
to hide it) - Next button (set to
nil
to hide it)
Storyblock Item
For customization of individual storyblock items, the LORA Short Video SDK
provides the following attributes:
- Background color
- Corner radius
- Title
- Progress
- Play/pause button
- Mute/unmute button
- Fullscreen button
- Share button
- Thumbnail scale mode
- Video scale mode
- Product item view
Starting from LORA Short Video SDK 1.1.0
, this layout type can display overlay data, including product lists, polls, and Q&A.
For more information about overlay data, please refer to the Detail Player below.