Class InviteEntity
java.lang.Object
io.github.lunasaw.gbproxy.server.entity.InviteEntity
- Author:
- luna
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringBuffer
addSsrc
(StringBuffer content, String ssrc) static StringBuffer
addSubStream
(StringBuffer content, Boolean subStream, ManufacturerEnum manufacturer) static StringBuffer
getInvitePlayBackBody
(StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, String startTime, String endTime) static StringBuffer
getInvitePlayBody
(InviteSessionNameEnum inviteSessionNameEnum, Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturer, String startTime, String endTime) static StringBuffer
getInvitePlayBody
(StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc) static StringBuffer
getInvitePlayBody
(StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturerEnum) static StringBuffer
getInvitePlayBody
(Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc) static StringBuffer
getInvitePlayBody
(Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturer) static StringBuffer
getInvitePlayBodyBack
(Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturer, String startTime, String endTime) static String
getSubject
(String subId, String ssrc, String userId) 组装subjectstatic void
static String
playNow()
static String
回放恢复static String
static String
回放暂停static String
playRange
(long seekTime) static String
回放定位static String
static String
回放倍速
-
Constructor Details
-
InviteEntity
public InviteEntity()
-
-
Method Details
-
main
-
getSubject
组装subject- Parameters:
subId
- 通道Idssrc
- 混淆码userId
- 设备Id- Returns:
-
getInvitePlayBody
public static StringBuffer getInvitePlayBody(StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc) -
getInvitePlayBody
public static StringBuffer getInvitePlayBody(StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturerEnum) -
getInvitePlayBody
public static StringBuffer getInvitePlayBody(Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc) -
getInvitePlayBody
public static StringBuffer getInvitePlayBody(Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturer) -
getInvitePlayBackBody
public static StringBuffer getInvitePlayBackBody(StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, String startTime, String endTime) -
getInvitePlayBodyBack
public static StringBuffer getInvitePlayBodyBack(Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturer, String startTime, String endTime) -
getInvitePlayBody
public static StringBuffer getInvitePlayBody(InviteSessionNameEnum inviteSessionNameEnum, Boolean seniorSdp, StreamModeEnum streamModeEnum, String userId, String sdpIp, Integer mediaPort, String ssrc, Boolean subStream, ManufacturerEnum manufacturer, String startTime, String endTime) - Parameters:
seniorSdp
- [可选] 部分设备需要扩展SDP,需要打开此设置streamModeEnum
- [必填] 流传输模式userId
- [必填] 设备IdsdpIp
- [必填] 设备IPmediaPort
- [必填] 设备端口ssrc
- [必填] 混淆码subStream
- [可选] 是否子码流manufacturer
- [可选] 设备厂商- Returns:
-
addSsrc
-
addSubStream
public static StringBuffer addSubStream(StringBuffer content, Boolean subStream, ManufacturerEnum manufacturer) -
playPause
-
playPause
回放暂停- Parameters:
cseq
-
-
playNow
-
playNow
回放恢复- Parameters:
cseq
-- Returns:
-
playRange
-
playRange
回放定位- Parameters:
cseq
-seekTime
-- Returns:
-
playSpeed
-
playSpeed
回放倍速- Parameters:
cseq
-speed
-- Returns:
-