






RtcEngineConfig config = new RtcEngineConfig();
config.mAppId = "Your app ID";
RtcEngine agoraEngine = RtcEngine.create (config);
agoraEngine.setupLocalVideo(new VideoCanvas(new SurfaceView(getBaseContext(), VideoCanvas.RENDER_MODE_HIDDEN, 0));
agoraEngine.enableVideo();
agoraEngine.startPreview();
agoraEngine.joinChannel("<Your token>", "<Your channel name>", 1, new ChannelMediaOptions());config.appId = "<Your app id>"
agoraEngine = AgoraRtcEngineKit.sharedEngine(with: config, delegate: self)
option.clientRoleType = .broadcaster
agoraEngine.enableVideo()
videoCanvas.view = localView
agoraEngine.setupLocalVideo(videoCanvas)
agoraEngine.startPreview()
agoraEngine. (byToken: "<Your token>", channelId: "<channel name>", uid: 0, mediaOptions: option, joinSuccess: { (channel, uid, elapsed) in })IRtcEngine* agoraEngine = createAgoraRtcEngine();
RtcEngineContext context;
context.appId = "<Your app ID>";
context.channelProfile = CHANNEL_PROFILE_LIVE_BROADCASTING;
agoraEngine->initialize(context);
agoraEngine->setClientRole(CLIENT_ROLE_TYPE::CLIENT_ROLE_BROADCASTER);
agoraEngine->setupLocalVideo(<VideoCanvas>);
agoraEngine->enableVideo();
agoraEngine->startPreview();
agoraEngine->joinChannel("Your Token", "<Your channel name>", 0, NULL);const agoraEngine = AgoraRTC.createClient({ mode: "rtc", codec: "vp8" });
agoraEngine.setClientRole("host");
await agoraEngine.join("<Your app ID>", "<Your channel Name>", "<Your token>", 1);
var localAudioTrack = await AgoraRTC.createMicrophoneAudioTrack();
var localVideoTrack = await AgoraRTC.createCameraVideoTrack();
await agoraEngine.publish([localAudioTrack, localVideoTrack]);
localVideoTrack.play(document.createElement("div"));var agoraEngine = createAgoraRtcEngine();
agoraEngine.initialize({appId: "<Your app ID>"});
agoraEngine.setChannelProfile(ChannelProfileType.ChannelProfileCommunication);
agoraEngine.setClientRole(ClientRoleType.ClientRoleBroadcaster);
agoraEngine.setupLocalVideo({sourceType: VideoSourceType.VideoSourceCameraPrimary,view: <Pass a div element here>});
agoraEngine.enableVideo();
agoraEngine.startPreview();
agoraEngine.joinChannel("<Your token>", "<You channel name>", 1);RtcEngine agoraEngine = createAgoraRtcEngine();
await agoraEngine.initialize(const RtcEngineContext(appId: "<Your app ID>"));
ChannelMediaOptions options = const ChannelMediaOptions(clientRoleType: ClientRoleType.clientRoleBroadcaster,
channelProfile: ChannelProfileType.channelProfileCommunication);
<Use a Container here> = AgoraVideoView(controller: VideoViewController(rtcEngine: agoraEngine,canvas: VideoCanvas(uid: 0));
await agoraEngine.enableVideo();
await agoraEngine.startPreview();
await agoraEngine.joinChannel(token: <"You token">,channelId: "You channel name", options: options, uid: 1);import { createAgoraRtcEngine, IRtcEngine} from 'react-native-agora';
const agoraEngine = useRef<IRtcEngine>();
agoraEngine.initialize({appId: "<Your app ID>",channelProfile: ChannelProfileType.ChannelProfileLiveBroadcasting});
agoraEngine.setChannelProfile(ChannelProfileType.ChannelProfileCommunication);
agoraEngine.enableVideo();
agoraEngine.startPreview();
agoraEngine.joinChannel("<Your token>", "<You channel name>", 1, {clientRoleType: ClientRoleType.ClientRoleBroadcaster});IRtcEngine agoraEngine = Agora.Rtc.RtcEngine.CreateAgoraRtcEngine();
RtcEngineContext context = new RtcEngineContext("<You app ID>", 0,CHANNEL_PROFILE_TYPE.CHANNEL_PROFILE_COMMUNICATION, "");
agoraEngine.Initialize(context);
agoraEngine.SetClientRole(CLIENT_ROLE_TYPE.CLIENT_ROLE_BROADCASTER);
agoraEngine.EnableVideo();
VideoSurface LocalView.SetForUser(0, "", VIDEO_SOURCE_TYPE.VIDEO_SOURCE_CAMERA);
LocalView.SetEnable(true);
agoraEngine.JoinChannel("Your token", "You channel");RtcEngineContext RtcEngineContext;
RtcEngineContext.appId = <Your AppId>
RtcEngineContext.eventHandler = new agora::rtc::IRtcEngineEventHandler();
RtcEngineProxy = agora::rtc::ue::createAgoraRtcEngine();
RtcEngineProxy->initialize(RtcEngineContext);
RtcEngineProxy->enableAudio();
RtcEngineProxy->enableVideo();
RtcEngineProxy->joinChannel(<Your Token>, <Your ChannelName>, "", 0);



