Title: [208944] trunk/Source/WebCore
- Revision
- 208944
- Author
- [email protected]
- Date
- 2016-11-21 01:41:29 -0800 (Mon, 21 Nov 2016)
Log Message
[WebRTC][OpenWebRTC] parse turns urls
https://bugs.webkit.org/show_bug.cgi?id=164587
Reviewed by Alejandro G. Castro.
* platform/mediastream/openwebrtc/MediaEndpointOwr.cpp:
(WebCore::MediaEndpointOwr::ensureTransportAgentAndTransceivers):
Hook turns servers between the RTCConfiguration and the underlying
OpenWebRTC layer.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (208943 => 208944)
--- trunk/Source/WebCore/ChangeLog 2016-11-21 09:39:26 UTC (rev 208943)
+++ trunk/Source/WebCore/ChangeLog 2016-11-21 09:41:29 UTC (rev 208944)
@@ -1,5 +1,17 @@
2016-11-21 Philippe Normand <[email protected]>
+ [WebRTC][OpenWebRTC] parse turns urls
+ https://bugs.webkit.org/show_bug.cgi?id=164587
+
+ Reviewed by Alejandro G. Castro.
+
+ * platform/mediastream/openwebrtc/MediaEndpointOwr.cpp:
+ (WebCore::MediaEndpointOwr::ensureTransportAgentAndTransceivers):
+ Hook turns servers between the RTCConfiguration and the underlying
+ OpenWebRTC layer.
+
+2016-11-21 Philippe Normand <[email protected]>
+
[Gstreamer] Add volume and mute support to the WebRTC mediaplayer
https://bugs.webkit.org/show_bug.cgi?id=153828
Modified: trunk/Source/WebCore/platform/mediastream/openwebrtc/MediaEndpointOwr.cpp (208943 => 208944)
--- trunk/Source/WebCore/platform/mediastream/openwebrtc/MediaEndpointOwr.cpp 2016-11-21 09:39:26 UTC (rev 208943)
+++ trunk/Source/WebCore/platform/mediastream/openwebrtc/MediaEndpointOwr.cpp 2016-11-21 09:41:29 UTC (rev 208944)
@@ -59,7 +59,7 @@
static const Vector<String> candidateTcpTypes = { "", "active", "passive", "so" };
static const Vector<String> codecTypes = { "NONE", "PCMU", "PCMA", "OPUS", "H264", "VP8" };
-static const char* helperServerRegEx = "(turn|stun):([\\w\\.\\-]+|\\[[\\w\\:]+\\])(:\\d+)?(\\?.+)?";
+static const char* helperServerRegEx = "(turns|turn|stun):([\\w\\.\\-]+|\\[[\\w\\:]+\\])(:\\d+)?(\\?.+)?";
static const unsigned short helperServerDefaultPort = 3478;
static const unsigned short candidateDefaultPort = 9;
@@ -608,6 +608,10 @@
owr_transport_agent_add_helper_server(m_transportAgent, serverType,
url.host.ascii().data(), port,
server.username.ascii().data(), server.credential.ascii().data());
+ } else if (url.protocol == "turns") {
+ owr_transport_agent_add_helper_server(m_transportAgent, OWR_HELPER_SERVER_TYPE_TURN_TLS,
+ url.host.ascii().data(), port,
+ server.username.ascii().data(), server.credential.ascii().data());
} else
ASSERT_NOT_REACHED();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes