Skip to main content

🎬 Reels Features

Reels are TikTok-style short-form videos that allow users to watch, interact with, and share vertical video content.

✨ Overview​

XHub Chat's Reels system provides:

  • πŸ“± Infinite Scroll Feed - Endless scrolling to watch videos continuously
  • πŸŽ₯ Video Player - Play videos with full controls
  • πŸ’¬ Comments - Real-time comments and interactions
  • ❀️ Likes & Reactions - Like and react to reels
  • πŸ”„ Pagination - Auto-load more reels
  • ⚑ Performance - Optimized memory with EphemeralStore

πŸ“š Key Features​

Feed & Discovery​

Player & Interaction​

🎯 Use Cases​

Social Media Feed​

// TikTok-style vertical feed
<ReelsFeed autoPlay infiniteScroll />

User Profile​

// Grid view của reels người dùng
<UserReelsGrid userId="@user:server.com" />

Discover Page​

// KhΓ‘m phΓ‘ reels mα»›i
<DiscoverReels category="trending" />

πŸ—οΈ Architecture​

EphemeralStore​

Reels are stored in memory (not persisted to IndexedDB) for optimal performance:

// Reels only exist in current session
const reelsStore = client.getReelsStore();
const rooms = await reelsStore.getSavedRooms();

Virtual Rooms​

Each reel is a virtual room with category 'reel':

// Auto-generated room ID
const roomId = `reel_${reelId}`;

🎨 Supported Platforms​

  • @xhub-chat/core - Core APIs and client methods
  • @xhub-chat/react - React hooks optimized for Reels

πŸ“– Getting Started​

Get started with Reels Feed β†’