[Bug 21954] New: SourceBuffer AppendStream should have restrictions on MaxSize attribute

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

            Bug ID: 21954
           Summary: SourceBuffer AppendStream should have restrictions on
                    MaxSize attribute
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
          Assignee: adrianba@microsoft.com
          Reporter: jdsmith@microsoft.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

Problem Description:  SourceBuffer AppendStream has a MaxSize attribute that
has type unsigned long long with no restriction.  Some behaviors for
AppendStream would be unsuitable.  For instance, if MaxSize was set to
infinity, unsigned long long would return a value of 0.  


Proposed Change: Modify the WebIDL for SourceBuffer to add EnforceRange to
MaxSize:

interface SourceBuffer : EventTarget {
    readonly    attribute boolean             updating;
    readonly    attribute TimeRanges          buffered;
                attribute double              timestampOffset;
    readonly    attribute AudioTrackList      audioTracks;
    readonly    attribute VideoTrackList      videoTracks;
    readonly    attribute TextTrackList       textTracks;
                attribute double              appendWindowStart;
                attribute unrestricted double appendWindowEnd;
    void appendBuffer (ArrayBuffer data);
    void appendBuffer (ArrayBufferView data);
    void appendStream (Stream stream, optional [EnforceRange] unsigned long
long maxSize);
    void abort (optional AbortMode mode);
    void remove (double start, double end);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 7 May 2013 18:37:22 UTC