Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 758ff5958ae22e5f17f2a6262f169e3276e50e01
      
https://github.com/WebKit/WebKit/commit/758ff5958ae22e5f17f2a6262f169e3276e50e01
  Author: Youenn Fablet <[email protected]>
  Date:   2026-03-19 (Thu, 19 Mar 2026)

  Changed paths:
    A 
LayoutTests/fast/mediastream/getUserMedia-and-getVideoPlaybackQuality-expected.txt
    A LayoutTests/fast/mediastream/getUserMedia-and-getVideoPlaybackQuality.html
    M LayoutTests/platform/glib/TestExpectations
    M Source/WebCore/platform/graphics/avfoundation/SampleBufferDisplayLayer.h
    M 
Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.h
    M 
Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm
    M 
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.h
    M 
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
    M Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayer.h
    M Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayer.mm
    M Source/WebKit/WebProcess/GPU/webrtc/SampleBufferDisplayLayer.cpp
    M Source/WebKit/WebProcess/GPU/webrtc/SampleBufferDisplayLayer.h
    M Source/WebKit/WebProcess/GPU/webrtc/SampleBufferDisplayLayer.messages.in

  Log Message:
  -----------
  [Feature Request] Support HTMLVideoElement.getVideoPlaybackQuality() for 
MediaStream playback
rdar://172649550
https://bugs.webkit.org/show_bug.cgi?id=310007

Reviewed by Eric Carlson.

We implement MediaPlayerPrivateMediaStreamAVFObjC::videoPlaybackQualityMetrics 
by implementing counter gathering in SampleBufferDisplayLayer.
Everytime we enqueue a sample in 
LocalSampleBufferDisplayLayer::enqueueBufferInternal, we check the AVSBDL 
metrics and call the SampleBufferDisplayLayerClient callback if metrics have 
changed.
We send this information to WebProcess via IPC.
We limit video metrics sampling to every 0.25seconds for perf reasons.

Covered by added test.

Canonical link: https://commits.webkit.org/309540@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to