![]() Paste in the following contents to the newly created file, and update values with your app credentials obtained from the dashboard.Save Pusher App credentials and create a new.$ mkdir streaming -video - with -watchlist Create a new project directory, let’s call this directory streaming-video-with-watchlist.Go to App Keys and copy and save these keys for later. To use Channels, you need app keys for your application. To enable these features, navigate to the channel app you are currently building, go to App Settings, and toggle the Enable subscription counting and Enable Watchlist Events options. To use them, you have to enable them both in the Pusher dashboard. To build this particular use case, we’ve mentioned we are using Subscription Counting, and Watchlist events. Step 2: Enable Watchlist events and Subscription Count features Choose a tech stack you intend to integrate Pusher with for a better setup experience (optional).Ĥ.Cluster - The physical location of the servers that handle requests from your Channels app.This is just for your reference and you can change this name later. This plan is more than sufficient for this tutorial app.Ĭonfigure your app by proving the following information: It comes with 200,000 messages per day and 100 concurrent connections (total number of simultaneous connections across your app). NOTE: The Pusher sandbox plan is free and fully featured. If you are already familiar with Channels and have an account, skip this step and sign in. If you don’t have a Pusher account, sign up for free.This section exlains how to set up Pusher Channels. Here’s how to build a streaming platform using Pusher Channels. Watchlist events (Watchlist Online Status).JavaScript (Vue) installed on your computer.Go (version >= 0.10.x) installed on your computer.An IDE of your choice, e.g., Visual Studio Code.In this tutorial, we explain how to build a live streaming application that displays the online status of users you are interested in and who are currently streaming a video.īefore you can start implementing this tutorial, you need the following: This means end users will get notified when the people they follow are online. Now, what if end users want to know more than just the number of users watching a stream? With the Watchlist Online Status feature, you can build the presence functionality at the app level. Instead of Presence channels, you can use Subscription Counting events to get updates about the number of people watching a video stream. However, Presence channels are limited to 100 members. Presence channels are a great solution to keep track of who is subscribed to a channel and notify channel members when someone joins or leaves. That way each user gets an idea of how many other users are currently online. When building applications that allow multiple users to interact with one another, it is essential to display their online presence. However, it is not a requirement as this is a step-by-step guide. A basic understanding of Go and JavaScript (Vue) would help you with this tutorial. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |