-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
72 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# KingPlayer | ||
|
||
[![Download](https://img.shields.io/badge/download-App-blue.svg)](https://raw.githubusercontent.com/jenly1314/KingPlayer/master/app/release/app-release.apk) | ||
[![JCenter](https://img.shields.io/badge/JCenter-1.0.0-46C018.svg)](https://bintray.com/beta/#/jenly/maven/king-player) | ||
[![JCenter](https://img.shields.io/badge/JCenter-1.0.0.beta1-46C018.svg)](https://bintray.com/beta/#/jenly/maven/king-player) | ||
[![JitPack](https://jitpack.io/v/jenly1314/KingPlayer.svg)](https://jitpack.io/#jenly1314/KingPlayer) | ||
[![CI](https://travis-ci.org/jenly1314/KingPlayer.svg?branch=master)](https://travis-ci.org/jenly1314/KingPlayer) | ||
[![CircleCI](https://circleci.com/gh/jenly1314/KingPlayer.svg?style=svg)](https://circleci.com/gh/jenly1314/KingPlayer) | ||
[![API](https://img.shields.io/badge/API-21%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=21) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/mit-license.php) | ||
[![Blog](https://img.shields.io/badge/blog-Jenly-9933CC.svg)](https://jenly1314.github.io/) | ||
[![QQGroup](https://img.shields.io/badge/QQGroup-20867961-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1411582c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad) | ||
|
||
|
||
KingPlayer 一个专注于 Android 视频播放器(IjkPlayer、ExoPlayer、VlcPlayer、SysPlayer)的基础库,无缝切换内核。 | ||
|
||
|
@@ -26,53 +23,64 @@ KingPlayer 一个专注于 Android 视频播放器(IjkPlayer、ExoPlayer、Vlc | |
|
||
## Gif 展示 | ||
![Image](GIF.gif) | ||
###### 录制的gif效果有点不清晰,可以下载App查看详情。 | ||
|
||
> 你也可以直接下载 [演示App](https://raw.githubusercontent.com/jenly1314/KingPlayer/master/app/release/app-release.apk) 体验效果 | ||
## 引入 | ||
|
||
### gradle: | ||
|
||
使用 **SysPlayer** (Android自带的MediaPlayer) | ||
```gradle | ||
//KingPlayer基础库,内置SysPlayer | ||
implementation 'com.king.player:king-player:1.0.0-beta1' | ||
``` | ||
|
||
使用 **IjkPlayer** | ||
```gradle | ||
//KingPlayer基础库(必须) | ||
implementation 'com.king.player:king-player:1.0.0-beta1' | ||
//IjkPlayer | ||
implementation 'com.king.player:ijk-player:1.0.0-beta1' | ||
// 根据您的需求选择ijk模式的so | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8' | ||
// Other ABIs: optional | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8' | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8' | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8' | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8' | ||
``` | ||
|
||
使用 **ExoPlayer** | ||
```gradle | ||
//KingPlayer基础库(必须) | ||
implementation 'com.king.player:king-player:1.0.0-beta1' | ||
//ExoPlayer | ||
implementation 'com.king.player:exo-player:1.0.0-beta1' | ||
``` | ||
|
||
使用 **VlcPlayer** | ||
```gradle | ||
//KingPlayer基础库(必须) | ||
implementation 'com.king.player:king-player:1.0.0-beta1' | ||
//VlcPlayer | ||
implementation 'com.king.player:vlc-player:1.0.0-beta1' | ||
``` | ||
|
||
## 示例 | ||
### Gradle: | ||
|
||
1. 在Project的 **build.gradle** 或 **setting.gradle** 中添加远程仓库 | ||
|
||
```gradle | ||
repositories { | ||
//... | ||
mavenCentral() | ||
} | ||
``` | ||
|
||
2. 在Module的 **build.gradle** 里面添加引入依赖项 | ||
|
||
使用 **SysPlayer** (Android自带的MediaPlayer) | ||
```gradle | ||
//KingPlayer基础库,内置SysPlayer | ||
implementation 'com.github.jenly1314.KingPlayer:king-player:1.0.0-beta1' | ||
``` | ||
|
||
使用 **IjkPlayer** | ||
```gradle | ||
//KingPlayer基础库(必须) | ||
implementation 'com.github.jenly1314.KingPlayer:king-player:1.0.0-beta1' | ||
//IjkPlayer | ||
implementation 'com.github.jenly1314.KingPlayer:ijk-player:1.0.0-beta1' | ||
|
||
// 根据您的需求选择ijk模式的so | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8' | ||
// Other ABIs: optional | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8' | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8' | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8' | ||
implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8' | ||
|
||
``` | ||
|
||
使用 **ExoPlayer** | ||
```gradle | ||
//KingPlayer基础库(必须) | ||
implementation 'com.github.jenly1314.KingPlayer:king-player:1.0.0-beta1' | ||
//ExoPlayer | ||
implementation 'com.github.jenly1314.KingPlayer:exo-player:1.0.0-beta1' | ||
``` | ||
|
||
使用 **VlcPlayer** | ||
```gradle | ||
//KingPlayer基础库(必须) | ||
implementation 'com.github.jenly1314.KingPlayer:king-player:1.0.0-beta1' | ||
//VlcPlayer | ||
implementation 'com.github.jenly1314.KingPlayer:vlc-player:1.0.0-beta1' | ||
``` | ||
|
||
## 使用 | ||
|
||
布局示例 | ||
```xml | ||
|
@@ -139,7 +147,7 @@ implementation 'com.king.player:vlc-player:1.0.0-beta1' | |
videoView.reset() | ||
``` | ||
|
||
更多使用详情,请查看[app](app)中的源码使用示例或直接查看[API帮助文档](https://jenly1314.github.io/projects/KingPlayer/doc/) | ||
更多使用详情,请查看[app](app)中的源码使用示例或直接查看[API帮助文档](https://jitpack.io/com/github/jenly1314/KingPlayer/latest/javadoc/) | ||
|
||
|
||
### 其他 | ||
|
@@ -171,33 +179,27 @@ compileOptions { | |
|
||
|
||
## 赞赏 | ||
如果您喜欢KingPlayer,或感觉KingPlayer帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley:<p> | ||
您也可以扫描下面的二维码,请作者喝杯咖啡 :coffee: | ||
<div> | ||
<img src="https://jenly1314.github.io/image/pay/wxpay.png" width="280" heght="350"> | ||
<img src="https://jenly1314.github.io/image/pay/alipay.png" width="280" heght="350"> | ||
<img src="https://jenly1314.github.io/image/pay/qqpay.png" width="280" heght="350"> | ||
<img src="https://jenly1314.github.io/image/alipay_red_envelopes.jpg" width="233" heght="350"> | ||
</div> | ||
如果您喜欢KingPlayer,或感觉KingPlayer帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley: | ||
<p>您也可以扫描下面的二维码,请作者喝杯咖啡 :coffee: | ||
|
||
## 关于我 | ||
Name: <a title="关于作者" href="https://about.me/jenly1314" target="_blank">Jenly</a> | ||
|
||
Email: <a title="欢迎邮件与我交流" href="mailto:[email protected]" target="_blank">jenly1314#gmail.com</a> / <a title="给我发邮件" href="mailto:[email protected]" target="_blank">jenly1314#vip.qq.com</a> | ||
<div> | ||
<img src="https://jenly1314.github.io/image/page/rewardcode.png"> | ||
</div> | ||
|
||
CSDN: <a title="CSDN博客" href="http://blog.csdn.net/jenly121" target="_blank">jenly121</a> | ||
|
||
CNBlogs: <a title="博客园" href="https://www.cnblogs.com/jenly" target="_blank">jenly</a> | ||
## 关于我 | ||
|
||
GitHub: <a title="GitHub开源项目" href="https://github.com/jenly1314" target="_blank">jenly1314</a> | ||
| 我的博客 | GitHub | Gitee | CSDN | 博客园 | | ||
|:------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------| | ||
| <a title="我的博客" href="https://jenly1314.github.io" target="_blank">Jenly's Blog</a> | <a title="GitHub开源项目" href="https://github.com/jenly1314" target="_blank">jenly1314</a> | <a title="Gitee开源项目" href="https://gitee.com/jenly1314" target="_blank">jenly1314</a> | <a title="CSDN博客" href="http://blog.csdn.net/jenly121" target="_blank">jenly121</a> | <a title="博客园" href="https://www.cnblogs.com/jenly" target="_blank">jenly</a> | | ||
|
||
Gitee: <a title="Gitee开源项目" href="https://gitee.com/jenly1314" target="_blank">jenly1314</a> | ||
## 联系我 | ||
|
||
加入QQ群: <a title="点击加入QQ群" href="http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1411582c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad" target="_blank">20867961</a> | ||
<div> | ||
<img src="https://jenly1314.github.io/image/jenly666.png"> | ||
<img src="https://jenly1314.github.io/image/qqgourp.png"> | ||
</div> | ||
| 微信公众号 | Gmail邮箱 | QQ邮箱 | QQ群 | QQ群 | | ||
|:-------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------| | ||
| [Jenly666](http://weixin.qq.com/r/wzpWTuPEQL4-ract92-R) | <a title="给我发邮件" href="mailto:[email protected]" target="_blank">jenly1314</a> | <a title="给我发邮件" href="mailto:[email protected]" target="_blank">jenly1314</a> | <a title="点击加入QQ群" href="https://qm.qq.com/cgi-bin/qm/qr?k=6_RukjAhwjAdDHEk2G7nph-o8fBFFzZz" target="_blank">20867961</a> | <a title="点击加入QQ群" href="https://qm.qq.com/cgi-bin/qm/qr?k=Z9pobM8bzAW7tM_8xC31W8IcbIl0A-zT" target="_blank">64020761</a> | | ||
|
||
<div> | ||
<img src="https://jenly1314.github.io/image/page/footer.png"> | ||
</div> | ||
|
||
|