GithubHelp home page GithubHelp logo

player's Introduction

Player

Dependence:

  1. 阿里phpsdk 可以用这个link 里面的 composer 安装https://developer.aliyun.com/article/753970
    也可以直接下载sdk 放置到所需目录 https://blog.csdn.net/wwz123124/article/details/97546179

TODO:

  1. some aliplayer settings need be adjusted like autoplay, frame size etc

Install

  1. git clone this repo to /moodle/local
  2. Moodle PITFALL comment the code
$aliToken = $DB->get_record('local_player', ['id' => '1']);  
if(DEBUG){var_dump($aliToken);}

define('accessKeyId' , $aliToken->{'accesskeyid'});
define('accessKeySecret' , $aliToken->{'accesskeysecret'});

Moodle will run code before db installation. It hits the error get_record can't find db...

  1. Refresh your homepage the installation guidence will show up. It install plugin and db automatically.
  2. Uncomment the code after installation and insert your Ali key and token to moodle_local_player

how to use?

  1. Upload your vedio to ali vod
  2. Apply for Ali key and secret
  3. encode your vedio as HSL
  4. Install plugin
  5. play encode video by tye /moodle/local/player?name=

other source:

https://api.aliyun.com/#/?product=vod
https://player.alicdn.com/aliplayer/index.html?spm=a2c4g.11186623.2.30.4d1d79ddcwjXwP

player's People

Contributors

matrix945 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.