Skip to main content

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 on GitHub


View Style: LMFeedVideoFeedFragmentViewStyle

The LMFeedVideoFeedFragmentViewStyle defines the styling and layout options for the video feed fragment.

View on GitHub


Customization

General Customizations

  • customizeVideoFeedListView(vp2VideoFeed, videoFeedAdapter): Customize the video feed list view with a ViewPager2 and a video feed adapter LMFeedVideoFeedAdapter.

Configuration

The LMFeedVideoFeedConfig defines few configs options for the video feed fragment.

ConfigTypeDescriptionDefault Value
reelViewedAnalyticThresholdIntthreshold for sending reel viewed event in secs2

View on GitHub


Interactions

Post Interactions

  • onPostLikeClicked(position, postViewData): Triggered when a post is liked, with position and postViewData 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.