Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
Перейти к файлу
Kevin Lee 59b8cfe9d1 Merge branch 'master' into feature/drawing
# Conflicts:
#	package-lock.json
#	src/hub.html
#	src/hub.js
#	src/utils/media-utils.js
2018-08-16 15:26:17 -07:00
.vscode virtual-gamepad-controls component for mobile 2d locomotion (#9) 2017-11-08 13:22:10 -08:00
doc formatting 2018-05-24 17:13:02 -07:00
scripts Fiddle with build environment variable loading 2018-08-02 16:14:24 -07:00
src Merge branch 'master' into feature/drawing 2018-08-16 15:26:17 -07:00
.babelrc Don't stick babel plugins in multiple places 2018-08-02 16:16:38 -07:00
.env.defaults Add a little documentation inside .env.defaults 2018-08-02 16:41:32 -07:00
.eslintignore update linters 2018-05-09 21:19:08 -07:00
.eslintrc.js firefox safari perf fix. plus miscellaneous 2018-04-06 23:06:55 -07:00
.gitignore Un-revert npm-to-yarn PR 2018-07-26 16:45:38 -07:00
.htmlhintrc lint and delint html 2018-04-06 20:37:01 -07:00
.prettierignore prettier 2018-03-29 23:50:17 -07:00
.prettierrc.json Use babel for eslint parsing and prettier 2018-03-27 09:08:25 -07:00
.stylelintrc Update style linting rules 2018-07-25 22:56:50 +00:00
.travis.yml Un-revert npm-to-yarn PR 2018-07-26 16:45:38 -07:00
Jenkinsfile Fully double escape 2018-08-02 17:08:09 +00:00
LICENSE Initial Commit 2017-09-25 19:25:06 -07:00
PRIVACY.md Updated Privacy Policy to 2.0 2018-07-23 18:34:32 -07:00
README.md Update README 2018-08-02 04:31:36 +00:00
TERMS.md Update Terms of Service to 2.0 2018-07-23 18:37:56 -07:00
package-lock.json Merge branch 'master' into feature/drawing 2018-08-16 15:26:17 -07:00
package.json Merge branch 'master' into feature/drawing 2018-08-16 15:26:17 -07:00
webpack.config.js Make WDS CORS settings correct 2018-08-13 13:49:43 -07:00

README.md

Build Status

A prototype client demonstrating a multi-user experience in WebVR. Built with A-Frame

Getting Started

To run the client, run:

git clone https://github.com/mozilla/hubs.git
cd hubs
npm ci
npm start

Building Static Files

To bundle javascript and generate the html templates, run:

npm run build

Sharing Your Changes

When running a local copy of Hubs as-is, you'll use Mozilla's "dev" Reticulm and Janus servers for storing your room information and relaying messages between users in the room.

This also means you can upload a modified copy of Hubs to a hosting provider as-is, and use it without having to set up your own servers. Simply run:

npm run build

and then upload the files in the dist folder to your hosting provider.

If you are running your own servers, you can modify the environment variables JANUS_SERVER and RETICULUM_SERVER when building to point Hubs to your own infrastructure.

See scripts/default.env for the full set of environment variables that can modify Hubs' behavior at build time.

hubs.local Host Entry

When running the full stack for Hubs (which includes Reticulum) locally it is necessary to add a hosts entry pointing hubs.local to your local server's IP. This will allow the CSP checks to pass that are served up by Reticulum so you can test the whole app.

Query Params

  • room - Id of the room (an integer) that you want to join
  • allow_multi - Allow multiple instances off the app in the same browser session
  • enable_screen_sharing - Enable screen sharing
  • accept_screen_shares - Display screens shared by other users
  • avatar_scale - Scale your self!
  • quality - Either "low" or "high". Force assets to a certain quality level
  • mobile - Force mobile mode
  • no_stats - Disable performance stats
  • vr_entry_type - Either "2d", "vr", or "daydream". Used internally to force a VR entry type. Add "_now" to the end of the value to skip the audio check.
  • disable_telemetry - If true disables Sentry telemetry.
  • log_filter - A debug style filter for setting the logging level.
  • debug - If true performs verbose logging of Janus and NAF traffic.

Additional Resources

Waffle.io - Columns and their card count