[Bug 18709] New: Add SourceBuffer.flush() method

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

           Summary: Add SourceBuffer.flush() method
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
        AssignedTo: adrianba@microsoft.com
        ReportedBy: acolwell@chromium.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org


This is a proposal to add a method to remove time ranges from the SourceBuffer.
append() lets the application explicitly add media to the presentation and this
would allow it to explicitly remove media.

Here is the proposed signature & some initial ideas about how it should behave.

partial interface SourceBuffer {
  void flush(TimeRanges ranges);
};

- If readyState is not 'open' throw an INVALID_STATE_ERR exception
- ranges.start() is inclusive & ranges.end() is exclusive (ie [0-1) ). Any
media data with a starting timestamp within this range will be removed.
- If ranges.end() is in the middle of a group of pictures(GOP), everything
between end() and the end of the GOP will be removed.
- If the beginning of a GOP is inside a range, then the whole GOP will be
removed.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 27 August 2012 18:06:18 UTC