<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>160316</bug_id>
          
          <creation_ts>2016-07-28 14:38:50 -0700</creation_ts>
          <short_desc>[MSE] SourceBuffer abort() causes decoder failure</short_desc>
          <delta_ts>2016-12-02 11:56:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Safari 9</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joey Parrish">joeyparrish</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1215395</commentid>
    <comment_count>0</comment_count>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2016-07-28 14:38:50 -0700</bug_when>
    <thetext>Shaka Player (https://github.com/google/shaka-player) discovered that calling abort() on Safari&apos;s SourceBuffer causes a decoder error.

In our test, we append several segments, then call abort() and append several more.  The abort() call should reset the decoder&apos;s timestamp, but instead causes a complete failure.

To reproduce:

1. Visit http://storage.googleapis.com/shaka-demo-assets/_bugs/safari-abort/index.html in Safari
2. Open the JavaScript console
3. Observe failures instead of playback

In Chrome, Firefox, Opera, Edge, and IE 11, the result is that the video plays.

In Safari 9, nothing plays and there are several errors in the JS console:
  MSE OPERATION FAILED
  VIDEO ERROR - MediaError {code: 3}
  EXCEPTION - Error: InvalidStateError: DOM Exception 11

OS X El Capitan, Safari 9.0.3 (11601.4.4) and in WebKit nightly r203816.

I&apos;m not sure, but this may be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=135164</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1215523</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-07-29 01:35:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/27605812&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234105</commentid>
    <comment_count>2</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2016-09-27 16:05:13 -0700</bug_when>
    <thetext>rdar://problem/28438637</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234130</commentid>
    <comment_count>3</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2016-09-27 16:48:45 -0700</bug_when>
    <thetext>Joey, we have an old bugzilla bug tracking this scenario: &lt;https://bugs.webkit.org/show_bug.cgi?id=135164&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234143</commentid>
    <comment_count>4</comment_count>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2016-09-27 17:02:02 -0700</bug_when>
    <thetext>Great, thanks for letting me know.  I&apos;ll follow along there if you want to close this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255795</commentid>
    <comment_count>5</comment_count>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2016-12-02 11:56:01 -0800</bug_when>
    <thetext>This is not reproducible on Safari 10.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>