Bug 47038 - TpCallContentMediaDescription should implement extra interfaces
Summary: TpCallContentMediaDescription should implement extra interfaces
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.collabora.com/git/user/xc...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-03-07 01:02 UTC by Xavier Claessens
Modified: 2012-03-14 08:37 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Xavier Claessens 2012-03-07 01:02:38 UTC
Helper API should be added on MD to implement those interfaces:

org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTPHeaderExtensions
org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTCPFeedback
org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTCPExtendedReports
Comment 1 Xavier Claessens 2012-03-07 01:03:26 UTC
Done in my call1-md branch:
http://cgit.collabora.com/git/user/xclaesse/telepathy-glib.git/log/?h=call1-md
Comment 2 Olivier Crête 2012-03-07 06:54:45 UTC
Added a couple fixes/improvements on your branch

http://cgit.collabora.com/git/user/tester/telepathy-glib.git/log/?h=call1-md

Also, I've implemented support in tp-gabble

http://cgit.collabora.com/git/user/tester/telepathy-gabble.git/log/?h=call1-md
Comment 3 Olivier Crête 2012-03-07 06:55:04 UTC
Both branches should probably gain unit tests.
Comment 4 Xavier Claessens 2012-03-08 01:05:27 UTC
The problem with those function that just add the interface, is that they leave properties undefined. If I understand correctly, the goal is to be able to implement the ifaces with HeaderExtensions and/or FeedbackMessages empty, right?

In that case, I'm ok with tp_call_content_media_description_add_rtp_header_extensions_interface() since that iface has no other properties. But tp_call_content_media_description_add_rtcp_feedback_interface() is useless since you need to define does-avpf so just calling tp_call_content_media_description_set_does_avpf() is better. And tp_call_content_media_description_add_rtcp_extended_reports_interface() is useless since you need to define all properties anyway with tp_call_content_media_description_set_rtcp_extended_reports().
Comment 5 Olivier Crête 2012-03-12 08:01:15 UTC
For all these cases, the user case is the initial offer. The goal is to tell tp-fs which interfaces the CM supports.
Comment 6 Xavier Claessens 2012-03-14 05:18:17 UTC
There are no change notification, so all those properties should be marked immutable, right? Spec could be fixed to mark them immutable btw.

So there is no point in telling an interface is implemented if we don't give the value for its properties... or there is something I don't understand...
Comment 7 Olivier Crête 2012-03-14 06:42:53 UTC
The first offer is empty and asks the Client to fill it, but the client has to know which interfaces are available and which aren't.
Comment 8 Xavier Claessens 2012-03-14 08:37:53 UTC
ok now I understood. Merged the branch.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.