• 大小: 5.65MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-07
  • 语言: Java
  • 标签: Vitamio  

资源简介

使用Vitamio打造自己的Android万能播放器.............................................

资源截图

代码片段和文件信息

package com.nmbb.oplayer;

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

import com.nmbb.oplayer.service.MediaScannerService;
import com.nmbb.oplayer.util.FileUtils;

public class OPlayerApplication extends Application {

private static OPlayerApplication 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 OPlayerApplication getApplication() {
return mApplication;
}

public static Context getContext() {
return mApplication;
}

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-26 13:59  branches\
     目录           0  2017-04-26 13:59  tags\
     目录           0  2017-04-26 13:59  trunk\
     目录           0  2017-04-26 13:59  trunk\OPlayer\
     文件         364  2017-04-26 13:59  trunk\OPlayer\.classpath
     文件         810  2017-04-26 13:59  trunk\OPlayer\.project
     文件       11121  2017-04-26 13:59  trunk\OPlayer\AndroidManifest.xml
     目录           0  2017-04-26 13:59  trunk\OPlayer\assets\
     文件       67839  2017-04-26 13:59  trunk\OPlayer\assets\online.xml
     目录           0  2017-04-26 13:59  trunk\OPlayer\libs\
     文件      247894  2017-04-26 13:59  trunk\OPlayer\libs\android-support-v4.jar
     目录           0  2017-04-26 13:59  trunk\OPlayer\libs\armeabi\
     目录           0  2017-04-26 13:59  trunk\OPlayer\libs\armeabi-v7a\
     文件       70732  2017-04-26 13:59  trunk\OPlayer\libs\armeabi-v7a\libvinit.so
     文件       50541  2017-04-26 13:59  trunk\OPlayer\libs\ormlite-android-4.42-SNAPSHOT.jar
     文件      277837  2017-04-26 13:59  trunk\OPlayer\libs\ormlite-core-4.42-SNAPSHOT.jar
     文件      182211  2017-04-26 13:59  trunk\OPlayer\libs\pinyin4j-2.5.0.jar
     文件       39505  2017-04-26 13:59  trunk\OPlayer\libs\vitamio.jar
     文件         361  2017-04-26 13:59  trunk\OPlayer\project.properties
     目录           0  2017-04-26 13:59  trunk\OPlayer\res\
     目录           0  2017-04-26 13:59  trunk\OPlayer\res\drawable\
     目录           0  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\
     文件         358  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\arrow_right.png
     文件         193  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\blackscreen.png
     文件        6911  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\contact_list_scroll_normal.png
     文件        7695  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\contact_list_scroll_pressed.png
     文件        2110  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\default_thumbnail.png
     文件        4581  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\fast_scroller_overlay.png
     文件         906  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\home_bg_checked.png
     文件        8084  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\home_bg_normal.png
     文件        7880  2017-04-26 13:59  trunk\OPlayer\res\drawable-hdpi\icon.png
............此处省略126个文件信息

评论

共有 条评论