前言
听人说Meting官方API证书过期了,也就是说MetingAPI得自建了
然后很快啊,有人就搞出了自建MetingAPI的Vercel版本
教程
后端部署
点击下方按钮,跳转至 Vercel:

名字随便写,然后点击“Create”

看到这个就算成功了

去https://github.com/injahow/meting-api/releases 下载编译好的压缩包上传到服务器上(服务器必须开启跨域!)
前端部署
Butterfly主题
编辑[Blogroot]\themes\butterfly\layout\includes\third-party\aplayer.pug
1
2
3
4
5
| link(rel='stylesheet' href=url_for(theme.asset.aplayer_css) media="print" onload="this.media='all'")
script(src=url_for(theme.asset.aplayer_js))
script(src=url_for(theme.asset.meting_js))
+ script.
+ var meting_api='https://(你的api地址)/api/?server=:server&type=:type&id=:id&auth=:auth&r=:r';
|
HTML代码
1
2
3
| <script>
var meting_api='https://(你的api地址)/api/?server=:server&type=:type&id=:id&auth=:auth&r=:r';
</script>
|
评论