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
a2bd91b1
Commit
a2bd91b1
authored
Oct 19, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
封装webrtc响应实体
parent
b50bfc64
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
149 additions
and
71 deletions
+149
-71
common/src/main/java/com/wecloud/rtc/RtcSubCmd.java
+13
-0
common/src/main/java/com/wecloud/rtc/SubCmd.java
+0
-66
common/src/main/java/com/wecloud/rtc/entity/RtcChannelInfo.java
+2
-2
common/src/main/java/com/wecloud/rtc/entity/RtcJoinUser.java
+4
-3
common/src/main/java/com/wecloud/rtc/entity/response/RtcCallResponse.java
+15
-0
common/src/main/java/com/wecloud/rtc/entity/response/RtcCandidateForwardResponse.java
+17
-0
common/src/main/java/com/wecloud/rtc/entity/response/RtcClientJoinResponse.java
+12
-0
common/src/main/java/com/wecloud/rtc/entity/response/RtcClientLeaveResponse.java
+12
-0
common/src/main/java/com/wecloud/rtc/entity/response/RtcClientRejectResponse.java
+12
-0
common/src/main/java/com/wecloud/rtc/entity/response/RtcResponseBase.java
+29
-0
common/src/main/java/com/wecloud/rtc/entity/response/RtcSdpForwardResponse.java
+20
-0
common/src/main/java/com/wecloud/rtc/entity/response/RtcSubDataBase.java
+13
-0
No files found.
common/src/main/java/com/wecloud/rtc/RtcSubCmd.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
;
import
java.io.Serializable
;
public
class
RtcSubCmd
implements
Serializable
{
/**
* subCmd子类型指令码
*/
public
static
final
String
SUB_CMD
=
"subCmd"
;
}
common/src/main/java/com/wecloud/rtc/SubCmd.java
deleted
100644 → 0
View file @
b50bfc64
package
com
.
wecloud
.
rtc
;
import
java.io.Serializable
;
public
class
SubCmd
implements
Serializable
{
/**
* subCmd子类型指令码
*/
public
static
final
String
SUB_CMD
=
"subCmd"
;
/**
* 创建频道
*/
public
static
final
String
CREATE
=
"create"
;
/**
* 加入频道
*/
public
static
final
String
JOIN
=
"join"
;
/**
* 拒绝加入频道
*/
public
static
final
String
REJECT
=
"reject"
;
/**
* 主动挂断(离开频道)
*/
public
static
final
String
LEAVE
=
"leave"
;
// --- 服务端响应
/**
* 接收到RTC邀请
*/
public
static
final
String
RTC_CALL
=
"rtcCall"
;
/**
* 用户状态更新事件(用户加入,用户退出,用户拒接邀请)
*/
public
static
final
String
CLIENT_EVENT
=
"clientEvent"
;
/**
* 流状态更新(切换音频 切换视频)
*/
public
static
final
String
TYPE_EVENT
=
"typeEvent"
;
/**
* 状态更新(网络断开,挂断)
*/
public
static
final
String
STATUS_EVENT
=
"statusEvent"
;
/**
* SDP数据转发
*/
public
static
final
String
SDP
=
"SDP"
;
/**
* 忙线
*/
public
static
final
String
BUSY
=
"busy"
;
}
common/src/main/java/com/wecloud/rtc/entity/RtcChannelInfo.java
View file @
a2bd91b1
...
@@ -12,8 +12,8 @@ import java.io.Serializable;
...
@@ -12,8 +12,8 @@ import java.io.Serializable;
public
class
RtcChannelInfo
implements
Serializable
{
public
class
RtcChannelInfo
implements
Serializable
{
@ApiModelProperty
(
"当前房主"
)
@ApiModelProperty
(
"当前房主"
)
String
owner
;
private
String
owner
;
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
Long
createTimestamp
;
private
Long
createTimestamp
;
}
}
common/src/main/java/com/wecloud/rtc/entity/RtcJoinUser.java
View file @
a2bd91b1
...
@@ -12,11 +12,12 @@ import java.io.Serializable;
...
@@ -12,11 +12,12 @@ import java.io.Serializable;
public
class
RtcJoinUser
implements
Serializable
{
public
class
RtcJoinUser
implements
Serializable
{
@ApiModelProperty
(
"客户端"
)
@ApiModelProperty
(
"客户端"
)
String
clientId
;
private
String
clientId
;
@ApiModelProperty
(
"加入时间"
)
@ApiModelProperty
(
"加入时间"
)
Long
createTimestamp
;
private
Long
createTimestamp
;
String
sdp
;
@ApiModelProperty
(
"sdp"
)
private
String
sdp
;
}
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcCallResponse.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
RtcCallResponse
extends
RtcSubDataBase
implements
Serializable
{
private
String
type
;
private
Long
toConversation
;
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcCandidateForwardResponse.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
RtcCandidateForwardResponse
extends
RtcSubDataBase
implements
Serializable
{
/**
* 转发的候选者数据
*/
private
String
candidateData
;
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcClientJoinResponse.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
RtcClientJoinResponse
extends
RtcSubDataBase
implements
Serializable
{
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcClientLeaveResponse.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
RtcClientLeaveResponse
extends
RtcSubDataBase
implements
Serializable
{
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcClientRejectResponse.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
RtcClientRejectResponse
extends
RtcSubDataBase
implements
Serializable
{
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcResponseBase.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* webRtc websocket下发数据封装类
*
* @param <T>
*/
@Data
public
class
RtcResponseBase
<
T
>
implements
Serializable
{
/**
* 子指令
*/
private
Integer
subCmd
;
/**
* 根据不同子指令 不同的实体
*/
private
T
subData
;
/**
* 自定义拓展字段
*/
private
String
attrs
;
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcSdpForwardResponse.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
RtcSdpForwardResponse
extends
RtcSubDataBase
implements
Serializable
{
/**
* channelId : 1234263457652
* clientId : 7657567
* sdpData : xxxxxxxxxxxxxxxx
* sdpType : Offer/Answer
*/
private
String
sdpData
;
private
String
sdpType
;
}
common/src/main/java/com/wecloud/rtc/entity/response/RtcSubDataBase.java
0 → 100644
View file @
a2bd91b1
package
com
.
wecloud
.
rtc
.
entity
.
response
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
RtcSubDataBase
implements
Serializable
{
private
Long
channelId
;
private
String
clientId
;
private
Long
timestamp
;
}
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