Home

Awesome

RailsGun

Build Status

System dependencies

Install && Run

bundle install
vim config/database.yml
rake db:setup
rails server
export RAILS_ENV=production
export SECRET_KEY_BASE=...............

# start railsgun in daemon
rails server -d

TestUnit

rails test

Danmaku API

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/'
    }
});

Test Server Address

The stability of the Barrage data is not currently used with caution

目前不保证弹幕数据的稳定性 慎用!

http://api.22333.fun/dplayer/

TodoList