11 Project Structure for v2.0.6 and Earlier Versions
The classes in the project are demonstrations of the visual features added to SDK 2.0 and can be freely modified. Since the SDK 2.0 content is already included in the JAR and SO files, developers only need to correctly call the interfaces in the JAR file based on the examples in the demo to customize the UI.
SO Files
jniLibs
arm64-v8a
libijkffmpeg.so libijkplayer.so libijksdl.so libpolyvModule.so
armeabi
libijkffmpeg.so libijkplayer.so libijksdl.so libpolyvModule.so
armeabi-v7a
libijkffmpeg.so libijkplayer.so libijksdl.so libpolyvModule.so
x86
libijkffmpeg.so libijkplayer.so libijksdl.so libpolyvModule.so
x86_64
libijkffmpeg.so libijkplayer.so libijksdl.so libpolyvModule.so
The SO files in the arm64-v8a, armeabi, armeabi-v7a, x86, and x86_64 directories under jniLibs are video decoding libraries corresponding to different CPU instruction sets. You can choose to add SO files from a single directory or multiple directories as needed. It is recommended to add all of them.
JAR Files
- libs/alicloud-android-sdk-httpdns-1.1.0.jar
SDK核心包 - libs/alicloud-android-utils-1.0.2.jar
SDK核心包 - libs/bugly_crash_release.jar
PolyvSDKClient.initCrashReport(context)中使用 - libs/converter-gson-2.1.0.jar
json转换库,弹幕、截图功能中使用 - libs/danmaku-flame-master-0.6.2.jar
弹幕功能使用 - libs/gson-2.7.jar
json转换库,弹幕、截图功能中使用 - libs/ijkplayer-exo-0.8.0.1.jar
SDK核心包 - libs/ijkplayer-java-0.8.0.1.jar
SDK核心包 - libs/okhttp-3.3.0.jar
网络请求库,弹幕、截图功能中使用 - libs/okio-1.8.0.jar
网络请求库,弹幕、截图功能中使用 - libs/org.apache.http.legacy.jar
SDK中的上传功能 - libs/polyvDownload2.x.x.jar
SDK中的下载功能 - libs/polyvPlayer2.x.x.jar
SDK核心包 - libs/polyvSub2.x.x.jar
弹幕、截图功能中使用 - libs/polyvUpload2.x.x.jar
SDK中的上传功能 - libs/polyvWidget0.5.1.x.jar
SDK核心包 - libs/retrofit-2.1.0.jar
网络请求库,弹幕、截图功能中使用 - libs/universal-image-loader-1.9.5.jar
demo中图片显示使用 - libs/utdid4all-1.1.5.3_proguard.jar
SDK核心包
The JAR marked as SDK核心包 is a required package for video playback.
Dependencies
compile 'com.android.support:support-annotations:23+'
compile 'com.android.support:appcompat-v7:23+'
compile 'com.android.support:support-v4:23+'
compile 'com.android.support:design:23+'
//64K 引用限制
compile 'com.android.support:multidex:1.0.1'
Source Files
- sources/polyvDownloadSources2.x.x.jar
polyvDownload2.x.x.jar的源文件 - sources/polyvPlayerSources2.x.x.jar
polyvPlayer2.x.x.jar的源文件 - sources/polyvUploadSources2.x.x.jar
polyvUpload2.x.x.jar的源文件
Importing source files into the project allows method descriptions to be displayed.
Module
polyvAndroidSDKGif1.0 is a module used in the demo for the content displayed in the course discussion area. It does not involve player functionality.
