After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 582774 - When no video is being sent, the video output and preview should show an icon instead of being black.
When no video is being sent, the video output and preview should show an icon...
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: VoIP
2.26.x
Other All
: Normal enhancement
: ---
Assigned To: empathy-maint
: 580778 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-15 13:59 UTC by Jonathan Tellier
Modified: 2009-05-26 15:36 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
I would have liked to be able to do more tests, but video calls work really poorly for me. As I result, I have been unable to perform every test cases I could think of. I hope everything works fine. (8.27 KB, patch)
2009-05-21 20:25 UTC, Jonathan Tellier
none Details | Review
Fixed and improved (10.98 KB, patch)
2009-05-22 20:22 UTC, Jonathan Tellier
none Details | Review
Latest patch (11.01 KB, patch)
2009-05-25 14:42 UTC, Jonathan Tellier
none Details | Review

Description Jonathan Tellier 2009-05-15 13:59:05 UTC
Currently, the call window's video output and video preview are black when no video is received or sent. Instead, the video output should show the remote contact's avatar and the video preview should show the user's avatar.
Comment 2 Xavier Claessens 2009-05-20 22:55:05 UTC
There are lots of code commented out, I think that patch could be a bit cleaned. I didn't read the code yet :p
Comment 3 Jonathan Tellier 2009-05-20 23:50:36 UTC
Yeah, well if you read the last commit comment, you'll see that it's a work in progress and that the fix is not completed yet. I see that it brings confusion that I have posted the link to my branch before I'm finished addressing this bug. In the future, I won't post links to branches that don't contain a finished patches.

Sorry about that. 
Comment 4 Jonny Lamb 2009-05-21 08:27:28 UTC
I think posting links to branches that are incomplete is really useful. I would thoroughly recommend you continue doing so. However, I think you should say so in the bug report, not just in the commit message. We immediately jump to looking at the diff in gitweb and ignore the commit message as we're going to review the code anyway. After all, I made exactly the same observation as Xavier, but he beat me to commenting about it.

Therefore, I think you should continue pasting links to branches (and I'm sure Xavier will agree with me) as long as you make it clear in the bug report that it's not finished yet -- just something like "work in progress". When you finish, simply follow up with another message saying "ok done pls review kthbye".

Thanks for your contributions!
Comment 5 Andrea Cimitan 2009-05-21 09:02:51 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=580778
This seems saner to me.
Comment 6 Xavier Claessens 2009-05-21 10:17:44 UTC
I agree with Jonny Lamb, reading "Branch containing the fix" I though it was the final patch. Just write "Branch containing the work in progress" next time and it's perfect ;)

@Andrea: First UI I made was doing that: the window resizes to show the video when the stream comes, and I think it was not a very good idea. I prefer keeping the UI at the same size and just display the avatar as placeholder. But that's just my opinion... What do others think about that?
Comment 7 Xavier Claessens 2009-05-21 10:19:43 UTC
*** Bug 580778 has been marked as a duplicate of this bug. ***
Comment 8 Xavier Claessens 2009-05-21 10:21:05 UTC
*** Bug 580778 has been marked as a duplicate of this bug. ***
Comment 9 Guillaume Desmottes 2009-05-21 10:23:38 UTC
I agree, having the window resizing each time sending video or video preview is enabled/disabled doesn't sound like a good idea to me.
Comment 10 Andrea Cimitan 2009-05-21 10:32:49 UTC
but at least, removing video when the protocol doesn't support it? (gtalk?)
having a big window when it would not work... it's not so smart, but of course having less code to maintain is better :) (without special cases for each protocol...).

I'm for reducing the window, then, starting from placing the preview over the incoming video as in your bugreport.
Comment 11 Jonathan Tellier 2009-05-21 20:25:39 UTC
Created attachment 135134 [details] [review]
I would have liked to be able to do more tests, but video calls work really poorly for me. As I result, I have been unable to perform every test cases I could think of. I hope everything works fine.

 src/empathy-call-window.c |  115 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 109 insertions(+), 6 deletions(-)
Comment 12 Guillaume Desmottes 2009-05-22 16:31:40 UTC
If the contact doesn't have an avatar the call-window looks really weird. You should display a default icon in that case (the same as on the avatar selector button when no avatar is set).
Comment 13 Jonathan Tellier 2009-05-22 20:22:55 UTC
Created attachment 135207 [details] [review]
Fixed and improved

 libempathy-gtk/empathy-video-widget.c |    4 +-
 libempathy-gtk/empathy-video-widget.h |    3 +
 src/empathy-call-window.c             |  144 +++++++++++++++++++++++++++++++--
 3 files changed, 141 insertions(+), 10 deletions(-)
Comment 14 Guillaume Desmottes 2009-05-25 10:08:15 UTC
- empathy_call_window_constructed: the EmpathyTpContactFactory is leaked
Comment 15 Guillaume Desmottes 2009-05-25 10:14:49 UTC
You can probably squash the 2 first patches and re-record them with a better commit msg too.
Comment 17 Jonathan Tellier 2009-05-25 14:42:50 UTC
Created attachment 135327 [details] [review]
Latest patch

 libempathy-gtk/empathy-video-widget.c |    4 +-
 libempathy-gtk/empathy-video-widget.h |    3 +
 src/empathy-call-window.c             |  146 +++++++++++++++++++++++++++++++--
 3 files changed, 143 insertions(+), 10 deletions(-)
Comment 18 Guillaume Desmottes 2009-05-26 15:21:31 UTC
Your call-video-widgets-show-icons branch looks good. Please merge
Comment 19 Guillaume Desmottes 2009-05-26 15:36:43 UTC
Merged to master. Thanks for the branch!