W3C home > Mailing lists > Public > public-webrtc@w3.org > October 2014

Re: Proposal for WebIDL for bundle policy from JSEP

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Thu, 02 Oct 2014 14:58:48 -0400
Message-ID: <542DA068.2060001@mozilla.com>
To: Peter Thatcher <pthatcher@google.com>, Martin Thomson <martin.thomson@gmail.com>
CC: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 10/1/14, 4:35 PM, Peter Thatcher wrote:
> enum RTCBundlePolicy {
>    "balanced",
>    "max-compat",
>    "max-bundle",
> }
>
> dictionary RTCConfiguration {
>    // ... iceServers, etc
>    RTCBundlePolicy bundlePolicy = "balanced";
> }

If you need to preserve the option of adding enum values in the future 
then you may want:

    enum RTCBundlePolicy {
       "balanced",
       "max-compat",
       "max-bundle",
    };

    dictionary RTCConfiguration {
       // ... iceServers, etc
       DOMString bundlePolicy = "balanced"; // see RTCBundlePolicy
    };

Feel free to complain in Bug 19936 [1].

.: Jan-Ivar :.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=19936
Received on Thursday, 2 October 2014 18:59:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:42 UTC