Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
8f5adc04
Commit
8f5adc04
authored
Jun 01, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtc记录
parent
417a65ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
core/src/main/java/com/wecloud/im/service/ImRtcRecordService.java
+2
-1
core/src/main/java/com/wecloud/im/service/impl/ImRtcRecordServiceImpl.java
+1
-5
core/src/main/java/com/wecloud/rtc/service/impl/RtcServiceImpl.java
+1
-1
No files found.
core/src/main/java/com/wecloud/im/service/ImRtcRecordService.java
View file @
8f5adc04
package
com
.
wecloud
.
im
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.wecloud.im.entity.ImClient
;
import
com.wecloud.im.entity.ImRtcRecord
;
import
com.wecloud.im.param.rtc.CreateRtcChannelParam
;
import
com.wecloud.im.param.rtc.RtcRecordParam
;
...
...
@@ -18,7 +19,7 @@ public interface ImRtcRecordService extends BaseService<ImRtcRecord> {
* @param param
* @param channelId
*/
void
createRtcRecord
(
CreateRtcChannelParam
param
,
Long
channelId
);
void
createRtcRecord
(
CreateRtcChannelParam
param
,
Long
channelId
,
ImClient
currentClient
);
/**
* 更新音视频记录
...
...
core/src/main/java/com/wecloud/im/service/impl/ImRtcRecordServiceImpl.java
View file @
8f5adc04
...
...
@@ -31,15 +31,11 @@ import java.util.Date;
@Service
public
class
ImRtcRecordServiceImpl
extends
BaseServiceImpl
<
ImRtcRecordMapper
,
ImRtcRecord
>
implements
ImRtcRecordService
{
@Autowired
private
ImClientService
imClientService
;
@Async
@Override
public
void
createRtcRecord
(
CreateRtcChannelParam
param
,
Long
channelId
)
{
public
void
createRtcRecord
(
CreateRtcChannelParam
param
,
Long
channelId
,
ImClient
currentClient
)
{
try
{
ImClient
currentClient
=
imClientService
.
getCurrentClient
();
ImRtcRecord
rtcRecord
=
new
ImRtcRecord
();
rtcRecord
.
setId
(
SnowflakeUtil
.
getId
());
rtcRecord
.
setFkAppid
(
currentClient
.
getFkAppid
());
...
...
core/src/main/java/com/wecloud/rtc/service/impl/RtcServiceImpl.java
View file @
8f5adc04
...
...
@@ -120,7 +120,7 @@ public class RtcServiceImpl extends UserStateListener implements RtcService {
wsRtcWrite
.
rtcCall
(
rtcCallResponse
,
toClient
.
getId
());
// 创建通话记录 todo 优化为mq推送
imRtcRecordService
.
createRtcRecord
(
createRtcChannelParam
,
createRtcChannelResult
.
getChannelId
());
imRtcRecordService
.
createRtcRecord
(
createRtcChannelParam
,
createRtcChannelResult
.
getChannelId
()
,
currentClient
);
// TODO 待开发 下发安卓和ios系统推送
...
...
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