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

Add new shared JavaScript file for settings in demos #2991

Merged
merged 1 commit into from
Jun 1, 2022
Merged

Conversation

lminiero
Copy link
Member

@lminiero lminiero commented Jun 1, 2022

At the moment, all demos define the server to connect to separately, in the server variable. This means that, any time the demos are installed somewhere where the server variable should be different, all JavaScript files need to be updated accordingly, which is a burden and a chore. This is particulatly true for our own online demos, where changes to the demo code are always a pain to update.

This is why I've added a new separate file just for hosting the properties that should be shared instead: at the moment it only contains the address of the Janus backend (server) and the STUN/TURN servers to use (iceServers), but in the future this may be extended to contain more. I plan to merge soon, as I've only created a PR to have a specific reference for the Changelog: I'll make the same changes to the 0.x branch when this is merged.

@lminiero lminiero merged commit c16a77e into master Jun 1, 2022
@lminiero lminiero deleted the demo-common branch June 1, 2022 08:50
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

Successfully merging this pull request may close these issues.

1 participant