https://github.com/MoePlayer/APlayer
| Version | API Status | APlayer |
|---|---|---|
| 1.2.x | Supported | |
| 2.0.x | Latest |
- https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js
- https://unpkg.com/meting@2/dist/Meting.min.js
<!-- 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>
<!-- require MetingJS -->
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>
<meting-js
server="netease"
type="playlist"
id="60198">
</meting-js>https://music.163.com/#/playlist?id=60198
<meting-js
auto="https://y.qq.com/n/yqq/song/001RGrEX3ija5X.html">
</meting-js>https://y.qq.com/n/yqq/song/001RGrEX3ija5X.html
<meting-js
name="rainymood"
artist="rainymood"
url="https://rainymood.com/audio1110/0.m4a"
cover="https://rainymood.com/i/badge.jpg">
</meting-js>for self-hosted media
<meting-js
name="rainymood"
artist="rainymood"
url="https://rainymood.com/audio1110/0.m4a"
cover="https://rainymood.com/i/badge.jpg"
fixed="true">
<pre hidden>
[00:00.00]This
[00:04.01]is
[00:08.02]lyric
</pre>
</meting-js>Fixed mode with Lyric text
Documentation for APlayer can be found at https://aplayer.js.org/#/home?id=options
MetingJS allow you to use self-hosted API, more information about Meting.
<script>
var meting_api='http://example.com/api.php?server=:server&type=:type&id=:id&auth=:auth&r=:r';
</script>
<script src="dist/Meting.min.js"></script>You can also set a custom API for individual <meting-js> elements using the api attribute:
<meting-js
server="netease"
type="song"
id="28391863"
api="https://your-custom-api.com/meting?server=:server&type=:type&id=:id&r=:r">
</meting-js>The API selection follows this priority order:
- Element
apiattribute (highest priority) - Global
window.meting_apivariable - Built-in default API (lowest priority)
Browsers without native custom element support require a polyfill.
- Chrome
- Firefox
- Safari
- Internet Explorer 11
- Microsoft Edge
MetingJS © metowolf, Released under the MIT License.
Blog @meto · GitHub @metowolf · Twitter @metowolf · Telegram Channel @metooooo

