-
- 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 class GSYSampleADVideoPlayer extends ListGSYVideoPlayer
只支持每个片头广告播放的类 其实就是根据实体,判断播放列表中哪个是广告,哪个不是,从而处理不同的UI显示效果 Created by guoshuyu on 2018/1/26.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGSYSampleADVideoPlayer.GSYADVideoModel
-
Constructor Summary
Constructors Constructor Description GSYSampleADVideoPlayer(Context context, Boolean fullFlag)GSYSampleADVideoPlayer(Context context)GSYSampleADVideoPlayer(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description intgetLayoutId()继承后重写可替换为你需要的布局 booleansetUp(List<GSYVideoModel> url, boolean cacheWithPlay, int position)如果需要片头广告的,请用setAdUp booleansetUp(List<GSYVideoModel> url, boolean cacheWithPlay, int position, File cachePath)如果需要片头广告的,请用setAdUp booleansetUp(List<GSYVideoModel> url, boolean cacheWithPlay, int position, File cachePath, Map<String, String> mapHeadData)如果需要片头广告的,请用setAdUp voidonPrepared()booleansetAdUp(ArrayList<GSYSampleADVideoPlayer.GSYADVideoModel> url, boolean cacheWithPlay, int position)带片头广告的,setAdUp booleansetAdUp(ArrayList<GSYSampleADVideoPlayer.GSYADVideoModel> url, boolean cacheWithPlay, int position, File cachePath)带片头广告的,setAdUp booleansetAdUp(ArrayList<GSYSampleADVideoPlayer.GSYADVideoModel> url, boolean cacheWithPlay, int position, File cachePath, Map<String, String> mapHeadData)带片头广告的,setAdUp -
Methods inherited from class com.shuyu.gsyvideoplayer.video.ListGSYVideoPlayer
onAutoCompletion, onCompletion, playNext, startWindowFullscreen -
Methods inherited from class com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer
restartTimerTask, saveFrame, saveFrame, setBottomProgressBarDrawable, setBottomShowProgressBarDrawable, setDialogProgressBar, setDialogProgressColor, setDialogVolumeProgressBar, startPlayLogic, taskShotPic, taskShotPic -
Methods inherited from class com.shuyu.gsyvideoplayer.video.base.GSYVideoPlayer
getGSYVideoManager -
Methods inherited from class com.shuyu.gsyvideoplayer.video.base.GSYBaseVideoPlayer
getCurrentPlayer, getFullWindowPlayer, getOrientationOption, getSaveBeforeFullSystemUiVisibility, getSmallWindowPlayer, hideSmallVideo, isAutoFullWithSize, isFullHideActionBar, isFullHideStatusBar, isLockLand, isNeedAutoAdaptation, isNeedOrientationUtils, isOnlyRotateLand, isRotateViewAuto, isRotateWithSystem, isShowFullAnimation, isVerticalFullByVideoSize, onBackFullscreen, onConfigurationChanged, onConfigurationChanged, onInfo, setAutoFullWithSize, setBackFromFullScreenListener, setFullHideActionBar, setFullHideStatusBar, setLockLand, setNeedAutoAdaptation, setNeedOrientationUtils, setOnlyRotateLand, setRotateViewAuto, setRotateWithSystem, setSaveBeforeFullSystemUiVisibility, setShowFullAnimation, showSmallVideo, startWindowFullscreen -
Methods inherited from class com.shuyu.gsyvideoplayer.video.base.GSYVideoControlView
clearThumbImageView, getBackButton, getDismissControlTime, getEnlargeImageRes, getFullscreenButton, getGSYStateUiListener, getSeekRatio, getShrinkImageRes, getStartButton, getThumbImageView, getThumbImageViewLayout, getTitleTextView, initUIState, isHideKey, isNeedLockFull, isNeedShowWifiTip, isShowDragProgressTextOnSeekBar, isSurfaceErrorPlay, isTouchWiget, isTouchWigetFull, onBufferingUpdate, onClick, onError, onProgressChanged, onStartTrackingTouch, onStopTrackingTouch, onTouch, setDismissControlTime, setEnlargeImageRes, setGSYStateUiListener, setGSYVideoProgressListener, setHideKey, setIsTouchWiget, setIsTouchWigetFull, setLockClickListener, setNeedLockFull, setNeedShowWifiTip, setSeekRatio, setShowDragProgressTextOnSeekBar, setShrinkImageRes, setSurfaceErrorPlay, setThumbImageView, setThumbPlay, setUp, setUp, setUpLazy -
Methods inherited from class com.shuyu.gsyvideoplayer.video.base.GSYVideoView
clearCurrentCache, getBuffterPoint, getCurrentPositionWhenPlaying, getCurrentState, getCurrentVideoHeight, getCurrentVideoWidth, getDuration, getMapHeadData, getNetSpeed, getNetSpeedText, getOverrideExtension, getPlayPosition, getPlayTag, getSeekOnStart, getSpeed, getVideoSarDen, getVideoSarNum, isIfCurrentIsFullscreen, isInPlayingState, isLooping, isReleaseWhenLossAudio, isShowPauseCover, isStartAfterPrepared, 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 -
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
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
-
GSYSampleADVideoPlayer
GSYSampleADVideoPlayer(Context context)
-
GSYSampleADVideoPlayer
GSYSampleADVideoPlayer(Context context, AttributeSet attrs)
-
-
Method Detail
-
getLayoutId
int getLayoutId()
继承后重写可替换为你需要的布局
-
setUp
boolean setUp(List<GSYVideoModel> url, boolean cacheWithPlay, int position)
如果需要片头广告的,请用setAdUp
- Parameters:
url- 播放urlcacheWithPlay- 是否边播边缓存position- 需要播放的位置
-
setUp
boolean setUp(List<GSYVideoModel> url, boolean cacheWithPlay, int position, File cachePath)
如果需要片头广告的,请用setAdUp
- Parameters:
url- 播放urlcacheWithPlay- 是否边播边缓存position- 需要播放的位置cachePath- 缓存路径,如果是M3U8或者HLS,请设置为false
-
setUp
boolean setUp(List<GSYVideoModel> url, boolean cacheWithPlay, int position, File cachePath, Map<String, String> mapHeadData)
如果需要片头广告的,请用setAdUp
- Parameters:
url- 播放urlcacheWithPlay- 是否边播边缓存position- 需要播放的位置cachePath- 缓存路径,如果是M3U8或者HLS,请设置为falsemapHeadData- http header
-
onPrepared
void onPrepared()
-
setAdUp
boolean setAdUp(ArrayList<GSYSampleADVideoPlayer.GSYADVideoModel> url, boolean cacheWithPlay, int position)
带片头广告的,setAdUp
-
setAdUp
boolean setAdUp(ArrayList<GSYSampleADVideoPlayer.GSYADVideoModel> url, boolean cacheWithPlay, int position, File cachePath)
带片头广告的,setAdUp
-
-
-
-