-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.View.OnClickListener,android.view.View.OnTouchListener,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource,android.widget.SeekBar.OnSeekBarChangeListener,com.shuyu.gsyvideoplayer.listener.GSYMediaPlayerListener,com.shuyu.gsyvideoplayer.render.view.listener.IGSYSurfaceListener,com.shuyu.gsyvideoplayer.utils.MeasureHelper.MeasureFormVideoParamsListener
public abstract class GSYVideoControlView extends GSYVideoView implements View.OnClickListener, View.OnTouchListener, SeekBar.OnSeekBarChangeListener
播放UI的显示、控制层、手势处理等 Created by guoshuyu on 2017/8/2.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisShowDragProgressTextOnSeekBar
-
Constructor Summary
Constructors Constructor Description GSYVideoControlView(Context context)GSYVideoControlView(Context context, AttributeSet attrs)GSYVideoControlView(Context context, AttributeSet attrs, int defStyleAttr)GSYVideoControlView(Context context, Boolean fullFlag)
-
Method Summary
Modifier and Type Method Description booleanisShowDragProgressTextOnSeekBar()voidonAutoCompletion()voidonError(int what, int extra)voidonClick(View v)booleanonTouch(View v, MotionEvent event)亮度、进度、音频 booleansetUp(String url, boolean cacheWithPlay, String title)设置播放URL booleansetUp(String url, boolean cacheWithPlay, File cachePath, String title)设置播放URL voidonProgressChanged(SeekBar seekBar, int progress, boolean fromUser)voidonStartTrackingTouch(SeekBar seekBar)voidonStopTrackingTouch(SeekBar seekBar)*拖动进度条 voidonPrepared()voidonBufferingUpdate(int percent)booleansetUpLazy(String url, boolean cacheWithPlay, File cachePath, Map<String, String> mapHeadData, String title)在点击播放的时候才进行真正setup voidinitUIState()初始化为正常状态 RelativeLayoutgetThumbImageViewLayout()封面布局 voidsetThumbImageView(View view)*设置封面 voidclearThumbImageView()*清除封面 ViewgetThumbImageView()TextViewgetTitleTextView()title ViewgetStartButton()获取播放按键 ImageViewgetFullscreenButton()获取全屏按键 ImageViewgetBackButton()获取返回按键 intgetEnlargeImageRes()voidsetEnlargeImageRes(int mEnlargeImageRes)设置右下角 显示切换到全屏 的按键资源必须在setUp之前设置不设置使用默认 intgetShrinkImageRes()voidsetShrinkImageRes(int mShrinkImageRes)设置右下角 显示退出全屏 的按键资源必须在setUp之前设置不设置使用默认 voidsetIsTouchWigetFull(boolean isTouchWigetFull)是否可以全屏滑动界面改变进度,声音等默认 true voidsetThumbPlay(boolean thumbPlay)是否点击封面可以播放 booleanisSurfaceErrorPlay()voidsetSurfaceErrorPlay(boolean surfaceErrorPlay)播放错误时,是否点击触发重试 booleanisHideKey()voidsetHideKey(boolean hideKey)全屏隐藏虚拟按键,默认打开 booleanisNeedShowWifiTip()booleanisTouchWiget()voidsetIsTouchWiget(boolean isTouchWiget)是否可以滑动界面改变进度,声音等默认true booleanisTouchWigetFull()voidsetNeedShowWifiTip(boolean needShowWifiTip)是否需要显示流量提示,默认true voidsetSeekRatio(float seekRatio)调整触摸滑动快进的比例 floatgetSeekRatio()booleanisNeedLockFull()voidsetNeedLockFull(boolean needLoadFull)是否需要全屏锁定屏幕功能如果单独使用请设置setIfCurrentIsFullscreen为true voidsetLockClickListener(LockClickListener lockClickListener)锁屏点击 voidsetDismissControlTime(int dismissControlTime)设置触摸显示控制ui的消失时间 intgetDismissControlTime()voidsetGSYVideoProgressListener(GSYVideoProgressListener videoProgressListener)进度回调 voidsetShowDragProgressTextOnSeekBar(boolean showDragProgressTextOnSeekBar)拖动进度条时,是否在 seekbar 开始部位显示拖动进度默认 false GSYStateUiListenergetGSYStateUiListener()*状态监听 voidsetGSYStateUiListener(GSYStateUiListener gsyStateUiListener)-
Methods inherited from class com.shuyu.gsyvideoplayer.video.base.GSYVideoView
clearCurrentCache, getBuffterPoint, getCurrentPositionWhenPlaying, getCurrentState, getCurrentVideoHeight, getCurrentVideoWidth, getDuration, getGSYVideoManager, getLayoutId, getMapHeadData, getNetSpeed, getNetSpeedText, getOverrideExtension, getPlayPosition, getPlayTag, getSeekOnStart, getSpeed, getVideoSarDen, getVideoSarNum, isIfCurrentIsFullscreen, isInPlayingState, isLooping, isReleaseWhenLossAudio, isShowPauseCover, isStartAfterPrepared, onCompletion, onInfo, onSeekComplete, onVideoPause, onVideoReset, onVideoResume, onVideoResume, onVideoSizeChanged, release, seekTo, setIfCurrentIsFullscreen, setLooping, setMapHeadData, setOverrideExtension, setPlayPosition, setPlayTag, setReleaseWhenLossAudio, setSeekOnStart, setShowPauseCover, setSpeed, setSpeed, setSpeed, setSpeedPlaying, setStartAfterPrepared, setUp, setVideoAllCallBack, startAfterPrepared, startPlayLogic -
Methods inherited from class com.shuyu.gsyvideoplayer.video.base.GSYTextureRenderView
getEffectFilter, getRenderProxy, onSurfaceAvailable, onSurfaceDestroyed, onSurfaceSizeChanged, onSurfaceUpdated, setCustomGLRenderer, setEffectFilter, setGLRenderMode, setMatrixGL -
Methods inherited from class android.widget.FrameLayout
generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState -
Methods inherited from class android.view.ViewGroup
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findOnBackInvokedDispatcherForChild, findViewsWithText, focusSearch, focusableViewAvailable, gatherTransparentRegion, getChildAt, getChildCount, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout -
Methods inherited from class android.view.View
addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, bringToFront, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearViewTranslationCallback, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findOnBackInvokedDispatcher, findViewById, findViewWithTag, forceHasOverlappingRendering, forceLayout, generateDisplayHash, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAllowedHandwritingDelegatePackageName, getAllowedHandwritingDelegatorPackageName, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getHandler, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegatorCallback, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getOverlay, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, isContextClickable, isCredential, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHandwritingDelegate, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performHapticFeedback, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidateDelayed, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDataSensitive, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAllowedHandwritingDelegatePackage, setAllowedHandwritingDelegatorPackage, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHandwritingBoundsOffsets, setHandwritingDelegatorCallback, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setIsCredential, setIsHandwritingDelegate, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw -
Methods inherited from class com.shuyu.gsyvideoplayer.listener.GSYMediaPlayerListener
onBackFullscreen, onBufferingUpdate -
Methods inherited from class android.view.View.OnClickListener
onClick -
Methods inherited from class android.view.View.OnTouchListener
onTouch -
Methods inherited from class android.widget.SeekBar.OnSeekBarChangeListener
onProgressChanged, onStartTrackingTouch, onStopTrackingTouch -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GSYVideoControlView
GSYVideoControlView(Context context)
-
GSYVideoControlView
GSYVideoControlView(Context context, AttributeSet attrs)
-
GSYVideoControlView
GSYVideoControlView(Context context, AttributeSet attrs, int defStyleAttr)
-
-
Method Detail
-
isShowDragProgressTextOnSeekBar
boolean isShowDragProgressTextOnSeekBar()
-
onAutoCompletion
void onAutoCompletion()
-
onError
void onError(int what, int extra)
-
onTouch
boolean onTouch(View v, MotionEvent event)
亮度、进度、音频
-
setUp
boolean setUp(String url, boolean cacheWithPlay, String title)
设置播放URL
- Parameters:
url- 播放urlcacheWithPlay- 是否边播边缓存title- title
-
setUp
boolean setUp(String url, boolean cacheWithPlay, File cachePath, String title)
设置播放URL
- Parameters:
url- 播放urlcacheWithPlay- 是否边播边缓存cachePath- 缓存路径,如果是M3U8或者HLS,请设置为falsetitle- title
-
onProgressChanged
void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)
-
onStartTrackingTouch
void onStartTrackingTouch(SeekBar seekBar)
-
onStopTrackingTouch
void onStopTrackingTouch(SeekBar seekBar)
*拖动进度条
-
onPrepared
void onPrepared()
-
onBufferingUpdate
void onBufferingUpdate(int percent)
-
setUpLazy
boolean setUpLazy(String url, boolean cacheWithPlay, File cachePath, Map<String, String> mapHeadData, String title)
在点击播放的时候才进行真正setup
-
initUIState
void initUIState()
初始化为正常状态
-
getThumbImageViewLayout
RelativeLayout getThumbImageViewLayout()
封面布局
-
setThumbImageView
void setThumbImageView(View view)
*设置封面
-
clearThumbImageView
void clearThumbImageView()
*清除封面
-
getThumbImageView
View getThumbImageView()
-
getTitleTextView
TextView getTitleTextView()
title
-
getStartButton
View getStartButton()
获取播放按键
-
getFullscreenButton
ImageView getFullscreenButton()
获取全屏按键
-
getBackButton
ImageView getBackButton()
获取返回按键
-
getEnlargeImageRes
int getEnlargeImageRes()
-
setEnlargeImageRes
void setEnlargeImageRes(int mEnlargeImageRes)
设置右下角 显示切换到全屏 的按键资源必须在setUp之前设置不设置使用默认
-
getShrinkImageRes
int getShrinkImageRes()
-
setShrinkImageRes
void setShrinkImageRes(int mShrinkImageRes)
设置右下角 显示退出全屏 的按键资源必须在setUp之前设置不设置使用默认
-
setIsTouchWigetFull
void setIsTouchWigetFull(boolean isTouchWigetFull)
是否可以全屏滑动界面改变进度,声音等默认 true
-
setThumbPlay
void setThumbPlay(boolean thumbPlay)
是否点击封面可以播放
-
isSurfaceErrorPlay
boolean isSurfaceErrorPlay()
-
setSurfaceErrorPlay
void setSurfaceErrorPlay(boolean surfaceErrorPlay)
播放错误时,是否点击触发重试
-
isHideKey
boolean isHideKey()
-
setHideKey
void setHideKey(boolean hideKey)
全屏隐藏虚拟按键,默认打开
-
isNeedShowWifiTip
boolean isNeedShowWifiTip()
-
isTouchWiget
boolean isTouchWiget()
-
setIsTouchWiget
void setIsTouchWiget(boolean isTouchWiget)
是否可以滑动界面改变进度,声音等默认true
-
isTouchWigetFull
boolean isTouchWigetFull()
-
setNeedShowWifiTip
void setNeedShowWifiTip(boolean needShowWifiTip)
是否需要显示流量提示,默认true
-
setSeekRatio
void setSeekRatio(float seekRatio)
调整触摸滑动快进的比例
- Parameters:
seekRatio- 滑动快进的比例,默认1。数值越大,滑动的产生的seek越小
-
getSeekRatio
float getSeekRatio()
-
isNeedLockFull
boolean isNeedLockFull()
-
setNeedLockFull
void setNeedLockFull(boolean needLoadFull)
是否需要全屏锁定屏幕功能如果单独使用请设置setIfCurrentIsFullscreen为true
-
setLockClickListener
void setLockClickListener(LockClickListener lockClickListener)
锁屏点击
-
setDismissControlTime
void setDismissControlTime(int dismissControlTime)
设置触摸显示控制ui的消失时间
- Parameters:
dismissControlTime- 毫秒,默认2500
-
getDismissControlTime
int getDismissControlTime()
-
setGSYVideoProgressListener
void setGSYVideoProgressListener(GSYVideoProgressListener videoProgressListener)
进度回调
-
setShowDragProgressTextOnSeekBar
void setShowDragProgressTextOnSeekBar(boolean showDragProgressTextOnSeekBar)
拖动进度条时,是否在 seekbar 开始部位显示拖动进度默认 false
-
getGSYStateUiListener
GSYStateUiListener getGSYStateUiListener()
*状态监听
-
setGSYStateUiListener
void setGSYStateUiListener(GSYStateUiListener gsyStateUiListener)
-
-
-
-