Assigning a priority to TURN server list passed to PeerConnection. First entry in the TURN server list will get the highest priotity and so forth.
This priority will be used in calculating the candidate priority generated from the server. This will allow candidate generated from server to have unique priority. BUG=3223 R=jiayl@webrtc.org, juberti@webrtc.org, pthatcher@webrtc.org Review URL: https://webrtc-codereview.appspot.com/16549004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6721 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -54,11 +54,12 @@ struct RelayCredentials {
|
||||
|
||||
typedef std::vector<ProtocolAddress> PortList;
|
||||
struct RelayServerConfig {
|
||||
RelayServerConfig(RelayType type) : type(type) {}
|
||||
RelayServerConfig(RelayType type) : type(type), priority(0) {}
|
||||
|
||||
RelayType type;
|
||||
PortList ports;
|
||||
RelayCredentials credentials;
|
||||
int priority;
|
||||
};
|
||||
|
||||
class BasicPortAllocator : public PortAllocator {
|
||||
|
Reference in New Issue
Block a user