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

import android.app.Application;
G
guoshuyu 已提交
4
import android.support.multidex.MultiDexApplication;
S
shuyu 已提交
5

G
guoshuyu 已提交
6 7 8
import com.shuyu.gsyvideoplayer.GSYVideoManager;
import com.shuyu.gsyvideoplayer.utils.GSYVideoType;

S
1.3.3  
shuyu 已提交
9
//import com.squareup.leakcanary.LeakCanary;
S
shuyu 已提交
10 11 12 13 14

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

G
guoshuyu 已提交
15
public class GSYApplication extends MultiDexApplication {
S
shuyu 已提交
16 17 18 19

    @Override
    public void onCreate() {
        super.onCreate();
S
1.3.3  
shuyu 已提交
20 21 22 23 24 25
        //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 已提交
26 27


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

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

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

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

G
guoshuyu 已提交
41
        //IjkPlayerManager.setLogLevel(IjkMediaPlayer.IJK_LOG_SILENT);
G
guoshuyu 已提交
42 43

        //GSYVideoType.setShowType(GSYVideoType.SCREEN_MATCH_FULL);
S
shuyu 已提交
44 45
    }
}