Re: Proposal for WebIDL for bundle policy from JSEP

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