Skip to main content

ShortVideoView

The ShortVideoView serves as an entry point within the UI and is designed to present a variety of video view types: vertical grid, horizontal grid, and carousel. When a user clicks on a video item, it triggers the opening of the primary player, which then plays the selected video. Incorporating a ShortVideoView is as straightforward as adding any other view, and it can be accomplished through either Storyboard or code.

let shortVideoView = ShortVideoView(frame: self.view.bounds)

Upon execution, the ShortVideoView fetches video data from a ShortVideoSource. This source is defined by a ShortVideoConfiguration, which determines the layout type and offers customization options for the UI. Additionally, it manages certain fundamental player behaviors.