<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [MSE] SourceBuffer abort() before appending segment causes partial segment"
   href="https://bugs.webkit.org/show_bug.cgi?id=165342">165342</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[MSE] SourceBuffer abort() before appending segment causes partial segment
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 10
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Media Elements
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>joeyparrish&#64;google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Shaka Player (<a href="https://github.com/google/shaka-player">https://github.com/google/shaka-player</a>) discovered that calling abort() on Safari's SourceBuffer before appending a segment sometimes results in only part of the segment showing up in buffer.

In our test, we append the init segment, then call abort(), then append the first media segment.  Only 6.9 seconds of the 10-second segment show up.

This is similar in many ways to this bug on Safari 9:  <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [MSE] SourceBuffer abort() causes decoder failure"
   href="show_bug.cgi?id=160316">https://bugs.webkit.org/show_bug.cgi?id=160316</a>
However, the content from that bug does not trigger this one.  It is unclear to me why this bug on Safari 10 is content-specific.


To reproduce:

1. Visit <a href="http://storage.googleapis.com/shaka-demo-assets/_bugs/safari-10-mse-abort/index.html">http://storage.googleapis.com/shaka-demo-assets/_bugs/safari-10-mse-abort/index.html</a> in Safari
2. Open the JavaScript console
3. Observe the error message showing that only part of the segment is in buffer.

Reproducible on macOS Sierra, Safari 10.0.1 (12602.2.14.0.7) and WebKit nightly r209234.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>