-
public class GSYVideoTypevideo的一些默认配置 Created by shuyu on 2016/12/7.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intSCREEN_TYPE_DEFAULTpublic final static intSCREEN_TYPE_16_9public final static intSCREEN_TYPE_4_3public final static intSCREEN_TYPE_18_9public final static intSCREEN_TYPE_FULLpublic final static intSCREEN_MATCH_FULLpublic final static intSCREEN_TYPE_CUSTOMpublic final static intGLSURFACEpublic final static intSUFRACEpublic final static intTEXTURE
-
Method Summary
Modifier and Type Method Description static voidenableMediaCodec()使能硬解码,播放前设置 static voiddisableMediaCodec()关闭硬解码,播放前设置 static voidenableMediaCodecTexture()使能硬解码渲染优化 static voiddisableMediaCodecTexture()关闭硬解码渲染优化 static booleanisMediaCodec()是否开启硬解码 static booleanisMediaCodecTexture()是否开启硬解码渲染优化 static intgetShowType()static voidsetShowType(int type)设置显示比例,注意,这是全局生效的 static intgetRenderType()static voidsetRenderType(int renderType)渲染控件 static floatgetScreenScaleRatio()static voidsetScreenScaleRatio(float screenScaleRatio)*SCREEN_TYPE_CUSTOM 下自定义显示比例 -
-
Method Detail
-
enableMediaCodec
static void enableMediaCodec()
使能硬解码,播放前设置
-
disableMediaCodec
static void disableMediaCodec()
关闭硬解码,播放前设置
-
enableMediaCodecTexture
static void enableMediaCodecTexture()
使能硬解码渲染优化
-
disableMediaCodecTexture
static void disableMediaCodecTexture()
关闭硬解码渲染优化
-
isMediaCodec
static boolean isMediaCodec()
是否开启硬解码
-
isMediaCodecTexture
static boolean isMediaCodecTexture()
是否开启硬解码渲染优化
-
getShowType
static int getShowType()
-
setShowType
static void setShowType(int type)
设置显示比例,注意,这是全局生效的
-
getRenderType
static int getRenderType()
-
setRenderType
static void setRenderType(int renderType)
渲染控件
-
getScreenScaleRatio
static float getScreenScaleRatio()
-
setScreenScaleRatio
static void setScreenScaleRatio(float screenScaleRatio)
*SCREEN_TYPE_CUSTOM 下自定义显示比例
- Parameters:
screenScaleRatio- 高宽比,如 16:9
-
-
-
-