• 大小: 10MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-08
  • 语言: 其他
  • 标签: 仿BiLiBiLi  

资源简介

大家都用过BiLiBiLi、AcFucn等视频APP,但又没有想过他们是怎么实现的呢,本Demo从源码的方向可以很好的解释清楚,

资源截图

代码片段和文件信息

package com.vanco.abplayer;

import com.vanco.abplayer.view.FileUtils;

import android.app.Application;
import android.content.Context;
import android.os.Environment;


public class ABPlayerApplication extends Application{
private static ABPlayerApplication mApplication;

/** OPlayer SD卡缓存路径 */
public static final String OPlayer_CACHE_base = Environment.getExternalStorageDirectory() + “/oplayer“;
/** 视频截图缓冲路径 */
public static final String OPlayer_VIDEO_THUMB = OPlayer_CACHE_base + “/thumb/“;
/** 首次扫描 */
public static final String PREF_KEY_FIRST = “application_first“;

@Override
public void onCreate() {
super.onCreate();
mApplication = this;

init();
}

private void init() {
//创建缓存目录
FileUtils.createIfNoExists(OPlayer_CACHE_base);
FileUtils.createIfNoExists(OPlayer_VIDEO_THUMB);
}

public static ABPlayerApplication getApplication() {
return mApplication;
}

public static Context getContext() {
return mApplication;
}

/** 销毁 */
public void destory() {
mApplication = null;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-02-16 00:05  BiLiBiLi-master\
     文件         407  2016-02-16 00:05  BiLiBiLi-master\.gitignore
     文件         597  2016-02-16 00:05  BiLiBiLi-master\.travis.yml
     目录           0  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\
     文件         407  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\.gitignore
     文件        6888  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\AndroidManifest.xml
     文件        1357  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\build.gradle
     文件       53627  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\ic_launcher-web.png
     目录           0  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\libs\
     文件      293672  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\libs\jsoup-1.7.2.jar
     文件       21996  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\libs\library.jar
     文件      320659  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\libs\umeng_cc_ms_0121.jar
     文件      232241  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\libs\universal-image-loader-1.8.6-with-sources.jar
     文件         129  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\README.md
     目录           0  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\
     目录           0  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\
     文件         654  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\bili_anim.xml
     文件         917  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\push_left_in.xml
     文件         192  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\push_no.xml
     文件        1027  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\slide_in_bottom.xml
     文件        1027  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\slide_in_top.xml
     文件        1028  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\slide_out_bottom.xml
     文件        1028  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\anim\slide_out_top.xml
     目录           0  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable\
     目录           0  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable-hdpi\
     目录           0  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable-hdpi-1920x1080-v4\
     文件       22736  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable-hdpi-1920x1080-v4\ic_launcher.png
     文件         388  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable-hdpi\abcpex_pink__btn_default_normal_holo_dark.9.png
     文件         384  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable-hdpi\abcpex_pink__btn_default_normal_holo_light.9.png
     文件         236  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable-hdpi\abcp_pink__ab_transparent_light_holo.9.png
     文件         269  2016-02-16 00:05  BiLiBiLi-master\ABPlayer\res\drawable-hdpi\abcp_pink__btn_check_off_disabled_focused_holo_light.png
............此处省略1790个文件信息

评论

共有 条评论