Commit 064302f4 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Accept early media only in proper state


Former-commit-id: 59e9f45d
parent f9d3e66e
......@@ -7,12 +7,14 @@ import org.linphone.core.MediaDirection
fun Call.extendedAcceptEarlyMedia() {
val earlyMediaCallParams: CallParams = coreContext.core.createCallParams(this)
earlyMediaCallParams.videoDirection = MediaDirection.RecvOnly
earlyMediaCallParams.audioDirection = MediaDirection.Inactive
earlyMediaCallParams.recordFile = callLog.historyEvent().mediaFileName
acceptEarlyMediaWithParams(earlyMediaCallParams)
startRecording()
if (state == Call.State.IncomingReceived) {
val earlyMediaCallParams: CallParams = coreContext.core.createCallParams(this)
earlyMediaCallParams.videoDirection = MediaDirection.RecvOnly
earlyMediaCallParams.audioDirection = MediaDirection.Inactive
earlyMediaCallParams.recordFile = callLog.historyEvent().mediaFileName
acceptEarlyMediaWithParams(earlyMediaCallParams)
startRecording()
}
}
fun Call.extendedAccept() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment