![]() You just need to change the launcher activity to ConferenceActivity.java activity: WebRTC Android SDK also supports Conference Room feature. You can quickly connect to the same stream id via Join Conference Room with your Android When there is another peer is connected to the same stream id via Android, iOS or Web, then P2P communication will be established and you can talk to each other. As you guess, just set webRTCMode parameter to IWebRTCClient.MODE_JOIN. WebRTC Android SDK also supports P2P communication. Then you just need to tap Start Playing button. Before playing, make sure that there is a stream that is already publishing to the server with same stream id in your streamId parameter (You can quickly publish to the Ant Media Server via For our sample, stream id is still "streamTest1" in the image below. Playing stream on your Android is almost the same as Publishing. You can also quickly play the stream via Play Stream from your Androidįirstly, you need to set webRTCMode parameter to IWebRTCClient.MODE_PLAY in MainActivity.java. You can go to the web panel of Ant Media Server( and watch the stream there. Then it will start Publishing to your Ant Media Server. After the clicking Start Publishing, stream will be published on Ant Media Server. Tap Start Publishing button on the main screen. In MainActivity.java, set the stream id to anything else then stream1 i.e streamTest1: In MainActivity.java, you need to set webRTCMode parameter to IWebRTCClient.MODE-PUBLISH PS: You need to set SERVER_ADDRESS parameter in MainActivity.java: Publish Stream from your Android Select your project's adle file path and Click to the OK button. A window should open as shown below for the project path. Just Click Open an Existing Android Studio Project. Anyway, after you download the SDK, you can just unzip the file and open the project with Android. If you're an enterprise user, it will be also available for you to download in your subscription page. You can access them through this link on antmedia.io. WebRTC iOS and Android SDK's are free to download. In this doc, we're going to cover the following topics. Please follow this link for the latest and up-to-date documentation.Īnt Media's WebRTC Android SDK lets you build your own Android application that can publish and play WebRTC broadcasts with just a few lines of code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |