-
Ruby version >=2.5.0
-
Rails version 5.2.0
-
Dplayer >= v1.22.0
bundle install
- Configuration
vim config/database.yml
- Database creation
rake db:setup
- Test run
rails server
- production
export RAILS_ENV=production
export SECRET_KEY_BASE=...............
# start railsgun in daemon
rails server -d
rails test
Only support dplayer v2 interface
var dp = new DPlayer({
container: document.getElementById('dplayer'),
screenshot: true,
video: {
url: 'demo.mp4',
pic: 'demo.jpg',
thumbnails: 'thumbnails.jpg'
},
subtitle: {
url: 'webvtt.vtt'
},
danmaku: {
id: 'demo',
api: 'http://localhost:3000/dplayer/'
}
});
The stability of the Barrage data is not currently used with caution
目前不保证弹幕数据的稳定性 慎用!
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...