GSYApplication.java 971 字节
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;

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

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

public class GSYApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
S
1.3.3  
shuyu 已提交
19 20 21 22 23 24
        //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);
S
1.4.3  
shuyu 已提交
25
        //GSYVideoType.enableMediaCodec();
26
        //GSYVideoManager.instance().setVideoType(this, GSYVideoType.IJKEXOPLAYER);
27 28
        //GSYVideoType.setShowType(GSYVideoType.SCREEN_MATCH_FULL);
        //GSYVideoType.setShowType(GSYVideoType.SCREEN_TYPE_FULL);
29
        //GSYVideoType.setRenderType(GSYVideoType.SUFRACE);
S
shuyu 已提交
30 31
    }
}