/plushcap/analysis/agora/muting-and-unmuting-a-remote-user-in-a-video-call-web

Muting And Unmuting A Remote User In A Video Call Web

What's this blog post about?

In this tutorial, we will develop a web application that supports muting and unmuting the video and audio streams of remote users in a group video calling application using the Agora Web SDK and the Agora RTM SDK. The prerequisites for this project include basic working knowledge of JavaScript, JQuery, Bootstrap, and Font Awesome, an Agora developer account, the Agora Web SDK, and the Agora RTM SDK. We will first set up the HTML structure with necessary UI elements such as buttons for joining, leaving, and muting/unmuting. Then we will add custom CSS to match the site with a blue Agora-based theme. The JavaScript code uses the Agora Web SDK to create clients, audio and video tracks, join channels, publish streams, and subscribe to remote users' streams. Finally, we will incorporate the main functionality: muting remote video and audio tracks using the Agora RTM SDK by creating a RTM client, logging in, joining a channel, getting a list of all users in the RTM channel, handling MemberLeft and MemberJoined callbacks, sending peer-to-peer messages for mute/unmute actions, and adding a logout function. The finished product is available on GitHub, and a demo can be seen in action at the provided link.

Company
Agora

Date published
July 26, 2021

Author(s)
Akshat Gupta

Word count
904

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.