Skip to content

Commit

Permalink
update player demo
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Aug 13, 2020
1 parent e1952f1 commit d3a382b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ public void onClick(View v) {
});
//防止错位设置
holder.gsyVideoPlayer.setPlayTag(TAG);
holder.gsyVideoPlayer.setLockLand(true);
holder.gsyVideoPlayer.setPlayPosition(position);
//是否根据视频尺寸,自动选择竖屏全屏或者横屏全屏
holder.gsyVideoPlayer.setAutoFullWithSize(true);
//是否根据视频尺寸,自动选择竖屏全屏或者横屏全屏,这个标志为和 setLockLand 冲突,需要和 orientationUtils 使用
holder.gsyVideoPlayer.setAutoFullWithSize(false);
//音频焦点冲突时是否释放
holder.gsyVideoPlayer.setReleaseWhenLossAudio(false);
//全屏动画
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public abstract class GSYBaseVideoPlayer extends GSYVideoControlView {
protected boolean mLockLand = false;

//是否根据视频尺寸,自动选择竖屏全屏或者横屏全屏,注意,这时候默认旋转无效
//这个标志为和 mLockLand 冲突,需要和 OrientationUtils 使用
protected boolean mAutoFullWithSize = false;

//是否需要竖屏全屏的时候判断状态栏
Expand Down
12 changes: 6 additions & 6 deletions gsyVideoPlayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ dependencies {
//api project(':gsyVideoPlayer-x86_64')

//更多配置版so,增加了concat,rtsp,mpeg,crypto
//api project(':gsyVideoPlayer-ex_so')
api project(':gsyVideoPlayer-ex_so')

//api "com.shuyu:GSYVideoPlayer:$gsyVideoVersion"

//api "com.shuyu:gsyVideoPlayer-java:$gsyVideoVersion"
//api "com.shuyu:GSYVideoPlayer-exo2:$gsyVideoVersion"
api "com.shuyu:gsyVideoPlayer-armv5:$gsyVideoVersion"
api "com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion"
api "com.shuyu:gsyVideoPlayer-arm64:$gsyVideoVersion"
api "com.shuyu:gsyVideoPlayer-x64:$gsyVideoVersion"
api "com.shuyu:gsyVideoPlayer-x86:$gsyVideoVersion"
// api "com.shuyu:gsyVideoPlayer-armv5:$gsyVideoVersion"
//api "com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion"
//api "com.shuyu:gsyVideoPlayer-arm64:$gsyVideoVersion"
// api "com.shuyu:gsyVideoPlayer-x64:$gsyVideoVersion"
// api "com.shuyu:gsyVideoPlayer-x86:$gsyVideoVersion"

//更多配置版so,增加了concat,rtsp,mpeg,crypto
//api "com.shuyu:gsyVideoPlayer-ex_so:$gsyVideoVersion"
Expand Down

0 comments on commit d3a382b

Please sign in to comment.