![]() We'd be happy to help you add voice or video chat, streaming and messaging into your apps. How to Install Agora Video Call for PC or MAC: Download BlueStacks for PC with the link made available in this web page. If you have questions, please call us at 40. Get started with 10,000 free minutes today! You can also join Agora's Slack channel here. If you get confused in the process, you can check out Agora's documentation. If you want to copy or reference the SDK I was using, check it on GitHub here. You can learn more about how to adjust the volume here, and you can check out more Agora features on GitHub here. Yay! you now know how to mute audio and adjust the volume using the Agora SDK. The above code follows the concepts taught in that tutorial. If you are not familiar with building a one-to-one video call app using the Agora SDK, check this tutorial on GitHub written by Hermes. The following code block of the Mute class shows you how to integrate the mute and adjust volume features in a video streaming application: You have learned how to mute and adjust the volume using the Agora SDK methods in the previous sections. Integrating the mute and adjust volume features with the Agora Video Call SDK Both of these methods must be used when muting the video call's audio, and they can be called before or after joining a video call: To mute the video call we have to set the volume to 0 using the adjustPlaybackSignalVolume() and adjustAudioMixingVolume() methods. The onStopTrackingTouch() function adds a notification that the SeekBar has stopped tracking the user's touch: The onStartTrackingTouch() function adds a notification that the SeekBar has started tracking the user's touch: Next, implement the necessary methods of the SeekBar.OnSeekBarChangeListener interface. The onProgressChanged() method tracks changes made on the SeekBar when the user drags the SeekBar: The volume range of the Agora video call is from 0 to 100. This method changes the volume of the video call. To adjust the video call's volume, we will use the adjustPlaybackSignalVolume() method and pass the progress value of the SeekBar to the adjustPlaybackSignalVolume() method. Let's start by creating a SeekBar object and calling the setOnSeekBarChangeListener: We will use the SeekBar to adjust the volume of the audio file being played or the video call's volume. This enables all video call participants to send and receive voice and video in a one-to-one call:Īdjusting the volume during a video call by dragging the SeekBarĪ SeekBar is a ProgressBar that can be dragged left and right by a thumb. Set the Channel profile as CHANNEL_PROFILE_COMMUNICATION. ![]() Next, add the following code which sets the profile, orientation, and video configuration of the video call. We will use this object instance later to invoke the adjustPlaybackSignalVolume()method, which adjusts the volume of the video call: IRtcEngineEventHandler is an abstract class that provides the default implementation. Now, let's create an RtcEngine instance by initializing the RtcEngine and passing the IRtcEngineEventHandler and your App ID to the create method. Ensure that you always use the latest Agora library version:Īdding permissions in the Manifest.xml fileĪdd the following permissions in the Manifest.xml file: Check out the tutorial here.īefore we start coding, add the following dependencies in your adle file in the app module, and sync to download the Agora third-party library. Knowledge of how to create a live-streaming Android application using Agora.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |