1.6.1 • Published 4 years ago

synced-media v1.6.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Synced Media

For use only with 360 Meet.

Updating 360 Meet

In your 360 Meet repo, run:

npm update synced-media

Developing locally

Installing

In your ~/git folder, run:

git clone https://github.com/VirtualApt/synced-media.git
cd 360-meet-ui
npm link ../synced-media

This will "install" the local copy of synced-media into your 360 Meet folder. However, when running npm link the require() calls from the synced-media repo won't correctly identify the correct copy of React when linking to 360 Meet. Therefore, if you tried to run the project at this point you would likely encounter "invalid hook call" errors. In order to fix this, your local synced-media must link its copy of React to the 360 Meet copy by running this command:

cd synced-media
npm link ../360-meet-ui/node_modules/react

Live reloading

In a separate ssh shell, run npm run watch in the synced-media folder. If 360 Meet Live Reloading is also enabled, when editing source in synced-media, it will be reloaded within the 360 Meet

Publishing

Before publishing, make sure you have an NPM account and have write access to the NPM repository.

Steps to publishing: 1. Edit package.json version, following SemVer protocol. 2. npm login 3. npm publish

And to update the 360 Meet copy:

cd 360-meet-ui
npm update synced-media
git add package.json
git add package-lock.json
git commit -m "synced media update"