W3C home > Mailing lists > Public > public-html-media@w3.org > January 2013

[Bug 20691] New: Should createSession()'s type parameter be required?

From: <bugzilla@jessica.w3.org>
Date: Wed, 16 Jan 2013 23:35:38 +0000
To: public-html-media@w3.org
Message-ID: <bug-20691-5436@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20691

            Bug ID: 20691
           Summary: Should createSession()'s type parameter be required?
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Encrypted Media Extensions
          Assignee: adrianba@microsoft.com
          Reporter: ddorwin@google.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

In the January 14, 2013 version of the spec, createSession()'s |type| parameter
is optional, meaning it may be null. The question is whether this makes sense.

|type|'s primary purpose is as a media/MIME type to tell the CDM how to
interpret the |initData|, which is container-specific.

|type| was left optional in case key systems wanted to create sessions not for
a specific key, or something like that. With no real world use case for this,
maybe we should make it required. This also avoid null being used for some key
system-specific purpose, which could lead to fragmentation. If a generally
useful use case emerges, we can always make it optional in the future without
breaking existing apps.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 16 January 2013 23:35:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 January 2013 23:35:40 GMT