Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc31d7d9c7 | ||
|
|
af84efb05c | ||
|
|
55039bbc3b | ||
|
|
c53e9abd1c | ||
|
|
b98b466da7 | ||
|
|
49e8743da9 | ||
|
|
c5c6bfd001 | ||
|
|
483bb11507 | ||
|
|
398c8be87a | ||
|
|
1d6ceb833b | ||
|
|
a5dd690e36 |
@@ -50,7 +50,7 @@ Using APlayer on your project? [Let me know!](https://github.com/MoePlayer/APlay
|
||||
- [APlayerHandle](https://github.com/kn007/APlayerHandle): WordPress
|
||||
- [APlayer_for_Z-BlogPHP](https://github.com/fghrsh/APlayer_for_Z-BlogPHP): Z-BlogPHP
|
||||
- [react-aplayer](https://github.com/sabrinaluo/react-aplayer): React
|
||||
- [vue-aplayer](https://github.com/SevenOutman/vue-aplayer): Vue
|
||||
- [Vue-APlayer](https://github.com/SevenOutman/vue-aplayer): Vue
|
||||
- [vue-aplayer](https://github.com/MoeFE/vue-aplayer): Vue
|
||||
- [php-aplayer](https://github.com/Daryl-L/php-aplayer): PHP
|
||||
|
||||
@@ -58,37 +58,21 @@ Using APlayer on your project? [Let me know!](https://github.com/MoePlayer/APlay
|
||||
|
||||
- [APlayer-Controler](https://github.com/Mashiro-Sorata/APlayer-Controler): controling tool
|
||||
- [MetingJS](https://github.com/metowolf/MetingJS): work with Meting music API
|
||||
- Feel free to submit yours in [`Let me know!`](https://github.com/MoePlayer/APlayer/issues/79)
|
||||
|
||||
## Who use APlayer?
|
||||
|
||||
- [bilibili](https://www.bilibili.com/): 国内知名的视频弹幕网站
|
||||
- [浙江大学CC98论坛](https://zh.wikipedia.org/wiki/CC98%E8%AE%BA%E5%9D%9B): 浙江大学校网内规模最大的论坛,中国各大学中较活跃的BBS之一
|
||||
- [Jelly Rue](http://jellyrue.com/): Jelly Rue, an indie pop-rock band from Tartu.
|
||||
- [LLSupport](https://www.lovelivesupport.com/): This site provides a lot of information about LoveLive
|
||||
- [Opus](http://www.opusopus.co/): An artist-exploration data visualization application
|
||||
- [站长之家](http://www.chinaz.com/15year/index.html): 针对中文站点提供资讯、技术、资源、服务
|
||||
- [LLSupport](https://www.lovelivesupport.com/): This site provides a lot of information about LoveLive
|
||||
- [歌词千寻](https://www.lrcgc.com/diy): 每日更新的LRC歌词网站
|
||||
- [iSearch](http://i.oppsu.cn): 一个提供 iTunes 搜索,试听,高清专辑封面获取,查看最新音乐动态等综合性平台
|
||||
- [LRC歌词编辑器](https://github.com/MoeFE/Lyric): 一款非常实用的在线LRC歌词编辑器
|
||||
- [Аэростатика](https://aerostatica.ru/)
|
||||
|
||||
## Donate
|
||||
|
||||
APlayer is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
|
||||
|
||||
## One-time Donations
|
||||
|
||||
We accept donations through these channels:
|
||||
|
||||
- [Paypal](https://www.paypal.me/DIYgod)
|
||||
- [WeChat Pay](https://i.imgur.com/aq6PtWa.png)
|
||||
- [Alipay](https://i.imgur.com/wv1Pj2k.png)
|
||||
- Bitcoin: 13CwQLHzPYm2tewNMSJBeArbbRM5NSmCD1
|
||||
|
||||
## Recurring Pledges
|
||||
|
||||
Recurring pledges come with exclusive perks, e.g. having your name or your company logo listed in the APlayer GitHub repository and this website.
|
||||
|
||||
- Become a backer or sponsor via [OpenCollective](https://opencollective.com/aplayer)
|
||||
- E-mail us: i#html.love
|
||||
- Feel free to submit yours in [`Let me know!`](https://github.com/MoePlayer/APlayer/issues/79)
|
||||
|
||||
## Current Premium Sponsors
|
||||
|
||||
@@ -111,6 +95,26 @@ This project exists thanks to all the people who contribute.
|
||||
|
||||
<a href="https://github.com/MoePlayer/APlayer/graphs/contributors"><img src="https://opencollective.com/APlayer/contributors.svg?width=890" /></a>
|
||||
|
||||
## Donate
|
||||
|
||||
APlayer is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
|
||||
|
||||
## One-time Donations
|
||||
|
||||
We accept donations through these channels:
|
||||
|
||||
- [Paypal](https://www.paypal.me/DIYgod)
|
||||
- [WeChat Pay](https://i.imgur.com/aq6PtWa.png)
|
||||
- [Alipay](https://i.imgur.com/wv1Pj2k.png)
|
||||
- Bitcoin: 13CwQLHzPYm2tewNMSJBeArbbRM5NSmCD1
|
||||
|
||||
## Recurring Pledges
|
||||
|
||||
Recurring pledges come with exclusive perks, e.g. having your name or your company logo listed in the APlayer GitHub repository and this website.
|
||||
|
||||
- Become a backer or sponsor via [OpenCollective](https://opencollective.com/aplayer)
|
||||
- E-mail us: i#html.love
|
||||
|
||||
## Author
|
||||
|
||||
**APlayer** © [DIYgod](https://github.com/DIYgod), Released under the [MIT](./LICENSE) License.<br>
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -240,7 +240,7 @@ ap.on('ended', function () {
|
||||
});
|
||||
```
|
||||
|
||||
Video events
|
||||
Audio events
|
||||
|
||||
- abort
|
||||
- canplay
|
||||
@@ -578,4 +578,4 @@ ap.on('listswitch', (data) => {
|
||||
|
||||
### Why can't player autoplay in some mobile browsers?
|
||||
|
||||
Most mobile browsers forbid video autoplay, you wont be able to achieve it without hacks.
|
||||
Most mobile browsers forbid audio autoplay, you wont be able to achieve it without hacks.
|
||||
+4
-2
@@ -27,7 +27,7 @@ Let's make APlayer better, feel free to submit yours in [`Let me know!`](https:/
|
||||
- [APlayerHandle](https://github.com/kn007/APlayerHandle): WordPress
|
||||
- [APlayer_for_Z-BlogPHP](https://github.com/fghrsh/APlayer_for_Z-BlogPHP): Z-BlogPHP
|
||||
- [react-aplayer](https://github.com/sabrinaluo/react-aplayer): React
|
||||
- [vue-aplayer](https://github.com/SevenOutman/vue-aplayer): Vue
|
||||
- [Vue-APlayer](https://github.com/SevenOutman/vue-aplayer): Vue
|
||||
- [vue-aplayer](https://github.com/MoeFE/vue-aplayer): Vue
|
||||
- [php-aplayer](https://github.com/Daryl-L/php-aplayer): PHP
|
||||
|
||||
@@ -39,9 +39,11 @@ Let's make APlayer better, feel free to submit yours in [`Let me know!`](https:/
|
||||
## Who use APlayer?
|
||||
|
||||
- [bilibili](https://www.bilibili.com/): 国内知名的视频弹幕网站
|
||||
- [浙江大学CC98论坛](https://zh.wikipedia.org/wiki/CC98%E8%AE%BA%E5%9D%9B): 浙江大学校网内规模最大的论坛,中国各大学中较活跃的BBS之一
|
||||
- [Jelly Rue](http://jellyrue.com/): Jelly Rue, an indie pop-rock band from Tartu.
|
||||
- [LLSupport](https://www.lovelivesupport.com/): This site provides a lot of information about LoveLive
|
||||
- [Opus](http://www.opusopus.co/): An artist-exploration data visualization application
|
||||
- [站长之家](http://www.chinaz.com/15year/index.html): 针对中文站点提供资讯、技术、资源、服务
|
||||
- [LLSupport](https://www.lovelivesupport.com/): This site provides a lot of information about LoveLive
|
||||
- [歌词千寻](https://www.lrcgc.com/diy): 每日更新的LRC歌词网站
|
||||
- [iSearch](http://i.oppsu.cn): 一个提供 iTunes 搜索,试听,高清专辑封面获取,查看最新音乐动态等综合性平台
|
||||
- [LRC歌词编辑器](https://github.com/MoeFE/Lyric): 一款非常实用的在线LRC歌词编辑器
|
||||
|
||||
@@ -221,7 +221,7 @@ const ap = new APlayer({
|
||||
|
||||
+ `ap.list.clear()`: 清空播放列表
|
||||
|
||||
+ `ap.audio`: 原生 video
|
||||
+ `ap.audio`: 原生 audio
|
||||
|
||||
+ `ap.audio.currentTime`: 返回音频当前播放时间
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ search: zh-Hans
|
||||
- [APlayerHandle](https://github.com/kn007/APlayerHandle): WordPress
|
||||
- [APlayer_for_Z-BlogPHP](https://github.com/fghrsh/APlayer_for_Z-BlogPHP): Z-BlogPHP
|
||||
- [react-aplayer](https://github.com/sabrinaluo/react-aplayer): React
|
||||
- [vue-aplayer](https://github.com/SevenOutman/vue-aplayer): Vue
|
||||
- [Vue-APlayer](https://github.com/SevenOutman/vue-aplayer): Vue
|
||||
- [vue-aplayer](https://github.com/MoeFE/vue-aplayer): Vue
|
||||
- [php-aplayer](https://github.com/Daryl-L/php-aplayer): PHP
|
||||
|
||||
@@ -40,9 +40,11 @@ search: zh-Hans
|
||||
## 谁在用 APlayer?
|
||||
|
||||
- [bilibili](https://www.bilibili.com/): 国内知名的视频弹幕网站
|
||||
- [浙江大学CC98论坛](https://zh.wikipedia.org/wiki/CC98%E8%AE%BA%E5%9D%9B): 浙江大学校网内规模最大的论坛,中国各大学中较活跃的BBS之一
|
||||
- [Jelly Rue](http://jellyrue.com/): Jelly Rue, an indie pop-rock band from Tartu.
|
||||
- [LLSupport](https://www.lovelivesupport.com/): This site provides a lot of information about LoveLive
|
||||
- [Opus](http://www.opusopus.co/): An artist-exploration data visualization application
|
||||
- [站长之家](http://www.chinaz.com/15year/index.html): 针对中文站点提供资讯、技术、资源、服务
|
||||
- [LLSupport](https://www.lovelivesupport.com/): This site provides a lot of information about LoveLive
|
||||
- [歌词千寻](https://www.lrcgc.com/diy): 每日更新的LRC歌词网站
|
||||
- [iSearch](http://i.oppsu.cn): 一个提供 iTunes 搜索,试听,高清专辑封面获取,查看最新音乐动态等综合性平台
|
||||
- [LRC歌词编辑器](https://github.com/MoeFE/Lyric): 一款非常实用的在线LRC歌词编辑器
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aplayer",
|
||||
"version": "1.10.0",
|
||||
"version": "1.10.1",
|
||||
"description": "Wow, such a beautiful html5 music player",
|
||||
"main": "dist/APlayer.min.js",
|
||||
"style": "dist/APlayer.min.css",
|
||||
|
||||
+2
-1
@@ -112,7 +112,7 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height - 6;
|
||||
margin: 0;
|
||||
z-index: 98;
|
||||
pointer-events: none;
|
||||
text-shadow: 0 0 1px #fff, 0 0 10px #fff;
|
||||
text-shadow: -1px -1px 0 #fff;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
@@ -330,6 +330,7 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height - 6;
|
||||
user-select: text;
|
||||
cursor: default;
|
||||
padding-bottom: 2px;
|
||||
height: 20px;
|
||||
|
||||
.aplayer-title {
|
||||
font-size: 14px;
|
||||
|
||||
+2
-2
@@ -107,7 +107,7 @@ class List {
|
||||
list[index].remove();
|
||||
|
||||
this.audios.splice(index, 1);
|
||||
this.lrc.parsed.splice(index, 1);
|
||||
this.player.lrc && this.player.lrc.remove(index);
|
||||
|
||||
if (index === this.index) {
|
||||
if (this.audios[index]) {
|
||||
@@ -178,7 +178,7 @@ class List {
|
||||
this.player.container.classList.remove('aplayer-withlist');
|
||||
this.player.pause();
|
||||
this.audios = [];
|
||||
this.lrc.parsed = [];
|
||||
this.player.lrc && this.player.lrc.clear();
|
||||
this.player.audio.src = '';
|
||||
this.player.template.listOl.innerHTML = '';
|
||||
this.player.template.pic.style.backgroundImage = '';
|
||||
|
||||
@@ -131,6 +131,15 @@ class Lrc {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
remove (index) {
|
||||
this.parsed.splice(index, 1);
|
||||
}
|
||||
|
||||
clear () {
|
||||
this.parsed = [];
|
||||
this.container.innerHTML = '';
|
||||
}
|
||||
}
|
||||
|
||||
export default Lrc;
|
||||
+2
-2
@@ -159,7 +159,7 @@ class APlayer {
|
||||
// audio download error: an error occurs
|
||||
let skipTime;
|
||||
this.on('error', () => {
|
||||
if (this.list.audios.length) {
|
||||
if (this.list.audios.length > 1) {
|
||||
this.notice('An audio error has occurred, player will skip forward in 2 seconds.');
|
||||
skipTime = setTimeout(() => {
|
||||
this.skipForward();
|
||||
@@ -168,7 +168,7 @@ class APlayer {
|
||||
}
|
||||
}, 2000);
|
||||
}
|
||||
else {
|
||||
else if (this.list.audios.length === 1) {
|
||||
this.notice('An audio error has occurred.');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user