<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 - HTML5 Video tag, HLS VOD: duration increases as the chunks are loading"
   href="https://bugs.webkit.org/show_bug.cgi?id=242059">242059</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>HTML5 Video tag, HLS VOD: duration increases as the chunks are loading
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>macOS 12
          </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
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vaerlux@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Steps to reproduce:

1. Limit internet connection speed. I tested using 1 mbps down.
2. Create a stream using <video> tag (I just used the sandbox at <a href="https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_video_all">https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_video_all</a>): 
```
<video width="640" height="400" controls="controls" src="<a href="https://multiplatform-f.akamaihd.net/i/multi/april11/sintel/sintel-hd_,512x288_450_b,640x360_700_b,768x432_1000_b,1024x576_1400_m,.mp4.csmil/master.m3u8">https://multiplatform-f.akamaihd.net/i/multi/april11/sintel/sintel-hd_,512x288_450_b,640x360_700_b,768x432_1000_b,1024x576_1400_m,.mp4.csmil/master.m3u8</a>"></video>
</video>
```
3. Observe the displayed video duration in video controls. Initially the duration is correct, but as the .ts start loading, the duration drops to a few seconds and slowly increases as more chunks get downloaded.

The expected result is that the duration is always equal to the duration of the entire VOD.

The issue could be reproduced on Safari on MacOS (12.4) as well as on iOS</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>