<?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>301484</bug_id>
          
          <creation_ts>2025-10-26 07:42:33 -0700</creation_ts>
          <short_desc>Video playback fails on PWA after reopening stuck on first frame</short_desc>
          <delta_ts>2025-10-27 08:56:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>300990</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ziyak97</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2154330</commentid>
    <comment_count>0</comment_count>
    <who name="">ziyak97</who>
    <bug_when>2025-10-26 07:42:33 -0700</bug_when>
    <thetext>Title
iOS: Videos in Home-Screen web apps (PWAs) show poster/first frame but don’t advance; play() resolves, frames don’t decode

Summary
When websites are added to the Home Screen and launched as standalone web apps, HTML5 video often gets stuck on the poster/first frame. HTMLMediaElement.play() resolves and media events fire (loadeddata → canplay → playing), but playback does not advance. This occurs across multiple, unrelated sites, including **YouTube** installed to the Home Screen and custom apps (e.g., Cloudinary MP4/HLS), indicating a system-wide iOS/WebKit issue in PWA context.


Steps to Reproduce
1) In Safari, open https://youtube.com.
2) Share → Add to Home Screen.
3) Launch the YouTube icon (standalone PWA).
4) Start any video (autoplay or manual play).
5) Observe: Events fire; but the poster/first frame remains and the picture does not update.

Expected
Video frames decode and advance; poster is replaced by video frames.

Actual
- play() promise resolves; loadeddata/canplay/playing fire.
- currentTime remains 0.
- No new frames decode: getVideoPlaybackQuality().totalVideoFrames stays constant (delta = 0).

Diagnostics (from Web Inspector on device)
- Event log shows playing without visual motion.
- Playback quality sampled at 500 ms intervals shows delta = 0 while paused = false.

Workarounds Tried
- Remove poster + tiny seek (currentTime += 0.01) after loadeddata → does not work.

Impact
Affects video playback across any Home-Screen web app, including major sites (YouTube) and enterprise PWAs; severe impact on media use-cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154451</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-10-27 08:53:58 -0700</bug_when>
    <thetext>*** Bug 301485 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154452</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-10-27 08:56:00 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 300990 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>