Video Feed Screen
The LMFeedVideoFeedFragment
is a component responsible for managing and displaying video feeds in the LikeMinds feed. It handles the user interface and interactions associated with video content.
View Style: LMFeedVideoFeedFragmentViewStyle
The LMFeedVideoFeedFragmentViewStyle
defines the styling and layout options for the video feed fragment.
Customization
General Customizations
customizeVideoFeedListView(vp2VideoFeed, videoFeedAdapter)
: Customize the video feed list view with aViewPager2
and a video feed adapterLMFeedVideoFeedAdapter
.
Configuration
The LMFeedVideoFeedConfig
defines few configs options for the video feed fragment.
Config | Type | Description | Default Value |
---|---|---|---|
reelViewedAnalyticThreshold | Int | threshold for sending reel viewed event in secs | 2 |
Interactions
Post Interactions
onPostLikeClicked(position, postViewData)
: Triggered when a post is liked, withposition
andpostViewData
as inputs.onPostContentSeeMoreClicked(position, postViewData)
: Triggered when "see more" is clicked for post content.onPostContentLinkClicked(url)
: Triggered when a URL link in post content is clicked.onPostVideoFeedCaughtUpClicked()
: Triggered when the user catches up on video feed posts.
Post Actions
onPostActionMenuClicked(position, postViewData)
: Triggered when the action menu for a post is clicked.onPostMenuItemClicked(postId, menuItem)
: Triggered when a menu item for a post is clicked.
Author and Tag Interactions
onPostAuthorHeaderClicked(position, postViewData)
: Triggered when the author's header is clicked.onPostTaggedMemberClicked(position, uuid)
: Triggered when a tagged member in a post is clicked.
Post Menu Interactions
onEditPostMenuClicked(position, menuId, post)
: Triggered when the "edit post" menu item is clicked.onDeletePostMenuClicked(position, menuId, post)
: Triggered when the "delete post" menu item is clicked.onReportPostMenuClicked(position, menuId, post)
: Triggered when the "report post" menu item is clicked.