This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21954 - SourceBuffer AppendStream should have restrictions on MaxSize attribute
Summary: SourceBuffer AppendStream should have restrictions on MaxSize attribute
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Aaron Colwell
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-07 18:37 UTC by Jerry Smith
Modified: 2013-05-14 10:24 UTC (History)
4 users (show)

See Also:


Attachments

Description Jerry Smith 2013-05-07 18:37:17 UTC
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);
Comment 1 Aaron Colwell 2013-05-13 21:15:46 UTC
Changes committed.
https://dvcs.w3.org/hg/html-media/rev/71968956733e