W3C home > Mailing lists > Public > public-webrtc@w3.org > July 2015

Re: I have created a PR for RtpSender.getCapabilities and RtpReceiver.getCapabilities

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Sat, 18 Jul 2015 09:33:15 +1000
Message-ID: <CAHp8n2kK0aw6tHTXCBzpmzUmyAry3XkVs5FMno4GNsdY9UT4nw@mail.gmail.com>
To: Roman Shpount <roman@telurix.com>
Cc: public-webrtc <public-webrtc@w3.org>, Peter Thatcher <pthatcher@google.com>
On 18 Jul 2015 9:20 am, "Roman Shpount" <roman@telurix.com> wrote:
> On Fri, Jul 17, 2015 at 6:58 PM, Peter Thatcher <pthatcher@google.com>
>> 1.  Is there enough consensus from the WG to add this?  I'm in favor of
it :).
> I am for it as well.
>> 2.  Should getCapabilities return a Promise?  I think it doesn't need to
be, so I made it not return a Promise.
> I do not think this needs to be a promise. In most cases these things are
known by implementation in advance and should not require a lot of time or
resources to compute.
>> 3.  Should codec.name be a MIME type ("video/vp8") or just a name
("vp8")?  If a MIME type, should it be code.mimeType instead of codec.name?
Or should we have both codec.name and codec.mimeType.   I've made it
codec.name with MIME type here, which matches ORTC.  But I'm currently
thinking I'd prefer codec.name with a name instead.  I'd also be happy with
having both codec.name and codec.mimeType.
> I would think that having separate codec.name and codec.mimeType would be
the best option. Based on
http://www.iana.org/assignments/media-types/media-types.xhtml there are
cases when there is a mismatch between the name and the mime type, such
as "vnd.vivo" and "video/vnd-vivo". I hope no will ever need any of those
codecs, but theoretically it is possible.

One piece of warning: duplicate information like this can lead to
conflicting information orifices in the two fields. I would prefer to just
use mime types as defined by IANA:
http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml. note
that these are the rtp mime types, not the file mime types, which is more
appropriate for WebRTC imho.

Received on Friday, 17 July 2015 23:33:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:08 UTC