A docsify.js plugin for meting-api.
- Insert APlayer into head tag (index.html)
<!-- require APlayer -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
- Then insert docsify-plugin-meting-api plugin into body tag
<!-- docsify-plugin-meting-api -->
<!-- required axios -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsify-plugin-meting-api/dist/docsify-plugin-meting-api.min.js"></script>
You can set MetingAPI option, example:
window.$docsify = {
MetingAPI: {
elementId: 'meting',
api: 'https://api.i-meto.com/meting/api',
fixed: true,
autoplay: true,
lrcType: 3,
order: 'random',
loop: 'all',
mutex: true,
theme: '#b7daff',
playlists: [
{ server: 'netease', type: 'playlist', id: '7597958861' },
{ server: 'netease', type: 'playlist', id: '379025025' },
{ server: 'netease', type: 'playlist', id: '7383516738' },
],
},
};
- Run
npm i
- Run
npm run docs
- Go to http://localhost:3000/
- ...