- 阿里phpsdk
可以用这个link 里面的 composer 安装https://developer.aliyun.com/article/753970
也可以直接下载sdk 放置到所需目录 https://blog.csdn.net/wwz123124/article/details/97546179
- some aliplayer settings need be adjusted like autoplay, frame size etc
- git clone this repo to /moodle/local
- 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...
- Refresh your homepage the installation guidence will show up. It install plugin and db automatically.
- Uncomment the code after installation and insert your Ali key and token to moodle_local_player
- Upload your vedio to ali vod
- Apply for Ali key and secret
- encode your vedio as HSL
- Install plugin
- play encode video by tye /moodle/local/player?name=
https://api.aliyun.com/#/?product=vod
https://player.alicdn.com/aliplayer/index.html?spm=a2c4g.11186623.2.30.4d1d79ddcwjXwP