Data Aggregation Techniques

Build extensions that let streamers and broadcasters interact with viewers.

This section introduces a variety of techniques for aggregating viewer data. Aggregation is the key to building user-interaction functionality as you scale up to large numbers of viewers.

Commented example code illustrates the basic aggregation tools and techniques.

  • Accumulating User Data : This example illustrates the simplest form of aggregation.
  • Ranking User Data : This example illustrates how to request arbitrary input from viewers and collect responses that are ranked by popularity.

More sophisticated tools help you promote viewer engagement with interactive experiences.

  • Polls and User Voting : This example illustrates how to poll users, collect their votes, and work with voting results.
  • Trivia Quiz Events : This example illustrates a voting-and-reward system based on trivia events.