public class PolyvAuxiliaryVideoView extends android.widget.FrameLayout implements IPolyvAuxiliaryVideoView
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListener
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
构造器和说明 |
---|
PolyvAuxiliaryVideoView(android.content.Context context) |
PolyvAuxiliaryVideoView(android.content.Context context,
android.util.AttributeSet attrs) |
PolyvAuxiliaryVideoView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
canPause() |
boolean |
canSeekBackward() |
boolean |
canSeekForward() |
void |
changeToAdLastPlayStage() |
void |
clearUri() |
void |
destroy()
销毁
|
int |
getAudioSessionId() |
int |
getBufferPercentage() |
int |
getCurrentPosition() |
int |
getCurrentState() |
int |
getDuration() |
IMediaPlayer |
getMediaPlayer()
已过时。
|
int |
getStatePauseCode() |
void |
hide()
隐藏
|
boolean |
isInPlaybackStateForwarding() |
boolean |
isPlaying() |
boolean |
isUseCustomTeaser() |
boolean |
onTouchEvent(android.view.MotionEvent event) |
void |
pause() |
void |
playNext()
开始或继续播放
正片之前播放顺序:片头广告(如果有) -> 片头(如果有) 正片之后播放顺序: 片尾广告(如果有) |
void |
playNext(boolean skipFirstAd)
开始或继续播放
设置是否跳过片头部分广告
|
void |
playNext(boolean skipFirstAd,
boolean skipTeaser)
开始或继续播放
设置是否跳过片头部分广告,是否跳过片头
|
void |
release()
释放
|
void |
release(boolean cleartargetstate) |
void |
runPauseAdvert()
运行暂停广告
|
void |
seekTo(int arg0) |
boolean |
setCustomTeaser(java.lang.String url,
int duration) |
void |
setData(PolyvVideoVO polyvVideoVO)
设置数据
会重置播放进度 |
void |
setLoadTimeoutSecond(int timeoutSecond)
设置加载超时时间,单位:秒
|
void |
setOnAdvertisementCountDownListener(IPolyvOnAdvertisementCountDownListener arg0)
设置广告倒计时监听回调
|
void |
setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener arg0)
设置视频广告显示/点击监听回调
|
void |
setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2 arg0)
设置视频广告显示/点击监听回调
|
void |
setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener arg0)
设置广告弹出监听回调
|
void |
setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2 arg0)
设置广告弹出监听回调
|
void |
setOnAuxiliaryPlayEndListener(IPolyvOnAuxiliaryPlayEndListener arg0)
设置辅助播放结束监听回调
|
void |
setOnCompletionListener(OnCompletionListener l)
已过时。
|
void |
setOnErrorListener(OnErrorListener l)
已过时。
|
void |
setOnInfoListener(OnInfoListener l)
已过时。
|
void |
setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
设置视频播放/暂停/播放完成回调
|
void |
setOnPreparedListener(OnPreparedListener l)
已过时。
|
void |
setOnRemindCallback(IPolyvOnRemindCallbackListener arg0)
设置提醒回调
|
void |
setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
设置seek完成回调
|
void |
setOnTeaserCountDownListener(IPolyvOnTeaserCountDownListener arg0)
设置片头倒计时监听回调
|
void |
setOnTeaserOutListener(IPolyvOnTeaserOutListener arg0)
设置片头弹出监听回调
|
void |
setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2 arg0)
设置视频尺寸改变回调
|
void |
setOpenAd(boolean isOpenAd)
设置是否开启广告
|
void |
setOpenRemind(boolean isOpenRemind,
int second)
设置是否开启提醒,最后一个视频广告或者片头倒计时达到指定参数设置的倒计时临界值,就会回调提醒监听方法。
|
void |
setOpenTeaser(boolean isOpenTeaser)
设置是否开启片头
|
void |
setOptionParameters(java.lang.Object[][] arg0) |
void |
setPlayerBufferingIndicator(android.view.View view)
设置播放器缓冲视图
|
void |
setRender(int arg0) |
void |
setVideoPath(java.lang.String path)
设置视频路径
|
void |
setVideoURI(android.net.Uri uri)
设置视频URI
|
void |
start()
开始
|
void |
stopPlayback() |
generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState
addChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, 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, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout
addExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, 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, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, 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, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTrackballEvent, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, 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, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, 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, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
canPause, canSeekBackward, canSeekForward, getAudioSessionId, getBufferPercentage, getCurrentPosition, getDuration, isPlaying, seekTo
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
public PolyvAuxiliaryVideoView(android.content.Context context)
public PolyvAuxiliaryVideoView(android.content.Context context, android.util.AttributeSet attrs)
public PolyvAuxiliaryVideoView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
public void setData(PolyvVideoVO polyvVideoVO)
IPolyvAuxiliaryVideoView
setData
在接口中 IPolyvAuxiliaryVideoView
public void changeToAdLastPlayStage()
public void playNext()
IPolyvAuxiliaryVideoView
playNext
在接口中 IPolyvAuxiliaryVideoView
public void playNext(boolean skipFirstAd)
IPolyvAuxiliaryVideoView
playNext
在接口中 IPolyvAuxiliaryVideoView
skipFirstAd
- 是否跳过片头广告IPolyvAuxiliaryVideoView.playNext()
public void playNext(boolean skipFirstAd, boolean skipTeaser)
IPolyvAuxiliaryVideoView
playNext
在接口中 IPolyvAuxiliaryVideoView
skipFirstAd
- 是否跳过片头广告skipTeaser
- 是否跳过片头IPolyvAuxiliaryVideoView.playNext()
public void runPauseAdvert()
IPolyvAuxiliaryVideoView
runPauseAdvert
在接口中 IPolyvAuxiliaryVideoView
public void setLoadTimeoutSecond(int timeoutSecond)
IPolyvAuxiliaryVideoView
setLoadTimeoutSecond
在接口中 IPolyvAuxiliaryVideoView
timeoutSecond
- 加载超时时间,最小值为1,默认为30public boolean setCustomTeaser(java.lang.String url, int duration)
setCustomTeaser
在接口中 IPolyvAuxiliaryVideoView
url
- 设置自定义片头url。
图片支持png、jpg、gif。
视频支持mp4、flv。duration
- 设置自定义片头时长
必填项,正整数。
设置的广告时长大于片头视频实际时长时,则以视频实际时长为准。public boolean isUseCustomTeaser()
public void hide()
IPolyvAuxiliaryVideoView
hide
在接口中 IPolyvAuxiliaryVideoView
public void setOpenRemind(boolean isOpenRemind, int second)
IPolyvAuxiliaryVideoView
setOpenRemind
在接口中 IPolyvAuxiliaryVideoView
second
- 秒,参数大于播放时间就取播放时间,小于0就取0public void setOpenTeaser(boolean isOpenTeaser)
IPolyvAuxiliaryVideoView
setOpenTeaser
在接口中 IPolyvAuxiliaryVideoView
public void setOpenAd(boolean isOpenAd)
IPolyvAuxiliaryVideoView
setOpenAd
在接口中 IPolyvAuxiliaryVideoView
public void setPlayerBufferingIndicator(android.view.View view)
IPolyvAuxiliaryVideoView
public void setVideoPath(java.lang.String path)
public void setVideoURI(android.net.Uri uri)
public void start()
start
在接口中 android.widget.MediaController.MediaPlayerControl
public void pause()
pause
在接口中 android.widget.MediaController.MediaPlayerControl
public boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent
在类中 android.view.View
@Deprecated public void setOnCompletionListener(OnCompletionListener l)
IPolyvAuxiliaryVideoViewListenerEvent
@Deprecated public void setOnErrorListener(OnErrorListener l)
IPolyvAuxiliaryVideoViewListenerEvent
@Deprecated public void setOnInfoListener(OnInfoListener l)
IPolyvAuxiliaryVideoViewListenerEvent
@Deprecated public void setOnPreparedListener(OnPreparedListener l)
IPolyvAuxiliaryVideoViewListenerEvent
@Deprecated public IMediaPlayer getMediaPlayer()
public void release()
IPolyvAuxiliaryVideoView
release
在接口中 IPolyvAuxiliaryVideoView
public void release(boolean cleartargetstate)
public void destroy()
IPolyvAuxiliaryVideoView
destroy
在接口中 IPolyvAuxiliaryVideoView
public void setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2 arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnRemindCallback(IPolyvOnRemindCallbackListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2 arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnAdvertisementCountDownListener(IPolyvOnAdvertisementCountDownListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2 arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnTeaserOutListener(IPolyvOnTeaserOutListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnTeaserCountDownListener(IPolyvOnTeaserCountDownListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public void setOnAuxiliaryPlayEndListener(IPolyvOnAuxiliaryPlayEndListener arg0)
IPolyvAuxiliaryVideoViewListenerEvent
public int getDuration()
public int getCurrentPosition()
public void seekTo(int arg0)
public boolean isPlaying()
public int getBufferPercentage()
public boolean canPause()
public boolean canSeekBackward()
public boolean canSeekForward()
public int getAudioSessionId()
public void setRender(int arg0)
public void stopPlayback()
public boolean isInPlaybackStateForwarding()
public void clearUri()
public int getStatePauseCode()
public int getCurrentState()
public void setOptionParameters(java.lang.Object[][] arg0)