How to Use WebRTC SDK in Native Android App?

Prerequisites for WebRTC Android SDK

Run the Sample WebRTC Android App

Publish Stream from your Android

Play Stream from your Android

P2P Communication with your Android

Join Conference Room with your Android

Develop a WebRTC Android App

Creating Android Project

private String webRTCMode = IWebRTCClient.MODE_PUBLISH;
private String webRTCMode = IWebRTCClient.MODE_PLAY;

How to use Data Channel

webRTCClient.setDataChannelObserver(this);
this.getIntent().putExtra(EXTRA_DATA_CHANNEL_ENABLED, true);
webRTCClient.sendMessageViaDataChannel(buf);

How to use Conference Room

private ConferenceManager conferenceManager;
conferenceManager = new ConferenceManager( this,
this,
getIntent(),
MainActivity,
roomId,
publishViewRenderer,
playViewRenderers,
streamId,
this
);

Check also -> https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-Conference-Call

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store