BBS数据表设计
2018-06-21 17:02:07 0 举报
视频通话上层数据模型
作者其他创作
大纲/内容
HistoryItem(历史通话记录)
白色是的类是通用数据类,服务器和客户端都要有;蓝色数据类只需要服务器有,黄色数据类只需要客户端有。
AudioProtocol
各种音屏协议名称(String)
VideoProtocol
各种视频协议名称(String)
ResourceManager
- 摄像头- 麦克风- 铃声- 马达(震动)
- 检查权限的方法- 申请权限的方法- 初始化各种资源的方法
ParticipantStatus
- WAITING: static final int- JOINED: static final int- HUNG_UP: static final int- HUNG_UP_OVERTIME: static final int
DCMessage(通过DataChannel传递的数据信息)
- type: int- from- content: byte[]
PeerConnectionContext
- OFFER_PEER: static final int- ANSWER_PEER: static final int- peerType: int- sId: String- uId:String(对端的User id)- mPeerConnection: PeerConnection- mDataChannel:DataChannel- remoteMediaStream:MediaStream- pcContextMonitor: PeerConnectionContextMonitor
WebRTCLocalParams
- pcFactory:PeerConnectionFactory- pcConfigs:PeerConnectionConfigs- localMediaStream: MediaStream- pcConstraints: MediaConstraints- videoSource: VideoSource- videoConstraints: MediaConstraints- audioSource: AudioSource- audioConstraints:MediaConstraints- dataChannelInit: DataChannel.Init
ServerLocal
CallContextMonitor
- airtime: long(通话时长)- traffic:long(总流量)
CallContextBase
PeerConnectionConfigs
- videoWidth:int- videoHeight:int- videoStartBitrate:int- videoCodec:int- videoFps:int- videoCodecHwAcceleration:boolean- audioStartBitrate:int- audioCodec: String- cpuOveruseDetection: boolean
CallContext
Participant
- uId:String- nickName:String- icon: String- stauts:int
VideoFrameConfigs
- x:int- y:int- width:int- height: int- scalingType:ScalingType- mirror:boolean
CallManager
SignalServerClient
- STUN server 地址- TURN server地址- SIGNAL server地址- 服务器请求类型编码(以”RQ”开头)- 服务器应答类型编码(以“RE”开头)- 长连接socket client
PeerConnectionContextMonitor
- airtime: long(通话时长)- traffic:总流量
CallConfigs
0 条评论
下一页