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

renameIceURLs causes issue on firefox #40

Closed
smcardle opened this issue Jun 8, 2015 · 5 comments
Closed

renameIceURLs causes issue on firefox #40

smcardle opened this issue Jun 8, 2015 · 5 comments

Comments

@smcardle
Copy link

smcardle commented Jun 8, 2015

Hi.

The renameIceURLs call causes issues on firefox in the following code:

config.iceServers.forEach(function (server) {
server.url = server.urls;
delete server.urls;
});

Basically, if the iceServers ALREADY only has server.url then this is wiped out and is set to undefined.

To put it another way, if the entry does not have 'urls' but is already defined as 'url' in the config then this buggers it up..

The correct way to do this should have been server.usr = server.url || server.urls where server.url take precedence

Regards

@fippo
Copy link
Member

fippo commented Jun 8, 2015

iceServers shouldn't have a no-longer-spec .url set.

Possibly the code could warn there but Chrome would still accept it without warning so I am not sure how useful that is.

@KaptenJansson
Copy link
Collaborator

I do not follow here, where is renameIceURLs call made and where does the code live? I'm lost....

@KaptenJansson
Copy link
Collaborator

Ping?

@smcardle
Copy link
Author

smcardle commented Feb 3, 2016

This was in an older version of adapter.js but can now be closed as it's no longer relevant

Regards

@KaptenJansson
Copy link
Collaborator

I see, thanks for your response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants