资源简介

高仿抖音微视源代码,支持短视频播放录制,贴图美颜滤镜

资源截图

代码片段和文件信息

package com.tencent.qcloud.xiaoshipin;

import android.app.Activity;
import android.os.Bundle;
import android.support.multidex.MultiDexApplication;
import android.util.Log;

import com.tencent.bugly.crashreport.CrashReport;
import com.tencent.qcloud.xiaoshipin.common.utils.TCConstants;
import com.tencent.qcloud.xiaoshipin.common.utils.TCHttpEngine;
import com.tencent.qcloud.xiaoshipin.config.TCConfigManager;
import com.tencent.qcloud.xiaoshipin.login.TCUserMgr;
import com.tencent.rtmp.TXLivebase;
import com.tencent.ugc.TXUGCbase;
import com.umeng.socialize.PlatformConfig;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

//import com.squareup.leakcanary.LeakCanary;
//import com.squareup.leakcanary.RefWatcher;
/**
 * 小视频应用类,用于全局的操作,如
 * sdk初始化全局提示框
 */
public class TCApplication extends MultiDexApplication {

//    private RefWatcher mRefWatcher;

    private static TCApplication instance;
    private String ugcKey = “09bb91939d9ef9669f7ff16a850c92e5“;
    private String ugcLicenceUrl = “http://download-1252463788.cossh.myqcloud.com/xiaoshipin/licence_xsp/TXUgcSDK.licence“;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        TCConfigManager.init(this);
        initSDK();

        //配置分享第三方平台的appkey
        PlatformConfig.setWeixin(TCConstants.WEIXIN_SHARE_ID TCConstants.WEIXIN_SHARE_SECRECT);
        PlatformConfig.setSinaWeibo(TCConstants.SINA_WEIBO_SHARE_ID TCConstants.SINA_WEIBO_SHARE_SECRECT TCConstants.SINA_WEIBO_SHARE_REDIRECT_URL);
        PlatformConfig.setQQZone(TCConstants.QQZONE_SHARE_ID TCConstants.QQZONE_SHARE_SECRECT);
//        mRefWatcher = LeakCanary.install(this);
        // 短视频licence设置
        TXUGCbase.getInstance().setLicence(this ugcLicenceUrl ugcKey);

        // 上报启动次数
        TCUserMgr.getInstance().uploadLogs(TCConstants.ELK_ACTION_START_UP TCUserMgr.getInstance().getUserId() 0 ““ new Callback() {
            @Override
            public void onFailure(Call call IOException e) {

    }

            @Override
            public void onResponse(Call call Response response) throws IOException {

            }
        });
        registerActivityLifecycleCallbacks(new MyActivityLifecycleCallbacks(this));
    }

    public static TCApplication getApplication() {
        return instance;
    }

//    public static RefWatcher getRefWatcher(Context context) {
//        TCApplication application = (TCApplication) context.getApplicationContext();
//        return application.mRefWatcher;
//    }

    /**
     * 初始化SDK,包括Bugly,LiteAVSDK等
     */
    public void initSDK() {
        //启动bugly组件,bugly组件为腾讯提供的用于crash上报和分析的开放组件,如果您不需要该组件,可以自行移除
        CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(getApplicationContext());
        strategy.setAppVersion(TXLivebase.getSDKVersionStr());
        CrashReport.initCrashReport(get

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-17 05:00  XiaoShiPin_Android\
     文件    31949019  2018-08-17 05:00  XiaoShiPin_Android\LiteAVSDK_Professional_5.1.5293.aar
     目录           0  2018-08-17 05:00  XiaoShiPin_Android\Demo\
     目录           0  2018-08-17 04:36  XiaoShiPin_Android\Demo\captures\
     文件       94218  2018-08-17 04:36  XiaoShiPin_Android\Demo\captures\com.tencent.qcloud.xiaoshipin_2017.09.28_11.38.li
     文件        4971  2018-08-17 04:36  XiaoShiPin_Android\Demo\gradlew
     文件         672  2018-08-17 05:00  XiaoShiPin_Android\Demo\build.gradle
     目录           0  2018-08-17 04:36  XiaoShiPin_Android\Demo\gradle\
     目录           0  2018-08-17 04:36  XiaoShiPin_Android\Demo\gradle\wrapper\
     文件       53636  2018-08-17 04:36  XiaoShiPin_Android\Demo\gradle\wrapper\gradle-wrapper.jar
     文件         233  2018-08-17 04:36  XiaoShiPin_Android\Demo\gradle\wrapper\gradle-wrapper.properties
     文件        2404  2018-08-17 04:36  XiaoShiPin_Android\Demo\gradlew.bat
     目录           0  2018-08-17 05:00  XiaoShiPin_Android\Demo\app\
     文件        4971  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\gradlew
     文件        5164  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\proguard-rules.pro
     文件         462  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\local.properties
     文件        2452  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\rdmbuild.gradle
     目录           0  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\
     目录           0  2018-08-17 05:00  XiaoShiPin_Android\Demo\app\src\main\
     目录           0  2018-08-17 05:00  XiaoShiPin_Android\Demo\app\src\main\assets\
     文件        1361  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\TXUgcSDK.licence
     目录           0  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\
     目录           0  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\
     文件       37370  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\girl2.png
     文件       39178  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\girl6.png
     文件       38181  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\girl3.png
     文件         416  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\config.json
     文件       36161  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\girl1.png
     文件       38665  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\girl4.png
     文件       39154  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\girl5.png
     文件       35527  2018-08-17 04:36  XiaoShiPin_Android\Demo\app\src\main\assets\AnimatedPaster\girl\girl0.png
............此处省略834个文件信息

评论

共有 条评论