2017 © Pedro Peláez
 

library laravel-danmaku

DPlayer Danmaku For Laravel 5

image

moeplayer/laravel-danmaku

DPlayer Danmaku For Laravel 5

  • Thursday, July 5, 2018
  • by kslr
  • Repository
  • 2 Watchers
  • 6 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Danmaku

GitHub license, (*1)

Installation

You can install the package via composer:, (*2)

composer require moeplayer/laravel-danmaku

Copy the package migration to your local migration with the publish command:, (*3)

php artisan vendor:publish --tag danmaku
php artisan migrate 

Add danmakuv2 to the csrf whitelist, (*4)

// app\Http\Middleware\VerifyCsrfToken.php
protected $except = [
     'danmakuv2'
];

Usage

const dp = new DPlayer({
    container: document.getElementById('dplayer'),
    screenshot: true,
    video: {
        url: 'demo.mp4',
        pic: 'demo.jpg',
        thumbnails: 'thumbnails.jpg'
    },
    danmaku: {
        id: 'demo',
        api: 'http://domain/danmakuv2',
        user: 'dog'
    }
});

The Versions

05/07 2018

dev-master

9999999-dev https://github.com/MoePlayer/laravel-danmaku

DPlayer Danmaku For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kslr

danmaku laravel-danmaku dplayer

05/07 2018

v1.0

1.0.0.0 https://github.com/MoePlayer/laravel-danmaku

DPlayer Danmaku For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kslr

danmaku laravel-danmaku dplayer