[webkit-changes] [WebKit/WebKit] 362b1c: Expose aspectRatio and frameRate in RTCPeerConnect...

youennf noreply at github.com
Mon May 8 23:13:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 362b1ce629571cea0c9692e473a90dde22258aa1
      https://github.com/WebKit/WebKit/commit/362b1ce629571cea0c9692e473a90dde22258aa1
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M LayoutTests/webrtc/video.html
    M Source/WebCore/platform/mediastream/RealtimeIncomingVideoSource.cpp
    M Source/WebCore/platform/mediastream/RealtimeIncomingVideoSource.h

  Log Message:
  -----------
  Expose aspectRatio and frameRate in RTCPeerConnection remote MediaStreamTrack settings
https://bugs.webkit.org/show_bug.cgi?id=256361
rdar://problem/108944252

Reviewed by Eric Carlson.

As per spec, we should expose aspectRatio and frameRate settings.
Implement this, using width/height to compute aspectRatio and use observed frameRate, as per spec.

* LayoutTests/webrtc/video.html:
* Source/WebCore/platform/mediastream/RealtimeIncomingVideoSource.cpp:
(WebCore::supportedRealtimeIncomingVideoSourceSettingConstraints):
(WebCore::m_videoTrack):
(WebCore::RealtimeIncomingVideoSource::enableFrameRatedMonitoring):
(WebCore::RealtimeIncomingVideoSource::settings):
(WebCore::RealtimeIncomingVideoSource::notifyNewFrame):
* Source/WebCore/platform/mediastream/RealtimeIncomingVideoSource.h:

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




More information about the webkit-changes mailing list