![]() ![]() UidClode=intent.getIntExtra(AppConstants.CLOUD_UID,0)ĬloudeUrl=intent.getStringExtra(AppConstants.CLOUD_URL) UidIs=intent.getLongExtra(AppConstants.UID,0).toInt() ProfilerName=intent.getStringExtra(AppConstants.PREF_USER_PROFILER_NAME) ProfileImage=intent.getStringExtra(AppConstants.PREF_USER_PROFILE_LIVE) UserId=intent.getStringExtra(AppConstants.PREF_USERS_ID)ĮxperienceId=intent.getIntExtra(AppConstants.PREF_EXPERIENCE_ID, -1)ĬhannelProfile = intent.getIntExtra(AppConstants.PROFILE_MESSAGE,-1) Channel Profile=Constants.CLIENT_ROLE_AUDIENCEĪctivityLive.kt appLiveTokenIs =intent.getStringExtra(AppConstants.PREF_USER_APP_TOKEN_INTENT)ĬhannelName = intent.getStringExtra(AppConstants.CHANNEL_MESSAGE).Channel Profile=Constants.CLIENT_ROLE_BROADCASTER.You need to pass both side join and live user bellow details compulsory from the agora. Next step you need to create a live activity by extending another activity name is ActivityRtcLivebase. The below Screenshot shows how live streaming actually works. Next Step you need to add the below permission in the android manifest implementation 'io.agora.rtc:full-sdk:x.y.z'Ĥ. Add the below dependency to your project. Activate your project with app id and temporary token.ģ. Process of implementing Live Streaming in Android Application Using AgoraĢ. integrate the Agora project with an App ID and a temporary token. ![]() Tech Stack, We’re using: Kotlin, Java, XML language.Why Agora Live Streaming?Īgora live Streaming platform is used to integrate SDK in your mobile app which can help you to explore all the features from Agore such as simple-to-use, developer-friendly, customizable, securable, reliable, good quality audio, and video analytics tracking, customer support, video monetization, reduce cost. In video calling with audio interactive live streaming, users can be host or audience and the host can start live and the audience by joining that streaming. Note : We’r e using the URL structure found in the sample token server.Agora live Streaming platform is used for analytics tracking and one to many and many to many audio or video live streaming with Agora SDK. We get the token value from the JSON and pass it as the first parameter in our joinChannel method. We’ll use fetch to make our request and obtain our token. We’ll make a GET request to our server (running locally or on a remote server) with our channel name and UID before we start the call using the joinChannel method. If you just want a working demo, you can check the tokens branch for the final outcome. We’ll be discussing the code for fetching and updating tokens below. You can follow the instructions in the readme.md file to get the app working on your device. To get us up to speed with a basic video calling app, let’s use this demo. We’ll be using this example token server in our tutorial, and you can easily deploy the same server by following the instructions. You can deploy your own server to generate tokens, or you can use this example. In this tutorial, we’ll take a look at how to fetch tokens from a server and use them to join a video/voice channel in React Native. Using the Agora Voice or Video SDK, you can easily add another layer of security to your app with the help of tokens. Making sure users’ audio/video is visible only to the intended recipients is critical. When you’re building a real-time engagement application, security is of key importance (pun intended).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |