[Bug 25966] New: Use ArrayBufferView and ArrayBuffer instead of Uint8Array in APIs

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25966

            Bug ID: 25966
           Summary: Use ArrayBufferView and ArrayBuffer instead of
                    Uint8Array in APIs
           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: acolwell@google.com, mike@w3.org,
                    public-html-media@w3.org

The EME APIs currently use Uint8Array for all binary data. Uint8Array is just a
subclass of ArrayBufferView, and I don't think there is a reason to require
8-bit formatting.

For data provided to the application, we might need to use an ArrayBuffer.

MSE's appendBuffer() accepts either ArrayBuffer or ArrayBufferView [1]. I'm not
sure whether EME needs to support both.

[1]
https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source-respec.html#widl-SourceBuffer-appendBuffer-void-ArrayBuffer-data

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 3 June 2014 21:27:30 UTC