KevinkunAgoraRTC

Extension for real time communication via voice and/or video, based on AgoraRTC technology.

Agora have 10,000 free minutes per month.

HOW TO BUY

Please pay USD10 with Paypal to wangsk789, and send one email to wangsk789@163.com to request the aix file.

DEMO

group chat:

Screenshot_20200611_152223

1 vs 1 video chat:

Screenshot_20200617_134650

blocks for 1vs1 video chat:

2020-06-17_133622

Property

AppId

you need to sign up at here, and open Console, create one new project (for authentication mechanism, pls choose "App Id"), get the appId

2020-06-17_132740

Token

This property will be no use if you choose "App Id" for authentication when you create the project.

2020-06-17_132745

EnableVideo

default value is false, which means only voice talk enabled. Set it to true if video talk wanted.

2020-06-17_132750

LibUrl

the location where the agorartc sdk stored. Use this only when you want to host your own sdk. Contact me for more information.

2020-06-17_132756

Method

Init

initialize the sdk.

if the app is running for first time, it will download the sdk from libUrl automaticly.

2020-06-17_132801

JoinChannel

try to join channel. If success, this will fire the OnJoinChannel event, and other user in the channel will get OnRemoteUserJoin event.

You can talk to others only if you are in same channel and with same AppId.

2020-06-17_132805

LeaveChannel

try to leave channel. if success, this will fire the OnLeaveChannel event, and other user in the channel will get OnRemoteUserLeave event.

2020-06-17_132811

SetupLocalVideo

set one layout (arrangement) to be the container of the local video.

It should be called before JoinChannel

2020-06-17_132816

SetupRemoteVideo

set one layout (arrangement) to be the container of the remote video.

Its' s to be called inside the OnGetRemoteVideo event. One layout is for one remote user only.

uid is got from OnGetRemoteVideo event.

2020-06-17_132823

EnableSpeakerphone

set the speaker phone ON to true (default) or false

2020-06-17_132828

SwitchCamera

switch to use front or rear camera

2020-06-17_132834

EVENT

OnJoinChannel

when you joined the channel. After this, the local video will be shown automatically.

2020-06-17_132850

OnLeaveChannel

when you left the channel. After this, all the video will be closed automatically

2020-06-17_132855

OnRemoteUserJoin:

when other user joined the channel.

2020-06-17_132839

OnRemoteUserLeave

when other user left channel

2020-06-17_132844

OnGetRemoteVideo

when you get remote video. Setup the remote video here.

2020-06-17_132900

OnError

when any error occurs. please refer to here for more info

2020-06-17_132905

Copyright © kevinkun.cn all right reserved,powered by Gitbookmodified: 2020-06-17

results matching ""

    No results matching ""