Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GStreamer][WebRTC] Additional data-channel improvements and initial layout tests coverage #2060

Merged
merged 1 commit into from Jul 5, 2022

Conversation

philn
Copy link
Member

@philn philn commented Jul 4, 2022

5e8ab8c

[GStreamer][WebRTC] Additional data-channel improvements and initial layout tests coverage
https://bugs.webkit.org/show_bug.cgi?id=242177

Reviewed by Xabier Rodriguez-Calvar.

This patch improves logging support in the data-channel handler, cleans up the data-channel creation
code, bringing it on-par with the libwebrtc backend and includes various bugfixes needed for layout
tests compliance. The most significant feature gaps in the data-channel handler are now:

- Incomplete stats reporting
- DTLS 1.2 certificates support missing
- ICE candidates filtering unimplemented

* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold.html:
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerDataChannelHandler.cpp:
(WebCore::GStreamerDataChannelHandler::GStreamerDataChannelHandler):
(WebCore::GStreamerDataChannelHandler::~GStreamerDataChannelHandler):
(WebCore::GStreamerDataChannelHandler::dataChannelInit const):
(WebCore::GStreamerDataChannelHandler::label const):
(WebCore::GStreamerDataChannelHandler::setClient):
(WebCore::GStreamerDataChannelHandler::sendStringData):
(WebCore::GStreamerDataChannelHandler::sendRawData):
(WebCore::GStreamerDataChannelHandler::close):
(WebCore::GStreamerDataChannelHandler::checkState):
(WebCore::GStreamerDataChannelHandler::bufferedAmountChanged):
(WebCore::GStreamerDataChannelHandler::onMessageData):
(WebCore::GStreamerDataChannelHandler::onMessageString):
(WebCore::GStreamerDataChannelHandler::onClose):
(WebCore::GStreamerDataChannelHandler::createDataChannelEvent): Deleted.
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerDataChannelHandler.h:
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp:
(WebCore::GStreamerMediaEndpoint::initializePipeline):
(WebCore::GStreamerMediaEndpoint::prepareDataChannel):
(WebCore::GStreamerMediaEndpoint::findOrCreateIncomingChannelHandler):
(WebCore::GStreamerMediaEndpoint::onDataChannel):
(WebCore::GStreamerMediaEndpoint::close):
(WebCore::GStreamerMediaEndpoint::~GStreamerMediaEndpoint): Deleted.
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.h:
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerSctpTransportBackend.cpp:
(WebCore::GStreamerSctpTransportBackend::GStreamerSctpTransportBackend):
(WebCore::GStreamerSctpTransportBackend::stateChanged):

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

@philn philn requested a review from calvaris as a code owner July 4, 2022 17:56
@philn philn self-assigned this Jul 4, 2022
@philn philn added Platform Portability improvements and other general platform improvements not driven directly by site bugs. WebKit Nightly Build labels Jul 4, 2022
@philn philn added the merge-queue Applied to send a pull request to merge-queue label Jul 5, 2022
…layout tests coverage

https://bugs.webkit.org/show_bug.cgi?id=242177

Reviewed by Xabier Rodriguez-Calvar.

This patch improves logging support in the data-channel handler, cleans up the data-channel creation
code, bringing it on-par with the libwebrtc backend and includes various bugfixes needed for layout
tests compliance. The most significant feature gaps in the data-channel handler are now:

- Incomplete stats reporting
- DTLS 1.2 certificates support missing
- ICE candidates filtering unimplemented

* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold.html:
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerDataChannelHandler.cpp:
(WebCore::GStreamerDataChannelHandler::GStreamerDataChannelHandler):
(WebCore::GStreamerDataChannelHandler::~GStreamerDataChannelHandler):
(WebCore::GStreamerDataChannelHandler::dataChannelInit const):
(WebCore::GStreamerDataChannelHandler::label const):
(WebCore::GStreamerDataChannelHandler::setClient):
(WebCore::GStreamerDataChannelHandler::sendStringData):
(WebCore::GStreamerDataChannelHandler::sendRawData):
(WebCore::GStreamerDataChannelHandler::close):
(WebCore::GStreamerDataChannelHandler::checkState):
(WebCore::GStreamerDataChannelHandler::bufferedAmountChanged):
(WebCore::GStreamerDataChannelHandler::onMessageData):
(WebCore::GStreamerDataChannelHandler::onMessageString):
(WebCore::GStreamerDataChannelHandler::onClose):
(WebCore::GStreamerDataChannelHandler::createDataChannelEvent): Deleted.
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerDataChannelHandler.h:
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp:
(WebCore::GStreamerMediaEndpoint::initializePipeline):
(WebCore::GStreamerMediaEndpoint::prepareDataChannel):
(WebCore::GStreamerMediaEndpoint::findOrCreateIncomingChannelHandler):
(WebCore::GStreamerMediaEndpoint::onDataChannel):
(WebCore::GStreamerMediaEndpoint::close):
(WebCore::GStreamerMediaEndpoint::~GStreamerMediaEndpoint): Deleted.
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.h:
* Source/WebCore/Modules/mediastream/gstreamer/GStreamerSctpTransportBackend.cpp:
(WebCore::GStreamerSctpTransportBackend::GStreamerSctpTransportBackend):
(WebCore::GStreamerSctpTransportBackend::stateChanged):

Canonical link: https://commits.webkit.org/252131@main
@webkit-commit-queue
Copy link
Collaborator

Committed 252131@main (5e8ab8c): https://commits.webkit.org/252131@main

Reviewed commits have been landed. Closing PR #2060 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 5e8ab8c into WebKit:main Jul 5, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Jul 5, 2022
@philn philn deleted the eng/242177 branch July 5, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Portability improvements and other general platform improvements not driven directly by site bugs.
Projects
None yet
4 participants