11 Commits
Author SHA1 Message Date
DIYgod dc31d7d9c7 release v1.10.1 2018-03-29 23:43:26 +08:00
DIYgod af84efb05c fix changeable height 2018-03-29 23:41:48 +08:00
DIYgod 55039bbc3b fix list.remove 2018-03-29 23:07:12 +08:00
DIYgod c53e9abd1c fix typo 2018-03-29 22:26:52 +08:00
Micooz Lee b98b466da7 Merge pull request #206 from sabrinaluo/master
Fix typo in readme
2018-03-29 21:54:13 +08:00
Sabrina Luo 49e8743da9 Fix typo 2018-03-29 21:49:46 +08:00
DIYgod c5c6bfd001 Merge pull request #204 from SevenOutman/patch-1
Update README.md
2018-03-26 11:32:01 +08:00
Doma 483bb11507 Update README.md
Update Vue-APlayer's written form according to its [v1.3.0 Release Note](https://github.com/SevenOutman/vue-aplayer/releases/tag/1.3.0)
2018-03-24 00:16:50 +08:00
DIYgod 398c8be87a better text-shadow for fixed lrc 2018-03-23 13:30:53 +08:00
DIYgod 1d6ceb833b update let me know 2018-03-23 01:09:50 +08:00
DIYgod a5dd690e36 update who use 2018-03-23 01:00:47 +08:00
14 changed files with 57 additions and 39 deletions
+26 -22
View File
@@ -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>
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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
View File
@@ -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歌词编辑器
+1 -1
View File
@@ -221,7 +221,7 @@ const ap = new APlayer({
+ `ap.list.clear()`: 清空播放列表
+ `ap.audio`: 原生 video
+ `ap.audio`: 原生 audio
+ `ap.audio.currentTime`: 返回音频当前播放时间
+4 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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 = '';
+9
View File
@@ -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
View File
@@ -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.');
}
});