empathy-call: keep video preview and video transmission in sync
Submitted by Fabrice Bellet
Link to original bug (#775160)
Description
Created attachment 340820 call: keep video preview and transmission in sync
Hi!
I noticed inconsistencies between the video preview display in the empathy-call client, and the current status of the video transmission in the ongoing call.
This patch is an attempt to keep both in sync. Several cases change the display of the video preview :
1/ the user may toggle the video transmission with the camera button
while the call is established. When the call is disconnected,
the preview remains its last state and the camera toggle button
is made inactive.
2/ the user may choose to initiate a new call with or without video.
3/ the user may reply to an incoming call with or without video.
Status of the video preview that depends on 3/ is handled in empathy_call_window_state_changed_cb(), and status that depends on 2/ is handled in start_call(). Querying the telepathy video sending state in start_call() was too early in my experience. That's the reason I delayed the check in the callback instead.
Patch 340820, "call: keep video preview and transmission in sync":
1008-call-keep-video-preview-and-transmission-in-sync.patch
Version: 3.12.x