com.shuyu.gsyvideoplayer.video.base.GSYBaseVideoPlayer Java Examples
The following examples show how to use
com.shuyu.gsyvideoplayer.video.base.GSYBaseVideoPlayer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StandardVideoOSPlayer.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 6 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); StandardVideoOSPlayer sf = (StandardVideoOSPlayer) from; StandardVideoOSPlayer st = (StandardVideoOSPlayer) to; if (st.mProgressBar != null && sf.mProgressBar != null) { st.mProgressBar.setProgress(sf.mProgressBar.getProgress()); st.mProgressBar.setSecondaryProgress(sf.mProgressBar.getSecondaryProgress()); } if (st.mTotalTimeTextView != null && sf.mTotalTimeTextView != null) { st.mTotalTimeTextView.setText(sf.mTotalTimeTextView.getText()); } if (st.mCurrentTimeTextView != null && sf.mCurrentTimeTextView != null) { st.mCurrentTimeTextView.setText(sf.mCurrentTimeTextView.getText()); } }
Example #2
Source File: SampleVideo.java From GSYVideoPlayer with Apache License 2.0 | 6 votes |
/** * 全屏时将对应处理参数逻辑赋给全屏播放器 * * @param context * @param actionBar * @param statusBar * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { SampleVideo sampleVideo = (SampleVideo) super.startWindowFullscreen(context, actionBar, statusBar); sampleVideo.mSourcePosition = mSourcePosition; sampleVideo.mType = mType; sampleVideo.mTransformSize = mTransformSize; sampleVideo.mUrlList = mUrlList; sampleVideo.mTypeText = mTypeText; //sampleVideo.resolveTransform(); sampleVideo.resolveTypeUI(); //sampleVideo.resolveRotateUI(); //这个播放器的demo配置切换到全屏播放器 //这只是单纯的作为全屏播放显示,如果需要做大小屏幕切换,请记得在这里耶设置上视频全屏的需要的自定义配置 //比如已旋转角度之类的等等 //可参考super中的实现 return sampleVideo; }
Example #3
Source File: SampleControlVideo.java From GSYVideoPlayer with Apache License 2.0 | 6 votes |
/** * 全屏时将对应处理参数逻辑赋给全屏播放器 * * @param context * @param actionBar * @param statusBar * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { SampleControlVideo sampleVideo = (SampleControlVideo) super.startWindowFullscreen(context, actionBar, statusBar); sampleVideo.mSourcePosition = mSourcePosition; sampleVideo.mType = mType; sampleVideo.mTransformSize = mTransformSize; //sampleVideo.resolveTransform(); sampleVideo.resolveTypeUI(); //sampleVideo.resolveRotateUI(); //这个播放器的demo配置切换到全屏播放器 //这只是单纯的作为全屏播放显示,如果需要做大小屏幕切换,请记得在这里耶设置上视频全屏的需要的自定义配置 //比如已旋转角度之类的等等 //可参考super中的实现 return sampleVideo; }
Example #4
Source File: GSYVideoOptionBuilder.java From GSYVideoPlayer with Apache License 2.0 | 6 votes |
public void build(StandardGSYVideoPlayer gsyVideoPlayer) { if (mBottomShowProgressDrawable != null && mBottomShowProgressThumbDrawable != null) { gsyVideoPlayer.setBottomShowProgressBarDrawable(mBottomShowProgressDrawable, mBottomShowProgressThumbDrawable); } if (mBottomProgressDrawable != null) { gsyVideoPlayer.setBottomProgressBarDrawable(mBottomProgressDrawable); } if (mVolumeProgressDrawable != null) { gsyVideoPlayer.setDialogVolumeProgressBar(mVolumeProgressDrawable); } if (mDialogProgressBarDrawable != null) { gsyVideoPlayer.setDialogProgressBar(mDialogProgressBarDrawable); } if (mDialogProgressHighLightColor > 0 && mDialogProgressNormalColor > 0) { gsyVideoPlayer.setDialogProgressColor(mDialogProgressHighLightColor, mDialogProgressNormalColor); } build((GSYBaseVideoPlayer) gsyVideoPlayer); }
Example #5
Source File: StandardGSYVideoPlayer.java From GSYVideoPlayer with Apache License 2.0 | 6 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); StandardGSYVideoPlayer sf = (StandardGSYVideoPlayer) from; StandardGSYVideoPlayer st = (StandardGSYVideoPlayer) to; if (st.mProgressBar != null && sf.mProgressBar != null) { st.mProgressBar.setProgress(sf.mProgressBar.getProgress()); st.mProgressBar.setSecondaryProgress(sf.mProgressBar.getSecondaryProgress()); } if (st.mTotalTimeTextView != null && sf.mTotalTimeTextView != null) { st.mTotalTimeTextView.setText(sf.mTotalTimeTextView.getText()); } if (st.mCurrentTimeTextView != null && sf.mCurrentTimeTextView != null) { st.mCurrentTimeTextView.setText(sf.mCurrentTimeTextView.getText()); } }
Example #6
Source File: LQRBiliPlayerOptionBuilder.java From LQRBiliBlili with MIT License | 6 votes |
public void build(LQRBiliPlayer biliBiliPlayer) { if (mMyStandardVideoAllCallBack != null) { biliBiliPlayer.setStandardVideoAllCallBack(mMyStandardVideoAllCallBack); } if (mBottomShowProgressDrawable != null && mBottomShowProgressThumbDrawable != null) { biliBiliPlayer.setBottomShowProgressBarDrawable(mBottomShowProgressDrawable, mBottomShowProgressThumbDrawable); } if (mBottomProgressDrawable != null) { biliBiliPlayer.setBottomProgressBarDrawable(mBottomProgressDrawable); } if (mVolumeProgressDrawable != null) { biliBiliPlayer.setDialogVolumeProgressBar(mVolumeProgressDrawable); } if (mDialogProgressHighLightColor > 0 && mDialogProgressNormalColor > 0) { biliBiliPlayer.setDialogProgressColor(mDialogProgressHighLightColor, mDialogProgressNormalColor); } build((GSYBaseVideoPlayer) biliBiliPlayer); }
Example #7
Source File: SampleVideo.java From Aurora with Apache License 2.0 | 6 votes |
/** * 全屏时将对应处理参数逻辑赋给全屏播放器 * * @param context * @param actionBar * @param statusBar * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { SampleVideo sampleVideo = (SampleVideo) super.startWindowFullscreen(context, actionBar, statusBar); sampleVideo.mSourcePosition = mSourcePosition; sampleVideo.mType = mType; sampleVideo.mTransformSize = mTransformSize; sampleVideo.mUrlList = mUrlList; //sampleVideo.resolveTransform(); sampleVideo.resolveTypeUI(); //sampleVideo.resolveRotateUI(); //这个播放器的demo配置切换到全屏播放器 //这只是单纯的作为全屏播放显示,如果需要做大小屏幕切换,请记得在这里耶设置上视频全屏的需要的自定义配置 //比如已旋转角度之类的等等 //可参考super中的实现 return sampleVideo; }
Example #8
Source File: StandardVideoOSPlayer.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 6 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); StandardVideoOSPlayer sf = (StandardVideoOSPlayer) from; StandardVideoOSPlayer st = (StandardVideoOSPlayer) to; if (st.mProgressBar != null && sf.mProgressBar != null) { st.mProgressBar.setProgress(sf.mProgressBar.getProgress()); st.mProgressBar.setSecondaryProgress(sf.mProgressBar.getSecondaryProgress()); } if (st.mTotalTimeTextView != null && sf.mTotalTimeTextView != null) { st.mTotalTimeTextView.setText(sf.mTotalTimeTextView.getText()); } if (st.mCurrentTimeTextView != null && sf.mCurrentTimeTextView != null) { st.mCurrentTimeTextView.setText(sf.mCurrentTimeTextView.getText()); } }
Example #9
Source File: OrientationUtils.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
public OrientationUtils(Activity activity, GSYBaseVideoPlayer gsyVideoPlayer, OrientationOption orientationOption) { this.mActivity = activity; this.mVideoPlayer = gsyVideoPlayer; if (orientationOption == null) { this.mOrientationOption = new OrientationOption(); } else { this.mOrientationOption = orientationOption; } initGravity(activity); init(); }
Example #10
Source File: AudioSampleVideo.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); AudioSampleVideo audioSampleVideo = (AudioSampleVideo) gsyBaseVideoPlayer; audioSampleVideo.loadCoverImage(mCoverOriginUrl, mDefaultRes); return gsyBaseVideoPlayer; }
Example #11
Source File: AudioSampleVideo.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override public GSYBaseVideoPlayer showSmallVideo(Point size, boolean actionBar, boolean statusBar) { //下面这里替换成你自己的强制转化 AudioSampleVideo audioSampleVideo = (AudioSampleVideo) super.showSmallVideo(size, actionBar, statusBar); audioSampleVideo.mStartButton.setVisibility(GONE); audioSampleVideo.mStartButton = null; return audioSampleVideo; }
Example #12
Source File: StandardVideoOSPlayer.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 5 votes |
/** * 将自定义的效果也设置到全屏 * * @param context * @param actionBar 是否有actionBar,有的话需要隐藏 * @param statusBar 是否有状态bar,有的话需要隐藏 * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); if (gsyBaseVideoPlayer != null) { com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer gsyVideoPlayer = (com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer) gsyBaseVideoPlayer; gsyVideoPlayer.setLockClickListener(mLockClickListener); gsyVideoPlayer.setNeedLockFull(isNeedLockFull()); initFullUI(gsyVideoPlayer); //比如你自定义了返回案件,但是因为返回按键底层已经设置了返回事件,所以你需要在这里重新增加的逻辑 } return gsyBaseVideoPlayer; }
Example #13
Source File: AudioSampleVideo.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); AudioSampleVideo sf = (AudioSampleVideo) from; AudioSampleVideo st = (AudioSampleVideo) to; st.mShowFullAnimation = sf.mShowFullAnimation; }
Example #14
Source File: MultiSampleVideo.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); MultiSampleVideo multiSampleVideo = (MultiSampleVideo) gsyBaseVideoPlayer; multiSampleVideo.loadCoverImage(mCoverOriginUrl, mDefaultRes); return multiSampleVideo; }
Example #15
Source File: MultiSampleVideo.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override public GSYBaseVideoPlayer showSmallVideo(Point size, boolean actionBar, boolean statusBar) { //下面这里替换成你自己的强制转化 MultiSampleVideo multiSampleVideo = (MultiSampleVideo) super.showSmallVideo(size, actionBar, statusBar); multiSampleVideo.mStartButton.setVisibility(GONE); multiSampleVideo.mStartButton = null; return multiSampleVideo; }
Example #16
Source File: SmartPickVideo.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
/** * 全屏时将对应处理参数逻辑赋给全屏播放器 * * @param context * @param actionBar * @param statusBar * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { SmartPickVideo sampleVideo = (SmartPickVideo) super.startWindowFullscreen(context, actionBar, statusBar); sampleVideo.mSourcePosition = mSourcePosition; sampleVideo.mListItemRect = mListItemRect; sampleVideo.mListItemSize = mListItemSize; sampleVideo.mType = mType; sampleVideo.mUrlList = mUrlList; sampleVideo.mTypeText = mTypeText; sampleVideo.mSwitchSize.setText(mTypeText); return sampleVideo; }
Example #17
Source File: StandardGSYVideoPlayer.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
/** * 将自定义的效果也设置到全屏 * * @param context * @param actionBar 是否有actionBar,有的话需要隐藏 * @param statusBar 是否有状态bar,有的话需要隐藏 * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); if (gsyBaseVideoPlayer != null) { StandardGSYVideoPlayer gsyVideoPlayer = (StandardGSYVideoPlayer) gsyBaseVideoPlayer; gsyVideoPlayer.setLockClickListener(mLockClickListener); gsyVideoPlayer.setNeedLockFull(isNeedLockFull()); initFullUI(gsyVideoPlayer); //比如你自定义了返回案件,但是因为返回按键底层已经设置了返回事件,所以你需要在这里重新增加的逻辑 } return gsyBaseVideoPlayer; }
Example #18
Source File: GSYVideoHelper.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
/** * 如果是5.0的,要从原位置过度到全屏位置 */ private void resolveMaterialFullVideoShow(GSYBaseVideoPlayer gsyVideoPlayer) { FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) gsyVideoPlayer.getLayoutParams(); lp.setMargins(0, 0, 0, 0); lp.height = ViewGroup.LayoutParams.MATCH_PARENT; lp.width = ViewGroup.LayoutParams.MATCH_PARENT; lp.gravity = Gravity.CENTER; gsyVideoPlayer.setLayoutParams(lp); gsyVideoPlayer.setIfCurrentIsFullscreen(true); }
Example #19
Source File: ListVideoUtil.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
/** * 如果是5.0的,要从原位置过度到全屏位置 */ private void resolveMaterialFullVideoShow(GSYBaseVideoPlayer gsyVideoPlayer) { FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) gsyVideoPlayer.getLayoutParams(); lp.setMargins(0, 0, 0, 0); lp.height = ViewGroup.LayoutParams.MATCH_PARENT; lp.width = ViewGroup.LayoutParams.MATCH_PARENT; lp.gravity = Gravity.CENTER; gsyVideoPlayer.setLayoutParams(lp); gsyVideoPlayer.setIfCurrentIsFullscreen(true); }
Example #20
Source File: ListGSYVideoPlayer.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); if (gsyBaseVideoPlayer != null) { ListGSYVideoPlayer listGSYVideoPlayer = (ListGSYVideoPlayer) gsyBaseVideoPlayer; GSYVideoModel gsyVideoModel = mUriList.get(mPlayPosition); if (!TextUtils.isEmpty(gsyVideoModel.getTitle())) { listGSYVideoPlayer.mTitleTextView.setText(gsyVideoModel.getTitle()); } } return gsyBaseVideoPlayer; }
Example #21
Source File: GSYSampleADVideoPlayer.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); GSYSampleADVideoPlayer sf = (GSYSampleADVideoPlayer) from; GSYSampleADVideoPlayer st = (GSYSampleADVideoPlayer) to; st.isAdModel = sf.isAdModel; st.isFirstPrepared = sf.isFirstPrepared; st.changeAdUIState(); }
Example #22
Source File: GSYADVideoPlayer.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); GSYADVideoPlayer sf = (GSYADVideoPlayer) from; GSYADVideoPlayer st = (GSYADVideoPlayer) to; st.isFirstPrepared = sf.isFirstPrepared; st.changeAdUIState(); }
Example #23
Source File: ListGSYVideoPlayer.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); ListGSYVideoPlayer sf = (ListGSYVideoPlayer) from; ListGSYVideoPlayer st = (ListGSYVideoPlayer) to; st.mPlayPosition = sf.mPlayPosition; st.mUriList = sf.mUriList; }
Example #24
Source File: GSYExo2PlayerView.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
@Override protected void cloneParams(GSYBaseVideoPlayer from, GSYBaseVideoPlayer to) { super.cloneParams(from, to); GSYExo2PlayerView sf = (GSYExo2PlayerView) from; GSYExo2PlayerView st = (GSYExo2PlayerView) to; st.mPlayPosition = sf.mPlayPosition; st.mUriList = sf.mUriList; st.mExoCache = sf.mExoCache; st.mTitle = sf.mTitle; }
Example #25
Source File: StandardVideoOSPlayer.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 5 votes |
/** * 将自定义的效果也设置到全屏 * * @param context * @param actionBar 是否有actionBar,有的话需要隐藏 * @param statusBar 是否有状态bar,有的话需要隐藏 * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); if (gsyBaseVideoPlayer != null) { com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer gsyVideoPlayer = (com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer) gsyBaseVideoPlayer; gsyVideoPlayer.setLockClickListener(mLockClickListener); gsyVideoPlayer.setNeedLockFull(isNeedLockFull()); initFullUI(gsyVideoPlayer); //比如你自定义了返回案件,但是因为返回按键底层已经设置了返回事件,所以你需要在这里重新增加的逻辑 } return gsyBaseVideoPlayer; }
Example #26
Source File: StandardGSYVideoPlayer.java From Aurora with Apache License 2.0 | 5 votes |
/** * 将自定义的效果也设置到全屏 * * @param context * @param actionBar 是否有actionBar,有的话需要隐藏 * @param statusBar 是否有状态bar,有的话需要隐藏 * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); if (gsyBaseVideoPlayer != null) { StandardGSYVideoPlayer gsyVideoPlayer = (StandardGSYVideoPlayer) gsyBaseVideoPlayer; gsyVideoPlayer.setStandardVideoAllCallBack(mStandardVideoAllCallBack); gsyVideoPlayer.setLockClickListener(mLockClickListener); gsyVideoPlayer.setNeedLockFull(isNeedLockFull()); initFullUI(gsyVideoPlayer); //比如你自定义了返回案件,但是因为返回按键底层已经设置了返回事件,所以你需要在这里重新增加的逻辑 } return gsyBaseVideoPlayer; }
Example #27
Source File: LQRBiliPlayer.java From LQRBiliBlili with MIT License | 5 votes |
/** * 将自定义的效果也设置到全屏 * * @param context * @param actionBar 是否有actionBar,有的话需要隐藏 * @param statusBar 是否有状态bar,有的话需要隐藏 * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); if (gsyBaseVideoPlayer != null) { LQRBiliPlayer gsyVideoPlayer = (LQRBiliPlayer) gsyBaseVideoPlayer; gsyVideoPlayer.setStandardVideoAllCallBack(mStandardVideoAllCallBack); gsyVideoPlayer.setLockClickListener(mLockClickListener); gsyVideoPlayer.setNeedLockFull(isNeedLockFull()); initFullUI(gsyVideoPlayer); //比如你自定义了返回案件,但是因为返回按键底层已经设置了返回事件,所以你需要在这里重新增加的逻辑 } return gsyBaseVideoPlayer; }
Example #28
Source File: LQRBiliPlayerOptionBuilder.java From LQRBiliBlili with MIT License | 5 votes |
public void build(GSYBaseVideoPlayer gsyVideoPlayer) { gsyVideoPlayer.setPlayTag(mPlayTag); gsyVideoPlayer.setPlayPosition(mPlayPosition); gsyVideoPlayer.setThumbPlay(mThumbPlay); if (mThumbImageView != null) { gsyVideoPlayer.setThumbImageView(mThumbImageView); } gsyVideoPlayer.setNeedLockFull(mNeedLockFull); if (mLockClickListener != null) { gsyVideoPlayer.setLockClickListener(mLockClickListener); } gsyVideoPlayer.setDismissControlTime(mDismissControlTime); if (mSeekOnStart > 0) { gsyVideoPlayer.setSeekOnStart(mSeekOnStart); } gsyVideoPlayer.setShowFullAnimation(mShowFullAnimation); gsyVideoPlayer.setLooping(mLooping); if (mMyStandardVideoAllCallBack == null) { gsyVideoPlayer.setVideoAllCallBack(mVideoAllCallBack); } gsyVideoPlayer.setRotateViewAuto(mRotateViewAuto); gsyVideoPlayer.setLockLand(mLockLand); gsyVideoPlayer.setSpeed(mSpeed, mSounchTouch); gsyVideoPlayer.setHideKey(mHideKey); gsyVideoPlayer.setIsTouchWiget(mIsTouchWidget); gsyVideoPlayer.setIsTouchWigetFull(mIsTouchWidgetFull); gsyVideoPlayer.setNeedShowWifiTip(mNeedShowWifiTip); gsyVideoPlayer.setEffectFilter(mEffectFilter); if (mEnlargeImageRes > 0) { gsyVideoPlayer.setEnlargeImageRes(mEnlargeImageRes); } if (mShrinkImageRes > 0) { gsyVideoPlayer.setShrinkImageRes(mShrinkImageRes); } gsyVideoPlayer.setShowPauseCover(mShowPauseCover); gsyVideoPlayer.setSeekRatio(mSeekRatio); gsyVideoPlayer.setRotateWithSystem(mRotateWithSystem); gsyVideoPlayer.setUp(mUrl, mCacheWithPlay, mCachePath, mMapHeadData, mVideoTitle); }
Example #29
Source File: ScrollCalculatorHelper.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
/***************************************自动播放的点击播放确认******************************************/ private void startPlayLogic(GSYBaseVideoPlayer gsyBaseVideoPlayer, Context context) { if (!com.shuyu.gsyvideoplayer.utils.CommonUtil.isWifiConnected(context)) { //这里判断是否wifi showWifiDialog(gsyBaseVideoPlayer, context); return; } gsyBaseVideoPlayer.startPlayLogic(); }
Example #30
Source File: SmallVideoHelper.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
/** * 如果是5.0的,要从原位置过度到全屏位置 */ private void resolveMaterialFullVideoShow(GSYBaseVideoPlayer gsyVideoPlayer) { FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) gsyVideoPlayer.getLayoutParams(); lp.setMargins(0, 0, 0, 0); lp.height = ViewGroup.LayoutParams.MATCH_PARENT; lp.width = ViewGroup.LayoutParams.MATCH_PARENT; lp.gravity = Gravity.CENTER; gsyVideoPlayer.setLayoutParams(lp); gsyVideoPlayer.setIfCurrentIsFullscreen(true); }