Changeset 208944 in webkit


Ignore:
Timestamp:
Nov 21, 2016 1:41:29 AM (7 years ago)
Author:
Philippe Normand
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r208943 r208944  
     12016-11-21  Philippe Normand  <pnormand@igalia.com>
     2
     3        [WebRTC][OpenWebRTC] parse turns urls
     4        https://bugs.webkit.org/show_bug.cgi?id=164587
     5
     6        Reviewed by Alejandro G. Castro.
     7
     8        * platform/mediastream/openwebrtc/MediaEndpointOwr.cpp:
     9        (WebCore::MediaEndpointOwr::ensureTransportAgentAndTransceivers):
     10        Hook turns servers between the RTCConfiguration and the underlying
     11        OpenWebRTC layer.
     12
    1132016-11-21  Philippe Normand  <pnormand@igalia.com>
    214
  • trunk/Source/WebCore/platform/mediastream/openwebrtc/MediaEndpointOwr.cpp

    r208942 r208944  
    6060static const Vector<String> codecTypes = { "NONE", "PCMU", "PCMA", "OPUS", "H264", "VP8" };
    6161
    62 static const char* helperServerRegEx = "(turn|stun):([\\w\\.\\-]+|\\[[\\w\\:]+\\])(:\\d+)?(\\?.+)?";
     62static const char* helperServerRegEx = "(turns|turn|stun):([\\w\\.\\-]+|\\[[\\w\\:]+\\])(:\\d+)?(\\?.+)?";
    6363
    6464static const unsigned short helperServerDefaultPort = 3478;
     
    609609                        url.host.ascii().data(), port,
    610610                        server.username.ascii().data(), server.credential.ascii().data());
     611                } else if (url.protocol == "turns") {
     612                    owr_transport_agent_add_helper_server(m_transportAgent, OWR_HELPER_SERVER_TYPE_TURN_TLS,
     613                        url.host.ascii().data(), port,
     614                        server.username.ascii().data(), server.credential.ascii().data());
    611615                } else
    612616                    ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.