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

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 the QA Contact for the bug.

Received on Wednesday, 16 January 2013 23:35:39 UTC