mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 09:36:34 +00:00
feat: adding more command handlers in WebRtcCallService.kt
This commit is contained in:
@@ -33,6 +33,20 @@ class CallMessage(): ControlMessage() {
|
||||
companion object {
|
||||
const val TAG = "CallMessage"
|
||||
|
||||
fun answer(sdp: String, callId: UUID) = CallMessage(SignalServiceProtos.CallMessage.Type.ANSWER,
|
||||
listOf(sdp),
|
||||
listOf(),
|
||||
listOf(),
|
||||
callId
|
||||
)
|
||||
|
||||
fun offer(sdp: String, callId: UUID) = CallMessage(SignalServiceProtos.CallMessage.Type.OFFER,
|
||||
listOf(sdp),
|
||||
listOf(),
|
||||
listOf(),
|
||||
callId
|
||||
)
|
||||
|
||||
fun endCall(callId: UUID) = CallMessage(SignalServiceProtos.CallMessage.Type.END_CALL, emptyList(), emptyList(), emptyList(), callId)
|
||||
|
||||
fun fromProto(proto: SignalServiceProtos.Content): CallMessage? {
|
||||
|
||||
Reference in New Issue
Block a user