paratii-player
paratii-player copied to clipboard
Probably the world's 1st in-player token wallet (v0.0.1 of the Paratii embeddable web player).
This is the first prototype of the Paratii Player. It is not being actively developed anymore. Instead, developmen toccurs in the following repositories:
- https://github.com/Paratii-Video/paratii-lib/
- https://github.com/Paratii-Video/paratii-portal/
- https://github.com/Paratii-Video/paratii-mediaplayer/
Paratii Player 
This is the repository for developing the Paratii Media Player.
More information can be found on paratii.video, or in our blueprint. Join the discussion on gitter.
Installation
Install node (https://nodejs.org/en/download/) and npm (these are the instructions for a debian based system - please check the download page for instructions for your OS):
sudo apt-get install -y build-essential
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install npm@latest -g
Install meteor (https://www.meteor.com/install):
curl https://install.meteor.com/ | sh
Clone this paratii-player repository, either with https or ssh:
git clone https://github.com/Paratii-Video/paratii-player.git
git clone [email protected]:Paratii-Video/paratii-player.git
Install the package:
cd paratii-player
npm install
Now, start the application:
npm start
If you have any problems, look for the troubleshooting section (below).
Testing
The application has two kinds of tests:
npm test
End-to-end tests that can be run by starting up the application in one window:
meteor --settings settings-dev.json
And running the tests in another window:
npm run chimp-test
Or, when you are developing:
npm run chimp-watch
Building the application
meteor build
if you get out-of-memory errors, setting TOOL_NODE_FLAGS may help:
export TOOL_NODE_FLAGS="--max_old_space_size=4096"
Embedding and Sharing
Deepen at:
https://github.com/Paratii-Video/paratii-embed
Embedding
The player is optimized for embedding into iframe using a specific address like:
http://localhost:3000/embed/video_id
Embedding customizer is available within the app. The customizer manages: fullscreen capability, autoplay flag, loop flag, sizes type (mini or tiny), playinline (iOS) flag
`<iframe webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true" src="http://localhost:3000/embed/7?autoplay=1&loop=1&playinline=1" width="570" height="320"></iframe>`
Showcases:
https://paratii-video.github.io/paratii-embed/embedding.html
Sharing
Supported / partially supported:
- twitter card
- facebook og
Showcases:
https://paratii-video.github.io/paratii-embed/sharing.html
oEmbed
Showcases:
https://paratii-video.github.io/paratii-embed/oEmbed.html
Troubleshooting
If npm install
reports that gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable
, it may be because python2.7 is not installed on your system:
sudo apt-get install python2.7
export PYTHON=/usr/bin/python2.7
If you see that gyp ERR! stack Error: not found: make
`
sudo apt-get install build-essential
Contributing
Most of the code is fresh and undocumented. Contributions are welcome - just be on the lokkout for the 🐲s. Here you can find some guidelines and the kind of help we would be interested in.
Make sure all tests pass:
Testing
npm test
npm run
Run lint (we use standardjs):
npm run lint
Pull requests are welcome.