This demo shows a live shopping experience during a football match. When you press Start Demo, a Node.js simulator replays the match on a timeline. It publishes commentary, crowd chat, reactions, featured products, and bets, each on its own PubNub channel. It also publishes the playback position, so every viewer's video stays in sync and late joiners jump to the right moment. The web app is built with Next.js and the PubNub Chat SDK, which runs on the PubNub JavaScript SDK.
When you pick a fan, the app gets an Access Manager token for that user and loads their coins and shopping bag from App Context. The demo was built with Red5 Pro: the match itself is a recorded video, and the code includes hooks for a Red5 Pro WHIP/WHEP stream, which the hosted version doesn't use. The source code is open on GitHub, and the in-app tours explain how each part is built.