ShortVideoSource
LORA Short Video SDK
supports 2 types of video sources:
Playlist
The playlist video source will fetch all the available videos from a specific playlist by an ID. To create a playlist source, use the below API
ShortVideoSource.init(playlistId: String, maxItemsCount: Int? = nil)
Setting a maxVideoItemsCount
greater than 0 will limit the number of videos to load, and set nil
to show all videos in the playlist.
Single
The single video source will fetch a single video by a video id. To create a single source, use the below API
ShortVideoSource.init(videoId: String)