The mgm Portal is an office-to-office video gate that connectes two browser peers using webrtc technology.
Even though we now have two offices in Da Nang, we would still like to be able to have an informal communication channel between both locations. Basically we were inspired by the office-to-office portal of Atlassian.
The user can press the enter button to mute/unmute the portal on both sides. If one side is muted/unmuted, the other side will also mute/unmute. In the future the enter button should be substituted by a single big button.
- HTML, CSS and JS for frontend
- Python and JS for scripts and simple servers
- SimpleWebrtc | more info
- Signalmaster signaling server | more info
- 2x Intel Nuc
- 2x Logitech webcam
- 2x 50" TV
- 2x Rode Videomicro microphone
Requirements: NodeJS, Python
1 - Download files and place them in C:/startup/
2 - Install chromedriver v.2.31 | link Observation: newer versions of Chrome will not work without changes because SSL encryption requirements are stricter.
3 - Install python and NodeJS dependencies
4 - Setup startup scripts to run on startup of the machine On Windows: press "windows key + r" and enter "shell:startup". Place the respective startup scripts in that folder:
-
Office 1: should run startupPortal.bat, startupSignalingServer.bat and startupStaticHttServer.bat
-
Office 2: should only run startupPortal.bat
After everything is setup the portal should be working automatically after the startup of the machiness.
It might be needed to configure:
- microphone check the windows settings to get the best volume and check if the pc is using the right microphone and not the webcam mic
- webcam can be adjusted by bending the metal support on the frame
mgm Portal is a browser app and can be customised modifying the CSS, JS and HTML files.
Each portal has a static IP Address assigned to it
- Office Pasteur: 172.31.249.19
- Office mgm2: 172.31.249.18
These where the dimensions used to obtain the first frame

These are the recommendations for the second frame (based on previous experience). Camera and microphone should be hidden inside the frame.

- The portal should be located such that nobody is continuously being watched
- People do not automatically stay in the right position, so it's a good idea to mark where one should stand.
- The environment tends to be very noisy so we decided to use a directional microphone to eliminate some sound coming from the surroundings.
The portal is still not a real "plug and play" and needs some configuration. Some things that could improve the portal:
- Put the servers into a docker container
- Resolve all issues regarding the SSL encryption. (Maybe get a trusted/not self-signed certificate?)
- Experiment with different hardware (e.g. higher resolution webcams)
- Be creative and experiment with new features (e.g. face recognition)
- Real-time communication with WebRTC: Google I/O 2013
- WebRTC in the real world: STUN, TURN and signaling
- Lê Hồng Phước ( | mgm Da Nang )
- Marcello Schreiber (marcello.schreiber@hotmail.com | mgm Da Nang intern 28.08.2017 - 22.09.2017)



