<?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>254405</bug_id>
          
          <creation_ts>2023-03-24 05:13:48 -0700</creation_ts>
          <short_desc>[MSE] media/media-source/media-source-video-playback-quality.html is a constant failure with MockMSE in GPUP</short_desc>
          <delta_ts>2023-03-24 07:46:19 -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>Media</component>
          <version>WebKit Nightly Build</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>
          
          <blocked>225367</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1943679</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2023-03-24 05:13:48 -0700</bug_when>
    <thetext>With MockMSE running in the GPU process, the test is a permanent error.

```
 RUN(sourceBuffer.appendBuffer(samples))
 EVENT(updateend)
 RUN(quality = video.getVideoPlaybackQuality())
-EXPECTED (quality.totalVideoFrames == &apos;8&apos;) OK
-EXPECTED (quality.corruptedVideoFrames == &apos;1&apos;) OK
-EXPECTED (quality.droppedVideoFrames == &apos;2&apos;) OK
-EXPECTED (quality.totalFrameDelay == &apos;3&apos;) OK
+EXPECTED (quality.totalVideoFrames == &apos;8&apos;), OBSERVED &apos;1&apos; FAIL
+EXPECTED (quality.corruptedVideoFrames == &apos;1&apos;), OBSERVED &apos;0&apos; FAIL
+EXPECTED (quality.droppedVideoFrames == &apos;2&apos;), OBSERVED &apos;1&apos; FAIL
+EXPECTED (quality.totalFrameDelay == &apos;3&apos;), OBSERVED &apos;0&apos; FAIL
 END OF TEST
```

The test waits for the `updateend` event to be fired on SourceBuffer before calling `getVideoPlaybackQuality` , but this would only work when the MockMSE runs in the content process due to an implementation detailed with the MockMediaPlayerMediaSource: it updates the time and playback quality immediately.

However, in practice this is rather nonsensical, we can only expect the VideoPlaybackQuality object to be up to date once the video has been fully played: frames won&apos;t be dropped while the video is paused.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1943680</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-24 05:14:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/107182984&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1943681</commentid>
    <comment_count>2</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2023-03-24 05:25:13 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/11915</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1943734</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-24 07:46:16 -0700</bug_when>
    <thetext>Committed 262071@main (ad2552fcc7cd): &lt;https://commits.webkit.org/262071@main&gt;

Reviewed commits have been landed. Closing PR #11915 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>