Skip to content

Commit

Permalink
增加MP3等等播放类型支持
Browse files Browse the repository at this point in the history
  • Loading branch information
Leifzhang committed Nov 2, 2016
1 parent b6f2f63 commit f546740
Show file tree
Hide file tree
Showing 16 changed files with 103 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public void setAnchorView(ViewGroup view) {
ViewGroup.LayoutParams.MATCH_PARENT);
mAnchor.addView(this, ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT);
v.setVisibility(View.INVISIBLE);
}


Expand Down
Binary file modified IjkLib/src/main/jniLibs/arm64-v8a/libijkffmpeg.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/arm64-v8a/libijkplayer.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/arm64-v8a/libijksdl.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/armeabi-v7a/libijkffmpeg.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/armeabi-v7a/libijkplayer.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/armeabi/libijkffmpeg.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/armeabi/libijkplayer.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/x86/libijkffmpeg.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/x86/libijkplayer.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/x86_64/libijkffmpeg.so
Binary file not shown.
Binary file modified IjkLib/src/main/jniLibs/x86_64/libijkplayer.so
Binary file not shown.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# ijkplayer
基于bilibili开源播放器编译好的so包项目,可直接通过lib的方式进行引用。

优化了下control的实现方式,从dialog替换成view的显示隐藏.
优化了下control的实现方式,从dialog替换成view的显示隐藏.增加播放器支持的播放类型,明显增加了so包大小.

请注意优化.

## Usage
Add this line to your `build.gradle` file under your module directory.

```
compile 'com.github.leifzhang:IjkLib:0.2.0'
compile 'com.github.leifzhang:IjkLib:0.2.1'
```
# 简介
更新了一下ijk的版本号以及升级了一下so包.
Expand Down
96 changes: 95 additions & 1 deletion build/intermediates/dex-cache/cache.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<items version="2" />
<items version="2" >

<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.2.1/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="3469cb457f10f74c28cbc05f069b6c894f6cbdd0">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-animated-vector-drawable-23.2.1_b1dc9aaf2bd699028b4e9ccc3ca5691e542e5c63/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.android.support/support-v4/23.2.1/jars/libs/internal_impl-23.2.1.jar"
jumboMode="true"
revision="23.0.2"
sha1="607a3d0b8013b4ccbfeb0b7cb293351994e021fb">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/internal_impl-23.2.1_45adaea8fe7bc276ac703817f0a751a3eb8256c1/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.2.1/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="e4d0cbb0b999604b349062f0214a0a228a7fd151">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-appcompat-v7-23.2.1_2e1949940d463e351fdb8e81ed494b093e974b47/classes.dex" />
</item>
<item
jar="/Users/zhangyang/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/23.2.1/support-annotations-23.2.1.jar"
jumboMode="true"
revision="23.0.2"
sha1="ccb693bc0774fcb637246f7360de25b4af7df318">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/support-annotations-23.2.1_c09742b42db6780a80ad06082653d58bc0122cdd/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/tv.danmaku.ijk.media/ijkplayer-exo/0.6.3/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="50175b147bda2b5fe75ced7236f049a5ea6e4adc">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/tv.danmaku.ijk.media-ijkplayer-exo-0.6.3_322ace7b8489017f98c4ff659c5fd09f618cbc75/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.google.android.exoplayer/exoplayer/r1.5.11/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="0a919fdfb7808ff27b33e6e84ec990478abc9cf1">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/com.google.android.exoplayer-exoplayer-r1.5.11_30683ae0cdb881097b18b48c3bcba71d673e0d34/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.android.support/preference-v7/23.2.1/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="ffdfc8b94e6d46a997ada2edc9a212782d4d321d">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-preference-v7-23.2.1_258c68cb40cf2956fca48ed1d5d01672e0075339/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.2.1/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="e3885783ff8926ed9e2fdcd16816c2e1e73e7aee">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-recyclerview-v7-23.2.1_58cb382d1e1f331983fb0a0baa3204bf2e843d7e/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/incremental-runtime-classes/debug/instant-run.jar"
jumboMode="true"
revision="23.0.2"
sha1="a2e7bd764f7a7cb64ab1efc26fedc0683fc13ad4">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/instant-run_007dbccea4c7be6c2c32b9693ebf4c3263960e4c/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/incremental-classes/debug/instant-run-bootstrap.jar"
jumboMode="true"
revision="23.0.2"
sha1="aa7cfce77f47be42c7e50cd7c1c9f3699ddfccef">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/instant-run-bootstrap_d5d70d2b2852178a2f8bd822f93102d59691d604/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.android.support/support-v4/23.2.1/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="3be474b1b21b31cf2fa93fe6bd641ae108d96452">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-support-v4-23.2.1_cca832953db83dc586abd441f340db79ac35d8ae/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/tv.danmaku.ijk.media/ijkplayer-java/0.6.3/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="e91ec409bc1c4bb3e2b81645311cf51b24c3706d">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/tv.danmaku.ijk.media-ijkplayer-java-0.6.3_b7352cd1e3a73e6a83f8a14345b5faf9d47b442b/classes.dex" />
</item>
<item
jar="/Users/zhangyang/ijkplayer/sample/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.2.1/jars/classes.jar"
jumboMode="true"
revision="23.0.2"
sha1="673d77a5bbddd766037f088e775df525c46407f0">
<dex dex="/Users/zhangyang/ijkplayer/sample/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-support-vector-drawable-23.2.1_afd7aeec44cb19166a59a63f5e206e9d0fdb8acc/classes.dex" />
</item>

</items>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

# 包信息
PROJ_GROUP=com.github.leifzhang
PROJ_VERSION=0.2.0
PROJ_VERSION=0.2.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ protected void onCreate(Bundle savedInstanceState) {
// videoView.setOnErrorListener(new ErrorListener());
AndroidMediaController controller = new AndroidMediaController(this, false);
videoView.setMediaController(controller);
String url = "http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8";
//String url = "http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8";
String url = "http://o6wf52jln.bkt.clouddn.com/演员.mp3";
videoView.setVideoURI(Uri.parse(url));
videoView.start();
}
Expand Down

0 comments on commit f546740

Please sign in to comment.