Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] 语聊房 #3293

Closed
wants to merge 60 commits into from
Closed
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
f064023
[chatroom] initial
kelzr May 11, 2023
2027a87
[chatroom] initial
kelzr May 12, 2023
c3fbc89
[chatroom] initial
kelzr May 15, 2023
e4fd119
[chatroom] initial
kelzr May 15, 2023
4911067
[chatroom] initial
kelzr May 15, 2023
0b4842f
[chatroom] initial
kelzr May 16, 2023
e2cf460
[chatroom] wip
kelzr May 16, 2023
c225a53
[chatroom] wip
kelzr May 17, 2023
664d1ae
[chatroom] wip
kelzr May 17, 2023
fbcce20
[chatroom] wip
kelzr May 17, 2023
56d5884
[chatroom] wip
kelzr May 18, 2023
1e8f27f
[chatroom] wip
kelzr May 18, 2023
91104b2
[chatroom] wip
kelzr Jul 11, 2023
c97fc9f
[showroom] wip
kelzr Jul 11, 2023
08aba77
[showroom] wip
kelzr Jul 11, 2023
cbbd5b8
[chatroom] wip
kelzr Jul 11, 2023
3e5d01b
[chatroom] wip
kelzr Jul 12, 2023
2a06f09
[chatroom] wip
kelzr Jul 13, 2023
d2cfa25
[chatroom] wip
kelzr Jul 17, 2023
0ea9102
[chatroom] wip
kelzr Jul 20, 2023
47bfcc0
[chatroom] wip
kelzr Jul 20, 2023
1942471
Merge branch 'master' into release/chatroom
kelzr Jul 20, 2023
cc8d2f3
[chatroom] wip
kelzr Jul 20, 2023
c311aea
[chatroom] wip
kelzr Jul 20, 2023
43b3d0e
[chatroom] wip
kelzr Jul 27, 2023
50158a0
[chatroom] wip
kelzr Jul 31, 2023
b2358ce
[chatroom] wip
kelzr Jul 31, 2023
d4955c9
[chatroom] wip
kelzr Jul 31, 2023
db32f98
[chatroom] wip
kelzr Aug 1, 2023
1e1d7cd
[chatroom] wip
kelzr Aug 2, 2023
4225942
[chatroom] wip
kelzr Aug 2, 2023
d54fbd3
[chatroom] wip
kelzr Aug 2, 2023
f51872d
[chatroom] wip
kelzr Aug 2, 2023
55592a0
[chatroom] wip
kelzr Aug 2, 2023
4253ecf
[chatroom] wip
kelzr Aug 2, 2023
9cf05fd
Merge branch 'master' into release/chatroom
kelzr Aug 2, 2023
45d84bf
[chatroom] udpate after review
kelzr Aug 7, 2023
db14510
[chatroom] udpate after review
kelzr Aug 7, 2023
bf9588c
[chatroom] wip
kelzr Aug 8, 2023
fd88734
[chatroom] fix
kelzr Sep 15, 2023
e09d9c4
[uikit] add
kelzr Oct 8, 2023
7a8d9d1
[uikit] add
kelzr Oct 8, 2023
acdcecf
[uikit] add
kelzr Oct 9, 2023
96c16df
[uikit] add
kelzr Oct 11, 2023
ffedde7
[uikit] add
kelzr Oct 11, 2023
f7e4889
[uikit] add
kelzr Oct 12, 2023
6fb6acf
[uikit] add
kelzr Oct 12, 2023
1ece79c
[uikit] add
kelzr Oct 16, 2023
138a192
[uikit] add
kelzr Oct 17, 2023
bf55ce0
[uikit] add
kelzr Oct 18, 2023
8e9906d
[uikit] add
kelzr Oct 18, 2023
8294d3a
[uikit] add
kelzr Oct 18, 2023
fa41549
[uikit] add
kelzr Oct 18, 2023
7821806
[uikit] add
kelzr Oct 18, 2023
cbad348
[uikit] add
kelzr Oct 19, 2023
ac12f87
[uikit] add
kelzr Oct 19, 2023
c53799a
[uikit] add
kelzr Oct 19, 2023
47d3c33
[uikit] add
kelzr Oct 23, 2023
c644c89
[uikit] add
kelzr Oct 23, 2023
4ae0176
[uikit] add
kelzr Oct 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions markdown/chatroom/01-进出房间.wsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@startuml
title 用户进出语聊房的流程图
start
: 进入语聊房列表;
: 初始化信令系统;
: 登录信令系统;
if (是否需要创建房间) then (Yes)
: 创建房间;
else(No)
endif
:进入房间;
fork
:初始化 RTC 引擎;
:[RTC] 加入频道;
fork again
:[信令] 加入聊天室;
endfork
:显示聊天消息和声音;
if (是否离开房间) then (Yes)
fork
:[RTC] 退出频道;
:销毁 RTC 引擎;
fork again
:[信令] 离开聊天室;
endfork
if (角色是否为房主) then (Yes)
:销毁房间;
else (No)
:离开房间;
endif
else (No)
endif
stop
@enduml
26 changes: 26 additions & 0 deletions markdown/chatroom/02-房主邀请.wsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@startuml
title 房主邀请听众上麦的流程图
start
if (角色是否为房主) then (Yes)
:房主向听众发起上麦邀请;
:房主收到听众对邀请的响应;
if (听众同意房主的邀请) then (Yes)
:房主收到麦位已更新的通知;
else (No)
stop
endif
else(No)
:听众收到房主的上麦邀请;
if (听众是否同意房主的邀请) then (Yes)
:听众发起同意邀请的通知;
:上麦并修改麦位信息;
:[RTC] 更新当前用户角色为主播;
:[RTC] 发布本地音频流;
else (No)
:发起拒绝邀请的通知;
stop
endif
endif
:更新麦位 UI 界面;
stop
@enduml
21 changes: 21 additions & 0 deletions markdown/chatroom/03-观众申请.wsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@startuml
title 听众向房主申请上麦的流程图
start
if (角色是否为房主) then (Yes)
:房主收到听众的上麦申请;
if (房主是否同意申请) then (Yes)
:房主发送接受听众上麦申请的通知;
:房主修改麦位信息以让听众上麦;
else (No)
:房主发送拒绝听众上麦申请的通知;
stop
endif
else(No)
:听众向房主发起上麦申请;
:房主接受后,听众收到自己上麦的消息;
:[RTC] 更新当前用户角色为主播;
:[RTC] 发布本地音频流;
endif
:更新麦位 UI 界面;
stop
@enduml
40 changes: 40 additions & 0 deletions markdown/chatroom/Android时序图.wsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@startuml
autonumber
participant "App" as a
participant "声网云服务\n(Service)" as b #White
participant "声网 IM SDK" as c
participant "声网 RTC SDK" as d
== 获取房间列表 ==
a -> b: 获取房间列表 \ngetRoomList
b -->> a: 显示房间列表
== 登录 IM 系统 ==
a -> c: ChatClient.getInstance().loginWithToken()
c -->> a: 登录成功
== 初始化 AgoraRtcEngineKit ==
a -> d: RtcEngine.create()
d -->> a: 初始化成功
== 创建并进入房间 ==
a -> b: 创建房间 \ncreateRoom
b -->> a: 创建房间成功
a -> b: 加入房间 \njoinRoom
b -->> a: 加入房间成功
a -> c: 加入聊天室 \njoinChatroom
a -> d: 加入频道 \njoinChannel
c -->> a: 加入聊天室成功
d -->> a: 加入频道成功
== 麦位管理 ==
...
== 离开语聊房 ==
a -> b: 离开房间 \nleaveRoom
a -> d: 离开频道 \nleaveChannel
a -> c: 离开聊天室 \nleaveChatroom
a -> c: 销毁聊天室 \ndestroyChatroom
a -> d: 销毁 RtcEngine \ndestroy
b -->> a: 离开房间成功
d -->> a: 离开频道成功
c -->> a: 离开聊天室成功
c -->> a: 销毁聊天室成功
@enduml



Loading