GSYApplication.java 1.4 KB
Newer Older
S
shuyu 已提交
1 2 3 4
package com.example.gsyvideoplayer;

import android.app.Application;

5 6 7
import com.shuyu.gsyvideoplayer.GSYVideoManager;
import com.shuyu.gsyvideoplayer.utils.GSYVideoType;

8 9
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

S
1.3.3  
shuyu 已提交
10
//import com.squareup.leakcanary.LeakCanary;
S
shuyu 已提交
11 12 13 14 15 16 17 18 19 20

/**
 * Created by shuyu on 2016/11/11.
 */

public class GSYApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
S
1.3.3  
shuyu 已提交
21 22 23 24 25 26
        //if (LeakCanary.isInAnalyzerProcess(this)) {
            // This process is dedicated to LeakCanary for heap analysis.
            // You should not init your app in this process.
            //return;
        //}
        //LeakCanary.install(this);
G
guoshuyu 已提交
27 28


S
1.4.3  
shuyu 已提交
29
        //GSYVideoType.enableMediaCodec();
30
        //GSYVideoType.enableMediaCodecTexture();
G
guoshuyu 已提交
31

32
        //GSYVideoManager.instance().setVideoType(this, GSYVideoType.IJKEXOPLAYER); //EXO 1 播放内核,弃用
G
guoshuyu 已提交
33
        //GSYVideoManager.instance().setVideoType(this, GSYVideoType.IJKEXOPLAYER2); //EXO 2 播放内核
G
guoshuyu 已提交
34
        //GSYVideoManager.instance().setVideoType(this, GSYVideoType.SYSTEMPLAYER); //系统播放器
G
guoshuyu 已提交
35

36 37
        //GSYVideoType.setShowType(GSYVideoType.SCREEN_MATCH_FULL);
        //GSYVideoType.setShowType(GSYVideoType.SCREEN_TYPE_FULL);
G
guoshuyu 已提交
38

39
        //GSYVideoType.setRenderType(GSYVideoType.SUFRACE);
S
shuyu 已提交
40
        //GSYVideoType.setRenderType(GSYVideoType.GLSURFACE);
G
guoshuyu 已提交
41

42
        //GSYVideoManager.instance().setLogLevel(IjkMediaPlayer.IJK_LOG_SILENT);
S
shuyu 已提交
43 44
    }
}