Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
870dd346
Commit
870dd346
authored
Aug 25, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/qj/netease3' into 'd/v4.4.08'
呼叫组件回滚 See merge request app_android_lib/YDL-Component!344
parents
42d47b84
de3e0157
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
build.gradle
m-im/build.gradle
+1
-1
NimUICallInit.java
m-im/src/main/java/com/yidianling/im/helper/NimUICallInit.java
+4
-5
No files found.
m-im/build.gradle
View file @
870dd346
...
...
@@ -60,7 +60,7 @@ dependencies {
api
rootProject
.
ext
.
dependencies
[
"ydl-user-router"
]
implementation
rootProject
.
ext
.
dependencies
[
"BaseRecyclerViewAdapterHelper"
]
implementation
(
'com.netease.yunxin.kit:call-ui:1.
6.1
'
)
{
implementation
(
'com.netease.yunxin.kit:call-ui:1.
5.9-SNAPSHOT
'
)
{
exclude
group:
"com.netease.nimlib"
,
module:
"avsignalling"
exclude
group:
"com.netease.nimlib"
,
module:
"basesdk"
}
...
...
m-im/src/main/java/com/yidianling/im/helper/NimUICallInit.java
View file @
870dd346
...
...
@@ -47,7 +47,6 @@ public class NimUICallInit {
CallKitUIOptions
options
=
new
CallKitUIOptions
.
Builder
()
// 必要:音视频通话 sdk appKey,用于通话中使用
.
rtcAppKey
(
appKey
)
.
audio2VideoConfirm
(
true
)
.
logRootPath
(
NimSDKOptionConfig
.
getAppCacheDir
(
context
)
+
"/yidianling"
)
// 必要:当前用户 AccId
.
currentUserAccId
(
userId
)
...
...
@@ -81,7 +80,7 @@ public class NimUICallInit {
// .p2pAudioActivity(TestActivity.class)
// .p2pVideoActivity(TestActivity.class)
// 请求 rtc token 服务,若非安全模式则不需设置
.
rtcTokenService
((
uid
,
c
hannelName
,
callback
)
->
requestRtcToken
(
uid
,
channelName
,
callback
))
// 自己实现的 token 请求方法
.
rtcTokenService
((
uid
,
c
allback
)
->
requestRtcToken
(
uid
,
callback
))
// 自己实现的 token 请求方法
// 设置初始化 rtc sdk 相关配置,按照所需进行配置
.
rtcSdkOption
(
new
NERtcOption
())
// 呼叫组件初始化 rtc 范围,true-全局初始化,false-每次通话进行初始化以及销毁
...
...
@@ -93,10 +92,10 @@ public class NimUICallInit {
}
@SuppressLint
(
"CheckResult"
)
private
static
void
requestRtcToken
(
long
uid
,
String
channelName
,
RequestCallback
<
String
>
callback
)
{
private
static
void
requestRtcToken
(
long
uid
,
RequestCallback
<
String
>
callback
)
{
Map
<
String
,
String
>
body
=
new
HashMap
<>();
if
(
channelName
!=
null
)
{
body
.
put
(
"channelName"
,
channelName
);
if
(
c
urC
hannelName
!=
null
)
{
body
.
put
(
"channelName"
,
c
urC
hannelName
);
}
body
.
put
(
"uid"
,
String
.
valueOf
(
uid
));
ImHttpImpl
.
Companion
.
getInstance
().
getImApi
().
nim2Token
(
body
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment