Get started with
10,000 free minutes
Sign up and start building! You don’t pay until you scale.
Try for Free
1RtcEngineConfig config = new RtcEngineConfig();
2config.mAppId = "Your app ID";
3RtcEngine agoraEngine = RtcEngine.create (config);
4agoraEngine.setupLocalVideo(new VideoCanvas(new SurfaceView(getBaseContext(), VideoCanvas.RENDER_MODE_HIDDEN, 0));
5agoraEngine.enableVideo();
6agoraEngine.startPreview();
7agoraEngine.joinChannel("<Your token>", "<Your channel name>", 1, new ChannelMediaOptions());
8agoraEngine.enableVideo();