<?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>225136</bug_id>
          
          <creation_ts>2021-04-27 21:15:37 -0700</creation_ts>
          <short_desc>Short HLS video with &apos;loop&apos; attribute stutters at the beginning of 3rd loop</short_desc>
          <delta_ts>2022-02-12 22:17:10 -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 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Dylan Jhaveri">dylanjhaveri</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ben</cc>
    
    <cc>bfulgham</cc>
    
    <cc>chrisguttandin</cc>
    
    <cc>dylanjhaveri</cc>
    
    <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1754900</commentid>
    <comment_count>0</comment_count>
    <who name="Dylan Jhaveri">dylanjhaveri</who>
    <bug_when>2021-04-27 21:15:37 -0700</bug_when>
    <thetext>Under the following conditions, the video stutters:

  - Using &lt;video&gt; element with a src that links to an HLS manifest that has multiple renditions
  - Using the `loop` attribute
  - Short video (~30 seconds-ish)

I tested this with multiple different sources. It doesn&apos;t appear to be an issue specific to one kind of video encoding or container format.

This is a demonstration with 4 different video sources:

Link: https://66vmt.csb.app/
Code: https://codesandbox.io/s/66vmt

Debugging:

  - I tried &quot;manually&quot; looping the video by avoiding the `loop` attribute and instead running javascript that listens for the player &apos;ended&apos; event and calls play(). This did not help
  - The bug doesn&apos;t seem to happen on older iPhone (couldn&apos;t get it to happen with iPhone 8)
  - I tried with a single-rendition HLS manifest, same bug

This is my first time filing a Safari bug, is this the right place and is &quot;Compositing&quot; the correct component? It was the only component I found that mentioned video.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1754901</commentid>
    <comment_count>1</comment_count>
    <who name="Dylan Jhaveri">dylanjhaveri</who>
    <bug_when>2021-04-27 21:20:02 -0700</bug_when>
    <thetext>This is a screen recording of what happens at the beginning of the 3rd loop

https://stream.new/v/02f8U9SCYbzYpIl26vYO00tS54VOzMfi5G2wvFrx02YOIA</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756795</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-04 21:16:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/77540326&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>