Multicasting: Growing the Whatnot Community Across Platforms
Making it possible for sellers to broadcast to multiple platforms simultaneously
As Whatnot sellers were looking to grow their audiences across channels, many opted to cast ongoing lives to their social media accounts. This required a host of extra work on their part—including recording the show through multiple phones or using external software like OBS—which could be time-consuming and technically difficult. We heard feedback from the community about a need for a tool hosted by Whatnot that would enable them to simultaneously cast their shows to other platforms in a few clicks. Additionally, we anticipated this would also increase awareness and drive more interested buyers to sellers’ shows. In response, we built Multicasting. With this new feature, sellers can expand their reach and increase engagement on their live streams by broadcasting from iOS or desktop to multiple platforms simultaneously.

Building the MVP
Supported destinations
YouTube, Twitch, Instagram, Facebook, and TikTok were the five most requested platforms for seller multicasting. We quickly tapped into the platforms with available streaming API support and landed on supporting YouTube, Facebook, and Twitch.
Seller experience
Entry points
We built the product to allow sellers to enable multicasting for any or all of the three destinations before going live. Additionally, they were also able to toggle destinations on or off during a live.
Video and audio transmission
To stream the live to external platforms, we found that YouTube, Facebook, and Twitch all supported Real Time Messaging Protocol (RTMP) streaming, a standard protocol for streaming video and audio over the network. There are two required components to setting up an RTMP stream:
- Server URL: a web address hosted by the social destination platform—this is the same across all users
- RTMP stream key: a code that uniquely identifies a user on the social platform, and is generated by the social platform
Together, they form an RTMP URL, which is the endpoint where we would need to deliver the video stream.

Creating an RTMP stream key
There were two ways in which a seller could generate an RTMP stream key.
Manual flow
In this scenario, the seller would need to navigate to their social media account, generate the stream key from the relevant Video Settings page, and paste it into Whatnot. This would require anywhere between 4–10 steps depending on the platform.
Automated flow
This flow had three key steps:
- The seller would go through OAuth Authorization Code flow on Whatnot to sign in to their social media account and grant Whatnot permission to publish a stream on the account.
- Whatnot would then be given the user’s tokens by the social media platform.
- Our server would use these tokens (and refresh them when needed) to make the necessary API calls (Live Video API for YouTube, for example) to generate the stream key.
Using the automated OAuth flow for all three destinations was our ideal end state since it required the least user effort. However, it did require significant engineering effort. Given that we wanted to quickly test the impact of multicasting, we began with supporting multicasting via OAuth for YouTube and falling back to having users manually input a stream key for Facebook and Twitch.


Transmitting the RTMP stream
Once we had the RTMP URL available, the next step was to use it to transmit the data. We had the transmission happen from the server rather than the client. This would allow:
- Lesser load on the client since they only have to generate one video stream, which the server could then push out to N services, vs. the client needing to open N streams
- Better capability to react to third-party API changes since older mobile clients are not locked into specific APIs
- An easy extension to multiple client surfaces (iOS, web, android) since we’d be client-agnostic
We chose LiveKit as our RTMP transmission service, which would encode captured video/audio data and send it over in smaller packets to the social media platform’s servers following the protocol. To integrate with LiveKit, we created a standalone web page on Whatnot that displayed a given live and any overlays and used LiveKit’s web egress recording feature to have LiveKit point to this URL via a headless Chrome instance when a stream started, thereby recording it.
Example of a payload that we include when starting a Livekit web egress recording:
{
"url": "whatnot-web-recorder-url",
"stream_outputs": [
{
"protocol": "RTMP",
"urls": [
"rtmps://youtube-rtmp-sever-url/youtube-stream-key",
"rtmps://facebook-rtmp-server-url/facebook-stream-key"
]
},
],
}As a summarized example, the flow to begin a multicast on YouTube looks as follows (note: other flows like toggling a destination on / off during the live, ending a multicast, and keeping track of multicast status are not shown here for brevity):

Viewer experience
The multicast video on third-party platforms was displayed in a 9:16 aspect ratio. Additionally, we included two entry points for viewers to get to Whatnot:
- A QR code overlaid on the multicast video which when scanned, translated to the seller’s referral link
- The seller’s referral link is embedded in the video description box
The referral link dropped the viewer into the Whatnot app with the seller’s live pinned on top. It had the additional benefit of granting referral credit to both the viewer and the seller if the viewer was new to the app.


Analysis of the MVP
We added logging to key parts of the flow to understand any anomalies, or opportunities for feature improvements. Through the data, we saw that sellers who multicast had more viewers and buyers in their lives. We shared this data with the seller community, which encouraged more sellers and influencers to try it out. We also surveyed sellers for feedback, and read through comments on multicast videos on platforms like YouTube for feedback from viewers.
We found three key problem areas that warranted iterations:
- External viewers did not have enough product context in the multicast video
- Sellers did not have insight into the status of their multicast video
- Sellers had difficulty setting up Facebook
Adding product context for viewers
The QR code overlay alone wasn’t very informative or engaging for the external audience. They would often have trouble understanding what product was being talked about by the seller. To alleviate this and provide viewers with a more dynamic and fun experience, we decided to display the user’s info, the currently pinned product’s info, as well as the live bid price, bid count, and countdown timer.
All of the auction-related information within the Whatnot ecosystem comes from our live service. Sample payload:
{
"type": "auction_started",
"payload": {
"product": {
"id": "product-id",
"name": "product-name",
"highestBid": {
"price": "bid-price"
}
...
}
}
}However, the live service channel that pushes auction messages was gated to only talk to authenticated clients for security, whereas our web recorder operated from a logged-out context. Therefore, we set up a new Phoenix channel that piped in the small subset of messages required specifically for multicasting.
Once the events were successfully published, we updated the web recorder client to subscribe to this new channel and included the relevant overlays.

Providing status insight for sellers
It was possible for the multicast to fail due to the stream key being wrong, or the third party closing the connection unexpectedly. To this end, we built a badge, which indicates in real-time when something goes wrong with starting a multicast.
The seller’s client can request information about the status of a multicast through our GraphQL API for the main backend. We retrieve status information about a given multicast destination through two channels:
- Our LiveKit webhook, and
- Requests to the destination platform’s REST API.
Because status updates from LiveKit occur outside of the request/response cycle, we wanted to be sure our sellers are notified in real time when a call from LiveKit to our webhook indicates that there is an error with a stream. Since live-service is currently our primary channel for pushing data to clients during a livestream, we utilized it to push multicast error events to clients.
Therefore, we added support for a new event, MulticastErrorUpdateEvent, to both live-service and clients. The flow to display real-time status looks as follows:


Building solutions
Increasing ease of use for platform setup
As we began rolling out the MVP for the feature, we noticed that error rates for multicasts to Facebook were significantly higher than for our other supported platforms. After working to help some of our sellers get set up with multicasting to Facebook, we hypothesized that elevated error rates were because:
1. The process involved copying a stream key from the Facebook website to the Whatnot app, and
2. The process of setting up a live broadcast, enabling persistent stream keys, and then locating the stream key could be confusing.
To address these issues, we decided to build out OAuth support for Facebook. We started by building a prototype on Web which calls Facebook’s Graph API directly and stores state locally to gain a better understanding of what the end-to-end implementation might look like.
The functional requirements for supporting native Facebook authentication differed greatly from those for YouTube, primarily because Facebook has three distinct destinations that a user can post to: Groups, Pages, Profiles. Thus, both the client and backend needed to know which of these destinations is linked and what kind of destination it is. We also had to account for differences in access token types; while posting to a Group or Profile only requires a user-level access token, posting to a Page requires a page-specific token.
To support these requirements, we added two additional pieces of state for each linked social account:
1. The page_or_group_id, indicating the id of the specific destination that is linked, and
2. The access_token_type, which indicates which type of destination (Profile, Group, or Page) is linked.
Finally, we added a new query (multicastSubDestinations) to display a list of candidate pages or groups to the user and added some fields to the existing linkUserSocialAccount mutation to support these new destination types.
Post this iteration, we saw through data that users who multicast to Facebook OAuth had cut down streaming errors by over 95%.

Key takeaways and next steps
A big takeaway from building multicasting was to always actively look for user feedback—sometimes, that feedback was hidden amidst YouTube comments, or in Discord chats, but it always gave us a lot of information that sole quantitative analytics couldn’t. Second, prototyping was immensely useful to de-risk the project early on, especially with so many third-party dependencies. It allowed us to quickly clear App and Privacy Reviews, and understand the scope of third-party capabilities.
Currently, views on third-party multicast videos contribute to about 6–10% of the total viewership on Whatnot, and it revealed itself to be a powerful marketing tool for our sellers, with sellers who multicast seeing on average 16% more buyers on their streams. We are continuing to monitor adoption and have received requests for additional features such as scheduling multicasts in advance, supporting other aspect ratios, seeing stats from multicast videos, and aggregating comments across platforms into Whatnot.
If you’re interested in growing the future of live commerce, come join us at Whatnot!