Commit 90228b19 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Request video frame also on init of call model


Former-commit-id: a2ca2bf647a7f8757f246d3c014a27be932c1524
parent cf87e180
......@@ -55,7 +55,8 @@ class CallViewModel(val call: Call) : ViewModel() {
fireActionsOnCallStateChanged(state)
attemptSetDeviceThumbnail(state)
call?.remoteParams?.videoEnabled()?.also {
call.requestNotifyNextVideoFrameDecoded()
if (!videoContent.value!!)
call.requestNotifyNextVideoFrameDecoded()
}
callState.value = state
}
......@@ -80,6 +81,10 @@ class CallViewModel(val call: Call) : ViewModel() {
historyEvent = call.callLog.historyEvent()
call.addListener(callListener)
fireActionsOnCallStateChanged(call.state)
call?.remoteParams?.videoEnabled()?.also {
call.requestNotifyNextVideoFrameDecoded()
}
}
private fun fireActionsOnCallStateChanged(cstate: Call.State) {
......
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