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
61360c26
Commit
61360c26
authored
Jul 25, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加视频配置
parent
5010c75d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
build.gradle
build.gradle
+1
-1
NimUICallInit.java
m-im/src/main/java/com/yidianling/im/helper/NimUICallInit.java
+15
-0
No files found.
build.gradle
View file @
61360c26
...
...
@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version
=
'1.2.3'
constrait_support_version
=
'1.0.2'
componentVersion
=
"0.3.0.
3
-SNAPSHOT"
componentVersion
=
"0.3.0.
4
-SNAPSHOT"
}
repositories
{
mavenCentral
()
...
...
m-im/src/main/java/com/yidianling/im/helper/NimUICallInit.java
View file @
61360c26
...
...
@@ -4,12 +4,16 @@ import android.annotation.SuppressLint;
import
android.content.Context
;
import
android.text.TextUtils
;
import
com.netease.lava.nertc.sdk.NERtcEx
;
import
com.netease.lava.nertc.sdk.NERtcOption
;
import
com.netease.lava.nertc.sdk.video.NERtcEncodeConfig
;
import
com.netease.lava.nertc.sdk.video.NERtcVideoConfig
;
import
com.netease.nimlib.sdk.RequestCallback
;
import
com.netease.yunxin.nertc.nertcvideocall.bean.InvitedInfo
;
import
com.netease.yunxin.nertc.ui.CallKitNotificationConfig
;
import
com.netease.yunxin.nertc.ui.CallKitUI
;
import
com.netease.yunxin.nertc.ui.CallKitUIOptions
;
import
com.netease.yunxin.nertc.ui.extension.SelfConfigExtension
;
import
com.netease.yunxin.nertc.ui.service.DefaultIncomingCallEx
;
import
com.ydl.ydlcommon.modular.ModularServiceManagerKt
;
import
com.ydl.ydlcommon.utils.log.XLog
;
...
...
@@ -47,6 +51,17 @@ public class NimUICallInit {
.
currentUserRtcUId
(
Long
.
parseLong
(
userId
))
// 通话接听成功的超时时间单位 毫秒,默认30s
.
timeOutMillisecond
(
30
*
1000L
)
.
rtcCallExtension
(
new
SelfConfigExtension
(){
@Override
public
void
configVideoConfig
()
{
NERtcVideoConfig
videoConfig
=
new
NERtcVideoConfig
();
videoConfig
.
frameRate
=
NERtcEncodeConfig
.
NERtcVideoFrameRate
.
FRAME_RATE_FPS_15
;
videoConfig
.
bitrate
=
600
;
videoConfig
.
width
=
640
;
videoConfig
.
height
=
480
;
NERtcEx
.
getInstance
().
setLocalVideoConfig
(
videoConfig
);
}
})
// 此处为 收到来电时展示的 notification 相关配置,如图标,提示语等。
.
notificationConfigFetcher
(
invitedInfo
->
new
CallKitNotificationConfig
(
R
.
drawable
.
avchat_imcoming_call
))
// 收到被叫时若 app 在后台,在恢复到前台时是否自动唤起被叫页面,默认为 true
...
...
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