public class PolyvVideoView extends android.widget.FrameLayout implements IPolyvVideoView
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListenerandroid.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.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.OnTouchListenerCLIP_TO_PADDING_MASK, 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_CACHEACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, 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, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, 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, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, 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_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, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z| 构造器和说明 |
|---|
PolyvVideoView(android.content.Context context) |
PolyvVideoView(android.content.Context context,
android.util.AttributeSet attrs) |
PolyvVideoView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
PolyvVideoView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
answerQuestion()
回答问题
|
void |
answerQuestion(boolean isRight,
java.lang.String tipContent)
回答问题
|
void |
answerQuestion(java.util.List<java.lang.Integer> indexList)
回答问题
|
void |
answerQuestionFault()
回答问题错误
|
protected void |
callOnBufferingUpdateListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1) |
protected void |
callOnChangeModeListener(java.lang.String arg0) |
protected void |
callOnCompletionListener(IMediaPlayer mediaPlayer) |
protected void |
callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId) |
protected void |
callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
int bitrate,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList,
java.util.List<com.easefun.polyvsdk.video.PolyvPlayerOptionParamVO> playerParam) |
protected void |
callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList) |
protected void |
callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList) |
protected void |
callOnExceptionCompletedListener() |
protected void |
callOnGestureClickListener(boolean arg0,
boolean arg1) |
protected void |
callOnGestureDoubleClickListener() |
protected void |
callOnGestureLeftDownListener(boolean arg0,
boolean arg1) |
protected void |
callOnGestureLeftUpListener(boolean arg0,
boolean arg1) |
protected void |
callOnGestureRightDownListener(boolean arg0,
boolean arg1) |
protected void |
callOnGestureRightUpListener(boolean arg0,
boolean arg1) |
protected void |
callOnGestureSwipeLeftListener(boolean arg0,
int arg1,
boolean arg2) |
protected void |
callOnGestureSwipeRightListener(boolean arg0,
int arg1,
boolean arg2) |
protected void |
callOnGetVideoJsonTime(long arg0) |
protected void |
callOnGetVideoJsonTimeout(long arg0,
long arg1) |
protected void |
callOnInfoListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1,
int arg2) |
protected void |
callOnPlayPauseListenerCompletion() |
protected void |
callOnPlayPauseListenerPause() |
protected void |
callOnPlayPauseListenerPlay() |
protected void |
callOnPreloadPlayListener() |
protected void |
callOnPreparedListener(IMediaPlayer mediaPlayer) |
protected void |
callOnSeekCompleteListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0) |
protected void |
callOnVideoPlayErrorListener(int playErrorReason,
com.easefun.polyvsdk.vo.log.PolyvStatisticsBase staticsBase,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList,
java.util.List<com.easefun.polyvsdk.video.PolyvPlayerOptionParamVO> playerParam) |
protected void |
callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId) |
protected void |
callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId,
int bitrate,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList,
java.util.List<com.easefun.polyvsdk.video.PolyvPlayerOptionParamVO> playerParam) |
protected void |
callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList) |
protected void |
callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList) |
protected void |
callOnVideoSizeChangedListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1,
int arg2,
int arg3,
int arg4) |
protected void |
callOnVideoSRTPreparedListener() |
protected void |
callOnVideoStatusListener(int arg0) |
protected void |
callOnVideoTimeoutListenerBufferTimeout(int arg0,
int arg1) |
boolean |
canPause()
返回true
|
boolean |
canSeekBackward()
返回true
|
boolean |
canSeekForward()
返回true
|
boolean |
canShowControllerToPPTPlayback()
播ppt回放时的控制栏是否应该显示
|
boolean |
canStart()
是否可以开始
|
boolean |
changeBitRate(int bitRate)
切换码率
内部调用switchLevel方法 |
boolean |
changeBitRate(int bitRate,
boolean isMustFromLocal)
切换码率
内部调用switchLevel方法 |
boolean |
changeBitRate(int bitRate,
int strategy)
切换码率
内部调用switchLevel方法 |
void |
changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType)
切换播放速度,请使用
setSpeed(float)设置播放速度 |
void |
changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType,
boolean isMustFromLocal)
切换播放速度,请使用
setSpeed(float)设置播放速度 |
void |
changeMode(java.lang.String priorityMode)
改变播放模式
|
void |
changeMode(java.lang.String priorityMode,
int strategy)
改变播放模式
|
boolean |
changeRoute(int route)
切换线路
|
boolean |
changeSRT(java.lang.String key)
切换字幕
|
void |
clearCanvasInStart(boolean arg0) |
void |
clearGestureInfo()
已过时。
|
protected void |
clearListener() |
void |
clearOptionParameters() |
void |
closeSound()
关闭声音
|
tv.danmaku.ijk.media.player.IMediaPlayer |
createPlayer(int arg0) |
void |
deselectTrack(int arg0) |
void |
destroy()
销毁,在最后不使用播放器时调用
|
protected void |
destroyHandler() |
void |
disableScreenCAP(android.app.Activity activity,
boolean disableScreenCAP)
防录屏开关
|
int |
getAspectRatio()
取得银幕比率
|
int |
getAudioSessionId() |
PolyvAuxiliaryVideoView |
getAuxiliaryVideoView()
获取辅助视频播放视图
|
int |
getBitRate()
取得当前播放的视频码率
|
int |
getBrightness()
取得系统亮度
|
int |
getBrightness(android.app.Activity activity)
取得当前窗口亮度
|
int |
getBufferPercentage()
取得视频缓存百分比
|
int |
getCurrentAspectRatio() |
java.lang.String |
getCurrentMode()
获取当前播放模式,视频模式或音频模式
|
java.lang.String |
getCurrentPlayPath()
获取当前播放地址
|
int |
getCurrentPosition()
取得视频播放进度当前位置
|
int |
getCurrentRoute()
获取当前的线路
|
int |
getCurrentState() |
java.lang.String |
getCurrentVid()
取得当前视频Id
|
java.lang.String |
getCurrentVideoId()
取得当前视频id
|
java.lang.String |
getCurrSRTKey()
取得当前字幕的key
|
int |
getDuration()
取得总时长
|
android.view.GestureDetector |
getGestureDetector()
获取GestureDetector
|
Video.HlsSpeedType |
getHlsSpeedType()
获取倍速类型,请使用
setSpeed(float)设置播放速度 |
tv.danmaku.ijk.media.player.IjkMediaPlayer |
getIjkMediaPlayer() |
int |
getLevel()
获取码率数量
|
PolyvBaseMediaController |
getMediaController()
取得播放器控制栏
|
IMediaPlayer |
getMediaPlayer()
已过时。
|
boolean |
getNeedGestureDetector()
取得是否需要手势
|
protected IPolyvOnAdvertisementCountDownListener |
getOnAdvertisementCountDownListener() |
protected IPolyvOnAdvertisementEventListener |
getOnAdvertisementEventListener() |
protected IPolyvOnAdvertisementEventListener2 |
getOnAdvertisementEventListener2() |
protected IPolyvOnAdvertisementOutListener |
getOnAdvertisementOutListener() |
protected IPolyvOnAdvertisementOutListener2 |
getOnAdvertisementOutListener2() |
protected IPolyvOnTeaserCountDownListener |
getOnTeaserCountDownListener() |
protected IPolyvOnTeaserOutListener |
getOnTeaserOutListener() |
java.lang.String |
getPlayId()
获取当前播放的播放Id
|
java.lang.String |
getPlayPathWithBitRate(int bit)
根据码率获取播放地址
|
com.easefun.polyvsdk.question.PolyvQuestion |
getPolyvQuestion() |
java.lang.String |
getPriorityMode()
获取优先播放播放模式,视频模式或音频模式
|
com.easefun.polyvsdk.ijk.widget.media.IRenderView |
getRenderView() |
int |
getRouteCount()
获取可以总的线路数
|
int |
getSeekType()
获取seek类型
|
int |
getSelectedTrack(int arg0) |
float |
getSpeed()
获取播放速度
|
int |
getStateIdleCode() |
int |
getStatePauseCode() |
int |
getStatePlaybackCompletedCode() |
int |
getStatePreparedCode() |
int |
getStatePreparingCode() |
int |
getStayTimeDuration()
取得停留时长
|
android.view.SurfaceHolder |
getSurfaceHolder() |
tv.danmaku.ijk.media.player.misc.ITrackInfo[] |
getTrackInfo() |
Video |
getVideo()
取得当前播放的视频Video
|
int |
getVideoHeight() |
int |
getVideoWidth() |
java.lang.String |
getViewerId()
获取观众id
方法内调用
PolyvSDKClient.getViewerId() |
java.lang.String |
getViewerName()
取得播放授权token的观众名称
|
java.lang.String |
getViewerParam()
获取播放授权token的观众额外参数
|
java.lang.String |
getViewLogParam1()
获取观看日志的param1
|
java.lang.String |
getViewLogParam2()
获取观看日志的观众昵称,内部调用
PolyvSDKClient.setViewerInfo(PolyvViewerInfo)方法获取观众昵称 |
java.lang.String |
getViewLogParam3()
获取观看日志的param3
|
java.lang.String |
getViewLogParam4()
获取观看日志的param4
|
java.lang.String |
getViewLogParam5()
获取观看日志的param5
|
int |
getVolume()
取得音量
|
int |
getWatchTimeDuration()
取得观看时长,只有在播放中才会计数
|
protected void |
initIPolyvIjkVideoView(IPolyvIjkVideoView arg0) |
boolean |
isBufferState()
当前是否在缓冲中
|
boolean |
isCompletedState()
当前是否播放完成
|
boolean |
isDisableScreenCAP()
是否开启防录屏
|
boolean |
isExceptionCompleted()
当前是否异常播放完成
|
boolean |
isInPlaybackState()
是否在播放状态,包括准备好,播放,缓冲,暂停,播放完成
|
boolean |
isInPlaybackStateForwarding() |
boolean |
isLocalPlay()
是否本地播放
|
boolean |
isOpenPreload()
是否开启预加载
|
boolean |
isOpenSound()
是否开启声音
|
boolean |
isPauseState()
当前是否在暂停中
|
boolean |
isPausState()
|
boolean |
isPlaying()
是否播放中,包括暂停,缓冲
|
boolean |
isPlayStageMain()
是否是播放主视频阶段
|
boolean |
isPlayState()
当前是否在播放中(不包括缓冲状态)
|
boolean |
isPlayState(boolean isAndBuffer)
当前是否在播放中
|
boolean |
isPPTResume()
ppt是否处于resume状态
|
boolean |
isPreparedState()
当前是否在准备中
|
boolean |
isStartOnPrepared()
是否在准备完成的时候开始
|
void |
onActivityResume()
|
boolean |
onActivityStop()
|
protected void |
onConfigurationChanged(android.content.res.Configuration newConfig) |
protected void |
onDetachedFromWindow() |
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event) |
boolean |
onPPTLiveTranTouchEvent(android.view.MotionEvent event,
int width)
传递手势事件,仅ppt回放使用。
|
boolean |
onTouchEvent(android.view.MotionEvent event) |
boolean |
onTrackballEvent(android.view.MotionEvent ev) |
protected void |
onWindowVisibilityChanged(int visibility) |
void |
openSound()
开启声音
|
void |
pause()
暂停
|
void |
pause(boolean isNotShowAdvert)
弹出问答界面前会调用pause来暂停视频,这个时候不需要出发暂停广告。
|
void |
playNext()
已过时。
|
void |
PPTLiveLayoutChange()
ppt回放界面的布局发生变化时,可以调用该方法把播放器放到右上角
|
void |
PPTLiveLayoutResume()
ppt回放界面的布局恢复到原来时,可以调用该方法把播放器放回到原来的位置
|
void |
release()
释放
|
void |
release(boolean cleartargetstate) |
void |
releaseWithoutStop() |
void |
removeRenderView() |
void |
resume() |
android.graphics.Bitmap |
screenshot() |
android.graphics.Bitmap |
screenshot(android.graphics.Bitmap arg0) |
android.graphics.Bitmap |
screenshot(int arg0,
int arg1) |
void |
seekTo(int pos)
跳转到
|
void |
seekTo(long pos)
跳转
|
void |
selectTrack(int arg0) |
boolean |
setAspectRatio(int screen)
设置银幕比率
|
void |
setAutoContinue(boolean isAutoContinue)
设置是否自动续播
|
void |
setAuxiliaryVideoView(PolyvAuxiliaryVideoView auxiliaryVideoView)
设置辅助视频播放视图
|
void |
setBrightness(android.app.Activity activity,
int brightness)
设置当前窗口亮度
|
boolean |
setBrightness(int brightness)
设置系统亮度,需android.permission.WRITE_SETTINGS权限
|
void |
setBufferTimeoutSecond(boolean isOpenBufferTimeout,
int timeoutSecond)
设置缓冲超时时间,单位:秒。
|
void |
setBufferTimeoutSecond(int timeoutSecond)
已过时。
|
void |
setCurrentAspectRatio(int arg0) |
void |
setIjkLogLevel(int arg0) |
void |
setLoadTimeoutSecond(boolean isOpenLoadTimeout,
int timeoutSecond)
设置加载超时时间,单位:秒。
|
void |
setLoadTimeoutSecond(int timeoutSecond)
已过时。
|
void |
setLooping(boolean arg0) |
void |
setMarqueeView(com.easefun.polyvsdk.marquee.PolyvMarqueeView marqueeView,
com.easefun.polyvsdk.marquee.PolyvMarqueeItem marqueeItem)
设置跑马灯控件,及item
|
void |
setMaxBuffer(long maxBuffer)
设置最大缓存字节
|
void |
setMediaBufferingIndicator(android.view.View view)
|
void |
setMediaController(com.easefun.polyvsdk.ijk.widget.media.IMediaController controller)
已过时。
|
void |
setMediaController(PolyvBaseMediaController mediaController)
设置播放器控制栏
|
void |
setNeedGestureDetector(boolean need)
设置是否需要手势
|
void |
setOnAdvertisementCountDownListener(IPolyvOnAdvertisementCountDownListener l)
设置广告倒计时监听回调
|
void |
setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener l)
已过时。
|
void |
setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2 l)
设置视频广告显示/点击监听回调
|
void |
setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener l)
已过时。
|
void |
setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2 l)
设置广告弹出监听回调
|
void |
setOnBufferingUpdateListener(IMediaPlayer.OnBufferingUpdateListener l)
已过时。
|
void |
setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener l)
已过时。
|
void |
setOnChangeModeListener(com.easefun.polyvsdk.video.listener.IPolyvOnChangeModeListener arg0)
设置改变播放模式监听器
|
void |
setOnCompletionListener(IMediaPlayer.OnCompletionListener l)
已过时。
|
void |
setOnCompletionListener(IPolyvOnCompletionListener l)
已过时。
|
void |
setOnErrorListener(IMediaPlayer.OnErrorListener l)
已过时。
|
void |
setOnErrorListener(IPolyvOnErrorListener l)
已过时。
|
void |
setOnErrorListener(IPolyvOnErrorListener2 l)
已过时。
|
void |
setOnExceptionCompletedListener(com.easefun.polyvsdk.video.listener.IPolyvOnExceptionCompletedListener arg0)
设置异常完成监听器
|
void |
setOnGestureClickListener(IPolyvOnGestureClickListener arg0)
设置手势单击回调
|
void |
setOnGestureDoubleClickListener(com.easefun.polyvsdk.video.listener.IPolyvOnGestureDoubleClickListener arg0)
设置手势双击回调
|
void |
setOnGestureLeftDownListener(IPolyvOnGestureLeftDownListener arg0)
设置手势左向下回调
|
void |
setOnGestureLeftUpListener(IPolyvOnGestureLeftUpListener arg0)
设置手势左向上回调
|
void |
setOnGestureRightDownListener(IPolyvOnGestureRightDownListener arg0)
设置手势右向下回调
|
void |
setOnGestureRightUpListener(IPolyvOnGestureRightUpListener arg0)
设置手势右向上回调
|
void |
setOnGestureSwipeLeftListener(IPolyvOnGestureSwipeLeftListener arg0)
设置手势左滑回调
|
void |
setOnGestureSwipeRightListener(IPolyvOnGestureSwipeRightListener arg0)
设置手势右滑回调
|
void |
setOnGetVideoJsonTimeListener(com.easefun.polyvsdk.video.listener.IPolyvOnGetVideoJsonTimeListener arg0)
设置获取videojson时间、超时监听器
|
void |
setOnInfoListener(IMediaPlayer.OnInfoListener l)
已过时。
|
void |
setOnInfoListener(IPolyvOnInfoListener l)
已过时。
|
void |
setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
设置视频播放/暂停/播放完成回调
|
void |
setOnPreloadPlayListener(com.easefun.polyvsdk.video.listener.IPolyvOnPreloadPlayListener arg0)
设置预加载播放回调
|
void |
setOnPreparedListener(IMediaPlayer.OnPreparedListener l)
已过时。
|
void |
setOnPreparedListener(IPolyvOnPreparedListener l)
已过时。
|
void |
setOnQuestionAnswerTipsListener(IPolyvOnQuestionAnswerTipsListener l)
设置问答答错提示监听回调,告诉此时应该弹出提示
|
void |
setOnQuestionOutListener(IPolyvOnQuestionOutListener l)
已过时。
|
void |
setOnQuestionOutListener(IPolyvOnQuestionOutListener2 l)
设置问答弹出监听回调,告诉此时应该弹出问答
|
void |
setOnSeekCompleteListener(IPolyvOnSeekCompleteListener l)
已过时。
|
void |
setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
设置seek完成回调
|
void |
setOnSurfaceUpdateListener(com.easefun.polyvsdk.ijk.widget.media.IjkVideoView.OnSurfaceUpdateListener arg0) |
void |
setOnTeaserCountDownListener(IPolyvOnTeaserCountDownListener l)
设置片头倒计时监听回调
|
void |
setOnTeaserOutListener(IPolyvOnTeaserOutListener l)
设置片头弹出监听回调
|
void |
setOnVideoPlayErrorLisener(IPolyvOnVideoPlayErrorListener l)
已过时。
|
void |
setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener l)
已过时。
|
void |
setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2 l)
设置视频非播放器内部错误回调
|
void |
setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener l)
已过时。
|
void |
setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2 arg0)
设置视频尺寸改变回调
|
void |
setOnVideoSRTListener(IPolyvOnVideoSRTListener l)
设置字幕监听回调
|
void |
setOnVideoSRTPreparedListener(com.easefun.polyvsdk.video.listener.IPolyvOnVideoSRTPreparedListener arg0)
设置字幕准备完成监听回调
|
void |
setOnVideoStatusListener(IPolyvOnVideoStatusListener arg0)
设置视频状态回调
|
void |
setOnVideoTimeoutListener(com.easefun.polyvsdk.video.listener.IPolyvOnVideoTimeoutListener arg0)
设置视频加载/缓冲超时的监听器
|
void |
setOpenAd(boolean isOpenAd)
设置是否开启广告
|
void |
setOpenMarquee(boolean isOpenMarquee)
是否开启跑马灯
|
void |
setOpenPreload(boolean isOpenPreload)
设置是否开启预加载
|
void |
setOpenPreload(boolean isOpenPreload,
int preloadSecond)
设置是否开启预加载
|
void |
setOpenQuestion(boolean isOpenQuestion)
设置是否开启问答
|
void |
setOpenSRT(boolean isOpenSRT)
设置是否开启字幕
|
void |
setOpenTeaser(boolean isOpenTeaser)
设置是否开启片头
|
void |
setOptionParameters(java.lang.Object[][] arg0) |
void |
setPlackbackParam(com.easefun.polyvsdk.live.video.PolyvPlaybackParam plackbackParam)
设置回放参数
|
void |
setPlayerBufferingIndicator(android.view.View view)
设置播放器缓冲视图
|
void |
setPlayerBufferingViewVisibility(int visibility)
设置视频缓冲视图可见性
|
void |
setPPTLiveDrawView(com.easefun.polyvsdk.live.chat.IPolyvPPTView pptView,
boolean isLifeBeControlledByVideoView)
设置ppt绘制控件
|
void |
setPPTStatus(boolean isPPTResume)
设置ppt的状态
|
void |
setPPTVid(java.lang.String videoId,
int bitRate,
boolean isMustFromLocal)
如果需要带上观众id ,请调用
IPolyvVideoView.setPPTVidWithStudentId(String, int,boolean,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置ppt回放视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。 |
void |
setPPTVideoURI(android.net.Uri uri)
设置ppt回放视频uri播放视频
|
void |
setPPTVidWithStudentId(java.lang.String videoId,
int bitRate,
boolean isMustFromLocal,
java.lang.String studentId)
设置ppt回放视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setPriorityMode(java.lang.String priorityMode)
设置优先播放模式,获取不到音频播放地址时会使用视频模式播放。
|
void |
setPriorityMode(java.lang.String priorityMode,
boolean mayChangeMode)
设置优先播放模式。
|
void |
setQuestionAnswerOverdueTime(int month,
int day,
int hour)
设置问答回答过期时间,默认是7天,回答会被缓存在数据库中,都设置为0表示不保存到数据库中
|
void |
setQuestionOverdueTime(int month,
int day,
int hour)
设置问答问题过期时间,默认是1天,问题会被缓存在数据库中,都设置为0表示不保存到数据库中
|
void |
setRender(int arg0) |
void |
setRenderView(com.easefun.polyvsdk.ijk.widget.media.IRenderView arg0) |
void |
setSeekType(int seekType)
设置seek类型
|
void |
setSpeed(float arg0)
设置播放速度
|
void |
setStartOnPrepared(boolean isStartOnPrepared)
是否在准备完成的时候开始
|
void |
setUserAgent(java.lang.String ua)
已过时。
|
void |
setVid(java.lang.String videoId)
如果需要带上观众id ,请调用
IPolyvVideoView.setVidWithStudentId(String, String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。 |
void |
setVid(java.lang.String videoId,
boolean isMustFromLocal)
如果需要带上观众id ,请调用
IPolyvVideoView.setVidWithStudentId(String, String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。 |
void |
setVid(java.lang.String videoId,
boolean isMustFromLocal,
Video.HlsSpeedType hlsSpeedType)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVid(java.lang.String videoId,
int bitRateNum)
如果需要带上观众id ,请调用
IPolyvVideoView.setVidWithStudentId(String, int,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。 |
void |
setVid(java.lang.String videoId,
int bitRateNum,
boolean isMustFromLocal)
如果需要带上观众id ,请调用
IPolyvVideoView.setVidWithStudentId(String, int,boolean,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。 |
void |
setVid(java.lang.String videoId,
int bitRateNum,
boolean isMustFromLocal,
Video.HlsSpeedType hlsSpeedType)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVidByStrategy(java.lang.String videoId,
int strategy)
如果需要带上观众id ,请调用
IPolyvVideoView.setVidByStrategyWithStudentId(String, int,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
根据播放策略设置视频id播放视频 |
void |
setVidByStrategy(java.lang.String videoId,
int bitRate,
int strategy)
如果需要带上观众id ,请调用
IPolyvVideoView.setVidByStrategyWithStudentId(String, int,int,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
根据播放策略设置视频id播放视频 |
void |
setVidByStrategyWithStudentId(java.lang.String videoId,
int bitRate,
int strategy,
java.lang.String studentId)
根据播放策略设置视频id播放视频
|
void |
setVidByStrategyWithStudentId(java.lang.String videoId,
int strategy,
java.lang.String studentId)
根据播放策略设置视频id播放视频
|
void |
setVideoLayout(int layout) |
void |
setVideoPath(java.lang.String path)
设置视频路径
|
void |
setVideoPath(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
设置视频路径
|
void |
setVideoURI(android.net.Uri uri)
设置视频URI
|
void |
setVideoURI(android.net.Uri uri,
java.util.Map<java.lang.String,java.lang.String> headers)
设置视频URI
|
void |
setVidWithStudentId(java.lang.String videoId,
boolean isMustFromLocal,
java.lang.String studentId)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVidWithStudentId(java.lang.String videoId,
int bitRate,
boolean isMustFromLocal,
java.lang.String studentId)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVidWithStudentId(java.lang.String videoId,
int bitRate,
java.lang.String studentId)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVidWithStudentId(java.lang.String videoId,
java.lang.String studentId)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setViewerId(java.lang.String viewerId)
设置观众id,默认为空字符串
""参数会用于两个地方 第一会作为请求播放授权token时的参数-观众id 第二会作为观看日志的自定义ID,可以用于传递观众id 方法内调用 PolyvSDKClient.setViewerId(String)方法 |
void |
setViewerName(java.lang.String viewerName)
设置请求播放授权token时的参数-观众名称,默认为空字符串
"" |
void |
setViewerParam(java.lang.String viewerParam)
设置请求播放授权token时的参数-观众额外参数,默认为空字符串
"" |
void |
setViewLogParam1(java.lang.String viewLogParam1)
设置观看日志的param1,默认为空字符串
"" |
void |
setViewLogParam2(java.lang.String viewLogParam2)
设置观看日志的观众昵称,内部调用
PolyvSDKClient.setViewerInfo(PolyvViewerInfo)方法设置观众昵称 |
void |
setViewLogParam3(java.lang.String viewLogParam3)
设置观看日志的param3,默认为空字符串
"" |
void |
setViewLogParam4(java.lang.String viewLogParam4)
设置观看日志的param4,默认为空字符串
"" |
void |
setViewLogParam5(java.lang.String viewLogParam5)
设置观看日志的param5,默认为空字符串
"" |
void |
setVolume(int volume)
设置音量
|
void |
skipQuestion()
跳过问题
|
void |
start()
开始
|
void |
stopPlayback()
停止播放
|
void |
suspend() |
boolean |
switchLevel(int bitRate)
切换码率
|
boolean |
switchLevel(int bitRate,
boolean isMustFromLocal)
切换码率
|
boolean |
switchLevel(int bitRateNum,
int strategy)
切换码率
|
int |
toggleAspectRatio() |
int |
togglePlayer() |
int |
toggleRender() |
checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, onMeasure, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedStateaddChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayoutaddFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanPause, canSeekBackward, canSeekForward, isPlayingcanResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayoutpublic PolyvVideoView(android.content.Context context)
public PolyvVideoView(android.content.Context context,
android.util.AttributeSet attrs)
public PolyvVideoView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public PolyvVideoView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
public int getCurrentPosition()
IPolyvMediaPlayerControlgetCurrentPosition 在接口中 android.widget.MediaController.MediaPlayerControlgetCurrentPosition 在接口中 IPolyvMediaPlayerControlpublic int getDuration()
IPolyvMediaPlayerControlgetDuration 在接口中 android.widget.MediaController.MediaPlayerControlgetDuration 在接口中 IPolyvMediaPlayerControlpublic void setVidWithStudentId(java.lang.String videoId,
java.lang.String studentId)
IPolyvVideoViewIPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVidWithStudentId 在接口中 IPolyvVideoViewvideoId - 视频idstudentId - 观众idpublic void setVid(java.lang.String videoId)
IPolyvVideoViewIPolyvVideoView.setVidWithStudentId(String, String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。IPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVid 在接口中 IPolyvVideoViewvideoId - 视频idpublic void setVidWithStudentId(java.lang.String videoId,
boolean isMustFromLocal,
java.lang.String studentId)
IPolyvVideoViewIPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVidWithStudentId 在接口中 IPolyvVideoViewvideoId - 视频idisMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsestudentId - 观众idpublic void setVid(java.lang.String videoId,
boolean isMustFromLocal)
IPolyvVideoViewIPolyvVideoView.setVidWithStudentId(String, String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。IPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVid 在接口中 IPolyvVideoViewvideoId - 视频idisMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsepublic void setVid(java.lang.String videoId,
boolean isMustFromLocal,
Video.HlsSpeedType hlsSpeedType)
IPolyvVideoViewIPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVid 在接口中 IPolyvVideoViewvideoId - 视频idisMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsehlsSpeedType - 播放速度类型 Video.HlsSpeedType,非加密视频设置此参数没有效果,默认值Video.HlsSpeedType.SPEED_1X。请使用setSpeed(float)设置播放速度IPolyvVideoView.setVid(String, boolean)public void setVidWithStudentId(java.lang.String videoId,
int bitRate,
java.lang.String studentId)
IPolyvVideoViewsetVidWithStudentId 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)studentId - 观众idpublic void setVid(java.lang.String videoId,
int bitRateNum)
IPolyvVideoViewIPolyvVideoView.setVidWithStudentId(String, int,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。setVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRateNum - 码率(清晰度)public void setVidWithStudentId(java.lang.String videoId,
int bitRate,
boolean isMustFromLocal,
java.lang.String studentId)
IPolyvVideoViewsetVidWithStudentId 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsestudentId - 观众idpublic void setVid(java.lang.String videoId,
int bitRateNum,
boolean isMustFromLocal)
IPolyvVideoViewIPolyvVideoView.setVidWithStudentId(String, int,boolean,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。setVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRateNum - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsepublic void setVid(java.lang.String videoId,
int bitRateNum,
boolean isMustFromLocal,
Video.HlsSpeedType hlsSpeedType)
IPolyvVideoViewsetVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRateNum - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsehlsSpeedType - 播放速度类型 Video.HlsSpeedType,非加密视频设置此参数没有效果,默认值Video.HlsSpeedType.SPEED_1X。请使用setSpeed(float)设置播放速度IPolyvVideoView.setVid(String, int, boolean)public void setVidByStrategy(java.lang.String videoId,
int strategy)
IPolyvVideoViewIPolyvVideoView.setVidByStrategyWithStudentId(String, int,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
根据播放策略设置视频id播放视频setVidByStrategy 在接口中 IPolyvVideoViewvideoId - 视频idstrategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTpublic void setVidByStrategyWithStudentId(java.lang.String videoId,
int strategy,
java.lang.String studentId)
IPolyvVideoViewsetVidByStrategyWithStudentId 在接口中 IPolyvVideoViewvideoId - 视频idstrategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTstudentId - 观众idpublic void setVidByStrategyWithStudentId(java.lang.String videoId,
int bitRate,
int strategy,
java.lang.String studentId)
IPolyvVideoViewsetVidByStrategyWithStudentId 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)strategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTstudentId - 观众idpublic void setVidByStrategy(java.lang.String videoId,
int bitRate,
int strategy)
IPolyvVideoViewIPolyvVideoView.setVidByStrategyWithStudentId(String, int,int,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
根据播放策略设置视频id播放视频setVidByStrategy 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)strategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTpublic void setPPTVidWithStudentId(java.lang.String videoId,
int bitRate,
boolean isMustFromLocal,
java.lang.String studentId)
IPolyvVideoViewsetPPTVidWithStudentId 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频studentId - 观众idpublic void setPPTVid(java.lang.String videoId,
int bitRate,
boolean isMustFromLocal)
IPolyvVideoViewIPolyvVideoView.setPPTVidWithStudentId(String, int,boolean,String) 或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置ppt回放视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。setPPTVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频public java.lang.String getCurrentVid()
IPolyvVideoViewgetCurrentVid 在接口中 IPolyvVideoViewpublic java.lang.String getCurrentVideoId()
IPolyvVideoViewgetCurrentVideoId 在接口中 IPolyvVideoViewpublic void setStartOnPrepared(boolean isStartOnPrepared)
IPolyvVideoViewsetStartOnPrepared 在接口中 IPolyvVideoViewpublic boolean isStartOnPrepared()
IPolyvVideoViewisStartOnPrepared 在接口中 IPolyvVideoViewpublic void setMaxBuffer(long maxBuffer)
IPolyvVideoViewsetMaxBuffer 在接口中 IPolyvVideoViewpublic void setPriorityMode(java.lang.String priorityMode)
IPolyvVideoViewsetPriorityMode 在接口中 IPolyvVideoViewpriorityMode - video/audio,默认为video。or PolyvVideoVO.MODE_VIDEO/PolyvVideoVO.MODE_AUDIOpublic void setPriorityMode(java.lang.String priorityMode,
boolean mayChangeMode)
IPolyvVideoViewsetPriorityMode 在接口中 IPolyvVideoViewpriorityMode - video/audio,默认为video。or PolyvVideoVO.MODE_VIDEO/PolyvVideoVO.MODE_AUDIOmayChangeMode - 获取不到音频播放地址时是否切换为视频模式,仅对priorityMode=audio有效。public java.lang.String getCurrentMode()
IPolyvVideoViewgetCurrentMode 在接口中 IPolyvVideoViewPolyvVideoVO.MODE_VIDEO/PolyvVideoVO.MODE_AUDIOpublic java.lang.String getPriorityMode()
IPolyvVideoViewgetPriorityMode 在接口中 IPolyvVideoViewPolyvVideoVO.MODE_VIDEO/PolyvVideoVO.MODE_AUDIOpublic java.lang.String getPlayId()
IPolyvVideoViewgetPlayId 在接口中 IPolyvVideoViewpublic java.lang.String getCurrentPlayPath()
IPolyvVideoViewgetCurrentPlayPath 在接口中 IPolyvVideoViewpublic void changeMode(java.lang.String priorityMode)
IPolyvVideoViewchangeMode 在接口中 IPolyvVideoViewpriorityMode - PolyvVideoVO.MODE_VIDEO/PolyvVideoVO.MODE_AUDIOpublic void changeMode(java.lang.String priorityMode,
int strategy)
IPolyvVideoViewchangeMode 在接口中 IPolyvVideoViewpriorityMode - PolyvVideoVO.MODE_VIDEO/PolyvVideoVO.MODE_AUDIOstrategy - 策略模式public int getBitRate()
IPolyvVideoViewgetBitRate 在接口中 IPolyvVideoViewpublic Video.HlsSpeedType getHlsSpeedType()
IPolyvVideoViewsetSpeed(float)设置播放速度getHlsSpeedType 在接口中 IPolyvVideoViewpublic Video getVideo()
IPolyvVideoViewgetVideo 在接口中 IPolyvVideoViewpublic int getLevel()
IPolyvVideoViewgetLevel 在接口中 IPolyvVideoViewpublic int getWatchTimeDuration()
IPolyvVideoViewgetWatchTimeDuration 在接口中 IPolyvVideoViewpublic int getStayTimeDuration()
IPolyvVideoViewgetStayTimeDuration 在接口中 IPolyvVideoViewpublic boolean isLocalPlay()
IPolyvVideoViewisLocalPlay 在接口中 IPolyvVideoViewtrue:是false:否public boolean isPlayStageMain()
IPolyvVideoViewisPlayStageMain 在接口中 IPolyvVideoViewpublic void setVideoPath(java.lang.String path)
IPolyvIjkVideoViewsetVideoPath 在接口中 IPolyvIjkVideoViewpath - 视频地址public void setVideoPath(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
IPolyvVideoViewsetVideoPath 在接口中 IPolyvVideoViewpath - 视频地址headers - header参数,注意key-value的value的前面必须带上空格,即" {value}"。public void setVideoURI(android.net.Uri uri)
IPolyvIjkVideoViewsetVideoURI 在接口中 IPolyvIjkVideoViewuri - 视频地址public void setVideoURI(android.net.Uri uri,
java.util.Map<java.lang.String,java.lang.String> headers)
IPolyvIjkVideoViewsetVideoURI 在接口中 IPolyvIjkVideoViewuri - 视频地址headers - header参数,注意key-value的value的前面必须带上空格,即" {value}"。public void setPPTVideoURI(android.net.Uri uri)
IPolyvVideoViewsetPPTVideoURI 在接口中 IPolyvVideoViewuri - ppt回放视频的uripublic void setPlackbackParam(com.easefun.polyvsdk.live.video.PolyvPlaybackParam plackbackParam)
IPolyvVideoViewsetPlackbackParam 在接口中 IPolyvVideoViewpublic void setPlayerBufferingViewVisibility(int visibility)
visibility - 可见度类型public java.lang.String getPlayPathWithBitRate(int bit)
IPolyvVideoViewgetPlayPathWithBitRate 在接口中 IPolyvVideoViewpublic boolean changeRoute(int route)
IPolyvVideoViewchangeRoute 在接口中 IPolyvVideoViewroute - 线路public int getRouteCount()
IPolyvVideoViewgetRouteCount 在接口中 IPolyvVideoViewpublic int getCurrentRoute()
IPolyvVideoViewgetCurrentRoute 在接口中 IPolyvVideoViewpublic void setSeekType(int seekType)
IPolyvVideoViewsetSeekType 在接口中 IPolyvVideoViewpublic int getSeekType()
IPolyvVideoViewgetSeekType 在接口中 IPolyvVideoViewpublic void disableScreenCAP(android.app.Activity activity,
boolean disableScreenCAP)
IPolyvVideoViewdisableScreenCAP 在接口中 IPolyvVideoViewdisableScreenCAP - @code true}:开启false:关闭public boolean isDisableScreenCAP()
IPolyvVideoViewisDisableScreenCAP 在接口中 IPolyvVideoViewpublic boolean changeBitRate(int bitRate)
IPolyvVideoViewchangeBitRate 在接口中 IPolyvVideoViewbitRate - - 码率IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)设置的回调监听中,调用IPolyvVideoView.getBitRate()获取码率(清晰度)public boolean changeBitRate(int bitRate,
boolean isMustFromLocal)
IPolyvVideoViewchangeBitRate 在接口中 IPolyvVideoViewbitRate - 码率isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)设置的回调监听中,调用IPolyvVideoView.getBitRate()获取码率(清晰度)public boolean changeBitRate(int bitRate,
int strategy)
IPolyvVideoViewchangeBitRate 在接口中 IPolyvVideoViewbitRate - 码率(清晰度)strategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTIPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)设置的回调监听中,调用IPolyvVideoView.getBitRate()获取码率(清晰度)public boolean switchLevel(int bitRate)
IPolyvVideoViewswitchLevel 在接口中 IPolyvVideoViewbitRate - 码率IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)设置的回调监听中,调用IPolyvVideoView.getBitRate()获取码率(清晰度)public boolean switchLevel(int bitRate,
boolean isMustFromLocal)
IPolyvVideoViewswitchLevel 在接口中 IPolyvVideoViewbitRate - 码率isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)设置的回调监听中,调用IPolyvVideoView.getBitRate()获取码率(清晰度)public boolean switchLevel(int bitRateNum,
int strategy)
IPolyvVideoViewswitchLevel 在接口中 IPolyvVideoViewbitRateNum - 码率(清晰度)strategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTIPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)设置的回调监听中,调用IPolyvVideoView.getBitRate()获取码率(清晰度)public void changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType)
IPolyvVideoViewsetSpeed(float)设置播放速度changeHlsSpeedType 在接口中 IPolyvVideoViewhlsSpeedType - 播放速度类型 Video.HlsSpeedType,非加密视频设置此参数没有效果public void changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType, boolean isMustFromLocal)
IPolyvVideoViewsetSpeed(float)设置播放速度changeHlsSpeedType 在接口中 IPolyvVideoViewhlsSpeedType - 播放速度类型 Video.HlsSpeedType,非加密视频设置此参数没有效果isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频public void pause()
IPolyvMediaPlayerControlpause 在接口中 android.widget.MediaController.MediaPlayerControlpause 在接口中 IPolyvMediaPlayerControlpublic void pause(boolean isNotShowAdvert)
pause 在接口中 PolyvBaseMediaController.MediaPlayerControlisNotShowAdvert - - 是否不显示广告public void seekTo(long pos)
seekTo 在接口中 PolyvBaseMediaController.MediaPlayerControlpos - 时间点,毫秒public void seekTo(int pos)
IPolyvMediaPlayerControlseekTo 在接口中 android.widget.MediaController.MediaPlayerControlseekTo 在接口中 IPolyvMediaPlayerControlpos - 毫秒public int getBufferPercentage()
IPolyvMediaPlayerControlgetBufferPercentage 在接口中 android.widget.MediaController.MediaPlayerControlgetBufferPercentage 在接口中 IPolyvMediaPlayerControlpublic java.lang.String getViewerId()
IPolyvVideoViewPolyvSDKClient.getViewerId()getViewerId 在接口中 IPolyvVideoViewIPolyvVideoView.setViewerId(String)设置的值PolyvSDKClient.getViewerId()public void setViewerId(java.lang.String viewerId)
IPolyvVideoView""PolyvSDKClient.setViewerId(String)方法setViewerId 在接口中 IPolyvVideoViewviewerId - 观众idPolyvSDKClient.setViewerId(String)public java.lang.String getViewerName()
IPolyvVideoViewgetViewerName 在接口中 IPolyvVideoViewIPolyvVideoView.setViewerName(String)设置的值public void setViewerName(java.lang.String viewerName)
IPolyvVideoView""setViewerName 在接口中 IPolyvVideoViewviewerName - 观众名称public java.lang.String getViewerParam()
IPolyvVideoViewgetViewerParam 在接口中 IPolyvVideoViewIPolyvVideoView.setViewerParam(String)设置的值public void setViewerParam(java.lang.String viewerParam)
IPolyvVideoView""setViewerParam 在接口中 IPolyvVideoViewviewerParam - 观众额外参数public java.lang.String getViewLogParam1()
IPolyvVideoViewgetViewLogParam1 在接口中 IPolyvVideoViewIPolyvVideoView.setViewLogParam1(String)设置的值public void setViewLogParam1(java.lang.String viewLogParam1)
IPolyvVideoView""setViewLogParam1 在接口中 IPolyvVideoViewviewLogParam1 - 参数字符串public java.lang.String getViewLogParam2()
IPolyvVideoViewPolyvSDKClient.setViewerInfo(PolyvViewerInfo)方法获取观众昵称getViewLogParam2 在接口中 IPolyvVideoViewIPolyvVideoView.setViewLogParam2(String)设置的值public void setViewLogParam2(java.lang.String viewLogParam2)
IPolyvVideoViewPolyvSDKClient.setViewerInfo(PolyvViewerInfo)方法设置观众昵称setViewLogParam2 在接口中 IPolyvVideoViewviewLogParam2 - 参数字符串public java.lang.String getViewLogParam3()
IPolyvVideoViewgetViewLogParam3 在接口中 IPolyvVideoViewIPolyvVideoView.setViewLogParam3(String)设置的值public void setViewLogParam3(java.lang.String viewLogParam3)
IPolyvVideoView""setViewLogParam3 在接口中 IPolyvVideoViewviewLogParam3 - 参数字符串public java.lang.String getViewLogParam4()
IPolyvVideoViewgetViewLogParam4 在接口中 IPolyvVideoViewIPolyvVideoView.setViewLogParam4(String)设置的值public void setViewLogParam4(java.lang.String viewLogParam4)
IPolyvVideoView""setViewLogParam4 在接口中 IPolyvVideoViewviewLogParam4 - 参数字符串public java.lang.String getViewLogParam5()
IPolyvVideoViewgetViewLogParam5 在接口中 IPolyvVideoViewIPolyvVideoView.setViewLogParam5(String)设置的值public void setViewLogParam5(java.lang.String viewLogParam5)
IPolyvVideoView""setViewLogParam5 在接口中 IPolyvVideoViewviewLogParam5 - 参数字符串public void release()
IPolyvVideoViewrelease 在接口中 IPolyvVideoViewpublic void release(boolean cleartargetstate)
release 在接口中 IPolyvIjkVideoViewpublic void start()
start 在接口中 android.widget.MediaController.MediaPlayerControlstart 在接口中 IPolyvMediaPlayerControlpublic void setPPTLiveDrawView(com.easefun.polyvsdk.live.chat.IPolyvPPTView pptView,
boolean isLifeBeControlledByVideoView)
IPolyvVideoViewsetPPTLiveDrawView 在接口中 IPolyvVideoViewisLifeBeControlledByVideoView - ppt绘制控件的生命周期是否由播放器决定,此时外部无需处理public boolean isPPTResume()
IPolyvVideoViewisPPTResume 在接口中 IPolyvVideoViewpublic void setPPTStatus(boolean isPPTResume)
IPolyvVideoViewsetPPTStatus 在接口中 IPolyvVideoViewpublic boolean canShowControllerToPPTPlayback()
IPolyvVideoViewcanShowControllerToPPTPlayback 在接口中 IPolyvVideoViewpublic void PPTLiveLayoutChange()
IPolyvVideoViewPPTLiveLayoutChange 在接口中 IPolyvVideoViewpublic void PPTLiveLayoutResume()
IPolyvVideoViewPPTLiveLayoutResume 在接口中 IPolyvVideoViewprotected void onConfigurationChanged(android.content.res.Configuration newConfig)
onConfigurationChanged 在类中 android.view.Viewpublic void setMarqueeView(com.easefun.polyvsdk.marquee.PolyvMarqueeView marqueeView,
com.easefun.polyvsdk.marquee.PolyvMarqueeItem marqueeItem)
IPolyvVideoViewsetMarqueeView 在接口中 IPolyvVideoViewpublic void setOpenMarquee(boolean isOpenMarquee)
IPolyvVideoViewsetOpenMarquee 在接口中 IPolyvVideoView@Deprecated public void clearGestureInfo()
IPolyvVideoViewclearGestureInfo 在接口中 IPolyvVideoViewpublic boolean onPPTLiveTranTouchEvent(android.view.MotionEvent event,
int width)
IPolyvVideoViewonPPTLiveTranTouchEvent 在接口中 IPolyvVideoViewpublic boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent 在类中 android.view.Viewprotected void callOnPreparedListener(IMediaPlayer mediaPlayer)
protected void callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId)
protected void callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList)
protected void callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList)
protected void callOnVideoPlayErrorListener(int playErrorReason,
java.lang.String playId,
java.lang.String videoId,
int bitrate,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList,
java.util.List<com.easefun.polyvsdk.video.PolyvPlayerOptionParamVO> playerParam)
protected void callOnVideoPlayErrorListener(int playErrorReason,
com.easefun.polyvsdk.vo.log.PolyvStatisticsBase staticsBase,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList,
java.util.List<com.easefun.polyvsdk.video.PolyvPlayerOptionParamVO> playerParam)
protected void callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId)
protected void callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList)
protected void callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList)
protected void callOnErrorListener(IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
int bitrate,
java.util.List<java.lang.String> exceptionList,
java.util.List<java.lang.String> logList,
java.util.List<com.easefun.polyvsdk.video.PolyvPlayerOptionParamVO> playerParam)
protected void callOnCompletionListener(IMediaPlayer mediaPlayer)
public boolean onTrackballEvent(android.view.MotionEvent ev)
onTrackballEvent 在类中 android.view.Viewpublic boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
onKeyDown 在接口中 android.view.KeyEvent.CallbackonKeyDown 在类中 android.view.Viewprotected void onWindowVisibilityChanged(int visibility)
onWindowVisibilityChanged 在类中 android.view.View@Deprecated public void setLoadTimeoutSecond(int timeoutSecond)
IPolyvVideoViewsetLoadTimeoutSecond 在接口中 IPolyvVideoViewtimeoutSecond - 加载超时时间,最小值为25,默认为25IPolyvVideoView.setLoadTimeoutSecond(boolean, int)public void setLoadTimeoutSecond(boolean isOpenLoadTimeout,
int timeoutSecond)
IPolyvVideoViewsetLoadTimeoutSecond 在接口中 IPolyvVideoViewisOpenLoadTimeout - 是否开启加载超时的功能,默认关闭timeoutSecond - 加载超时时间,最小值为25,默认为25@Deprecated public void setBufferTimeoutSecond(int timeoutSecond)
IPolyvVideoViewsetBufferTimeoutSecond 在接口中 IPolyvVideoViewtimeoutSecond - 缓冲超时时间,最小值为15,默认为15IPolyvVideoView.setBufferTimeoutSecond(boolean, int)public void setBufferTimeoutSecond(boolean isOpenBufferTimeout,
int timeoutSecond)
IPolyvVideoViewsetBufferTimeoutSecond 在接口中 IPolyvVideoViewisOpenBufferTimeout - 是否开启缓冲超时的功能,默认关闭timeoutSecond - 缓冲超时时间,最小值为15,默认为15public boolean isOpenSound()
IPolyvVideoViewisOpenSound 在接口中 IPolyvVideoViewtrue:开启false:关闭public void openSound()
IPolyvVideoViewopenSound 在接口中 IPolyvVideoViewpublic void closeSound()
IPolyvVideoViewcloseSound 在接口中 IPolyvVideoViewpublic void setVolume(int volume)
IPolyvVideoViewsetVolume 在接口中 IPolyvVideoViewvolume - - 音量,0 到 100 闭区间的数public int getVolume()
IPolyvVideoViewgetVolume 在接口中 IPolyvVideoViewpublic void setBrightness(android.app.Activity activity,
int brightness)
IPolyvVideoViewsetBrightness 在接口中 IPolyvVideoViewbrightness - - 亮度,-1 到 100 闭区间的数,如果为-1,那么设置为系统亮度public int getBrightness(android.app.Activity activity)
IPolyvVideoViewgetBrightness 在接口中 IPolyvVideoViewpublic boolean setBrightness(int brightness)
IPolyvVideoViewsetBrightness 在接口中 IPolyvVideoViewbrightness - - 亮度,0 到 100 闭区间的数public int getBrightness()
IPolyvVideoViewgetBrightness 在接口中 IPolyvVideoViewpublic boolean canStart()
IPolyvVideoViewcanStart 在接口中 IPolyvVideoViewtrue:可以false:不可以public void setVideoLayout(int layout)
setVideoLayout 在接口中 IPolyvVideoViewIPolyvVideoView.setAspectRatio(int)public boolean setAspectRatio(int screen)
IPolyvVideoViewsetAspectRatio 在接口中 IPolyvVideoViewscreen - 银幕大小public int getAspectRatio()
IPolyvVideoViewgetAspectRatio 在接口中 IPolyvVideoViewPolyvPlayerScreenRatio的常量PolyvPlayerScreenRatiopublic void setPlayerBufferingIndicator(android.view.View view)
IPolyvVideoViewsetPlayerBufferingIndicator 在接口中 IPolyvVideoViewview - 缓存视图public void setMediaBufferingIndicator(android.view.View view)
IPolyvVideoViewsetMediaBufferingIndicator 在接口中 IPolyvVideoViewview - 缓存视图public void setAuxiliaryVideoView(PolyvAuxiliaryVideoView auxiliaryVideoView)
IPolyvVideoViewsetAuxiliaryVideoView 在接口中 IPolyvVideoViewpublic PolyvAuxiliaryVideoView getAuxiliaryVideoView()
IPolyvVideoViewgetAuxiliaryVideoView 在接口中 IPolyvVideoViewpublic void setMediaController(PolyvBaseMediaController mediaController)
IPolyvVideoViewsetMediaController 在接口中 IPolyvVideoViewpublic PolyvBaseMediaController getMediaController()
IPolyvVideoViewgetMediaController 在接口中 IPolyvVideoViewpublic void setOpenTeaser(boolean isOpenTeaser)
IPolyvVideoViewsetOpenTeaser 在接口中 IPolyvVideoViewisOpenTeaser - true为开启public void setOpenAd(boolean isOpenAd)
IPolyvVideoViewsetOpenAd 在接口中 IPolyvVideoViewisOpenAd - true为开启public void setOpenQuestion(boolean isOpenQuestion)
IPolyvVideoViewsetOpenQuestion 在接口中 IPolyvVideoViewisOpenQuestion - true为开启public void setOpenSRT(boolean isOpenSRT)
IPolyvVideoViewsetOpenSRT 在接口中 IPolyvVideoViewisOpenSRT - true为开启public void setAutoContinue(boolean isAutoContinue)
IPolyvVideoViewsetAutoContinue 在接口中 IPolyvVideoViewisAutoContinue - true为开启public boolean isOpenPreload()
IPolyvVideoViewisOpenPreload 在接口中 IPolyvVideoViewpublic void setOpenPreload(boolean isOpenPreload)
IPolyvVideoViewsetOpenPreload 在接口中 IPolyvVideoViewisOpenPreload - true为开启public void setOpenPreload(boolean isOpenPreload,
int preloadSecond)
IPolyvVideoViewsetOpenPreload 在接口中 IPolyvVideoViewisOpenPreload - true为开启preloadSecond - 预加载倒计时临界值(秒),默认值1public void setQuestionOverdueTime(int month,
int day,
int hour)
IPolyvVideoViewsetQuestionOverdueTime 在接口中 IPolyvVideoViewmonth - 月day - 日hour - 时public void setQuestionAnswerOverdueTime(int month,
int day,
int hour)
IPolyvVideoViewsetQuestionAnswerOverdueTime 在接口中 IPolyvVideoViewmonth - 月day - 日hour - 时@Deprecated public void setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener l)
IPolyvVideoViewListenerEventIPolyvOnBufferingUpdateListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener2)setOnBufferingUpdateListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener2)@Deprecated public void setOnVideoPlayErrorLisener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEventsetOnVideoPlayErrorLisener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener)@Deprecated public void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEventsetOnVideoPlayErrorListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)public void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2 l)
IPolyvVideoViewListenerEventsetOnVideoPlayErrorListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调@Deprecated public void setOnCompletionListener(IPolyvOnCompletionListener l)
IPolyvVideoViewListenerEventIPolyvOnCompletionListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnCompletionListener(IPolyvOnCompletionListener2)setOnCompletionListener 在接口中 IPolyvIjkVideoViewsetOnCompletionListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnCompletionListener(IPolyvOnCompletionListener2)@Deprecated public void setOnPreparedListener(IPolyvOnPreparedListener l)
IPolyvVideoViewListenerEventIPolyvOnPreparedListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)setOnPreparedListener 在接口中 IPolyvIjkVideoViewsetOnPreparedListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnPreparedListener(IPolyvOnPreparedListener2)@Deprecated public void setOnErrorListener(IPolyvOnErrorListener l)
IPolyvVideoViewListenerEventIPolyvOnErrorListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnErrorListener(IPolyvOnErrorListener2)。
为了能更好的统一错误处理,这个错误回调合并到IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)中,对应的错误类型是PolyvPlayErrorReason.VIDEO_ERROR。
为了向后兼容,以前的程序不受影响,当设置了这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)错误回调不会被触发。
没有设置这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)错误回调才会触发。setOnErrorListener 在接口中 IPolyvIjkVideoViewsetOnErrorListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnErrorListener(IPolyvOnErrorListener2)@Deprecated public void setOnErrorListener(IPolyvOnErrorListener2 l)
IPolyvVideoViewListenerEventIPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)中,对应的错误类型是PolyvPlayErrorReason.VIDEO_ERROR。
为了向后兼容,以前的程序不受影响,当设置了这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)错误回调不会被触发。
没有设置这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)错误回调才会触发。setOnErrorListener 在接口中 IPolyvIjkVideoViewsetOnErrorListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)@Deprecated public void setOnInfoListener(IPolyvOnInfoListener l)
IPolyvVideoViewListenerEventIPolyvOnInfoListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnInfoListener(IPolyvOnInfoListener2)setOnInfoListener 在接口中 IPolyvIjkVideoViewsetOnInfoListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnInfoListener(IPolyvOnInfoListener2)@Deprecated public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener l)
IPolyvVideoViewListenerEventIPolyvOnSeekCompleteListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2)setOnSeekCompleteListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2)@Deprecated public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener l)
IPolyvVideoViewListenerEventIPolyvOnVideoSizeChangedListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2)setOnVideoSizeChangedListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2)public void setOnVideoSRTListener(IPolyvOnVideoSRTListener l)
IPolyvVideoViewListenerEventsetOnVideoSRTListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调@Deprecated public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener l)
IPolyvVideoViewListenerEventsetOnAdvertisementOutListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2)public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2 l)
IPolyvVideoViewListenerEventsetOnAdvertisementOutListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调public void setOnAdvertisementCountDownListener(IPolyvOnAdvertisementCountDownListener l)
IPolyvVideoViewListenerEventsetOnAdvertisementCountDownListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调@Deprecated public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener l)
IPolyvVideoViewListenerEventsetOnAdvertisementEventListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2)public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2 l)
IPolyvVideoViewListenerEventsetOnAdvertisementEventListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调public void setOnTeaserOutListener(IPolyvOnTeaserOutListener l)
IPolyvVideoViewListenerEventsetOnTeaserOutListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调public void setOnTeaserCountDownListener(IPolyvOnTeaserCountDownListener l)
IPolyvVideoViewListenerEventsetOnTeaserCountDownListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调@Deprecated public void setOnQuestionOutListener(IPolyvOnQuestionOutListener l)
IPolyvVideoViewListenerEventsetOnQuestionOutListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnQuestionOutListener(IPolyvOnQuestionOutListener2)public void setOnQuestionOutListener(IPolyvOnQuestionOutListener2 l)
IPolyvVideoViewListenerEventsetOnQuestionOutListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调public void setOnQuestionAnswerTipsListener(IPolyvOnQuestionAnswerTipsListener l)
IPolyvVideoViewListenerEventsetOnQuestionAnswerTipsListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调@Deprecated public IMediaPlayer getMediaPlayer()
getMediaPlayer 在接口中 IPolyvIjkVideoViewpublic float getSpeed()
IPolyvIjkVideoViewgetSpeed 在接口中 IPolyvIjkVideoViewpublic void destroy()
IPolyvVideoViewdestroy 在接口中 IPolyvVideoViewpublic boolean changeSRT(java.lang.String key)
IPolyvVideoViewchangeSRT 在接口中 IPolyvVideoViewpublic java.lang.String getCurrSRTKey()
IPolyvVideoViewgetCurrSRTKey 在接口中 IPolyvVideoViewpublic void answerQuestion(boolean isRight,
java.lang.String tipContent)
IPolyvVideoViewanswerQuestion 在接口中 IPolyvVideoViewisRight - 是否正确答案tipContent - 提示内容public void answerQuestion()
IPolyvVideoViewanswerQuestion 在接口中 IPolyvVideoViewpublic void answerQuestion(java.util.List<java.lang.Integer> indexList)
IPolyvVideoViewanswerQuestion 在接口中 IPolyvVideoViewindexList - 选中的下标列表,0开始public void answerQuestionFault()
IPolyvVideoViewanswerQuestionFault 在接口中 IPolyvVideoViewpublic void skipQuestion()
IPolyvVideoViewskipQuestion 在接口中 IPolyvVideoViewpublic android.view.GestureDetector getGestureDetector()
IPolyvVideoViewgetGestureDetector 在接口中 IPolyvVideoViewpublic boolean getNeedGestureDetector()
IPolyvVideoViewgetNeedGestureDetector 在接口中 IPolyvVideoViewpublic void setNeedGestureDetector(boolean need)
IPolyvVideoViewsetNeedGestureDetector 在接口中 IPolyvVideoViewpublic boolean isPreparedState()
IPolyvVideoViewisPreparedState 在接口中 IPolyvVideoViewtrue:是false:否public boolean isPlayState()
IPolyvVideoViewisPlayState 在接口中 IPolyvVideoViewtrue:是false:否public boolean isPlayState(boolean isAndBuffer)
IPolyvVideoViewisPlayState 在接口中 IPolyvVideoViewisAndBuffer - 是否包括缓冲状态,默认为falsetrue:是false:否public boolean isInPlaybackState()
IPolyvVideoViewisInPlaybackState 在接口中 IPolyvVideoViewtrue:是false:否public boolean isPausState()
IPolyvVideoViewisPausState 在接口中 IPolyvVideoViewtrue:是false:否IPolyvVideoView.isPauseState()public boolean isPauseState()
IPolyvVideoViewisPauseState 在接口中 IPolyvVideoViewtrue:是false:否public boolean isBufferState()
IPolyvVideoViewisBufferState 在接口中 IPolyvVideoViewtrue:是false:否public boolean isCompletedState()
IPolyvVideoViewisCompletedState 在接口中 IPolyvVideoViewtrue:是false:否public boolean isExceptionCompleted()
IPolyvVideoViewisExceptionCompleted 在接口中 IPolyvVideoViewtrue:是false:否public void onActivityResume()
IPolyvVideoViewonActivityResume 在接口中 IPolyvVideoViewpublic boolean onActivityStop()
IPolyvVideoViewonActivityStop 在接口中 IPolyvVideoView@Deprecated public void setOnCompletionListener(IMediaPlayer.OnCompletionListener l)
IPolyvVideoViewListenerEventsetOnCompletionListener 在接口中 IPolyvIjkVideoViewsetOnCompletionListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnCompletionListener(IPolyvOnCompletionListener)@Deprecated public void setOnErrorListener(IMediaPlayer.OnErrorListener l)
IPolyvVideoViewListenerEventIPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)中,对应的错误类型是PolyvPlayErrorReason.VIDEO_ERROR。
为了向后兼容,以前的程序不受影响,当设置了这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)错误回调不会被触发。
没有设置这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)错误回调才会触发。setOnErrorListener 在接口中 IPolyvIjkVideoViewsetOnErrorListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnErrorListener(IPolyvOnErrorListener)@Deprecated public void setOnInfoListener(IMediaPlayer.OnInfoListener l)
IPolyvVideoViewListenerEventsetOnInfoListener 在接口中 IPolyvIjkVideoViewsetOnInfoListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnInfoListener(IPolyvOnInfoListener)@Deprecated public void setOnPreparedListener(IMediaPlayer.OnPreparedListener l)
IPolyvVideoViewListenerEventsetOnPreparedListener 在接口中 IPolyvIjkVideoViewsetOnPreparedListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnPreparedListener(IPolyvOnPreparedListener)@Deprecated public void setOnBufferingUpdateListener(IMediaPlayer.OnBufferingUpdateListener l)
IPolyvVideoViewListenerEventsetOnBufferingUpdateListener 在接口中 IPolyvVideoViewListenerEventl - 设置为null就是清除监听回调setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener)@Deprecated public void setMediaController(com.easefun.polyvsdk.ijk.widget.media.IMediaController controller)
IPolyvVideoView@Deprecated public void playNext()
IPolyvVideoViewplayNext 在接口中 IPolyvVideoView@Deprecated public void setUserAgent(java.lang.String ua)
IPolyvVideoViewsetUserAgent 在接口中 IPolyvVideoViewprotected void onDetachedFromWindow()
onDetachedFromWindow 在类中 android.view.ViewGrouppublic com.easefun.polyvsdk.question.PolyvQuestion getPolyvQuestion()
public void setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
IPolyvVideoViewListenerEventsetOnPlayPauseListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnPreloadPlayListener(com.easefun.polyvsdk.video.listener.IPolyvOnPreloadPlayListener arg0)
IPolyvVideoViewListenerEventsetOnPreloadPlayListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnVideoStatusListener(IPolyvOnVideoStatusListener arg0)
IPolyvVideoViewListenerEventsetOnVideoStatusListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
IPolyvVideoViewListenerEventsetOnSeekCompleteListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2 arg0)
IPolyvVideoViewListenerEventsetOnVideoSizeChangedListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureLeftUpListener(IPolyvOnGestureLeftUpListener arg0)
IPolyvVideoViewListenerEventsetOnGestureLeftUpListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureLeftDownListener(IPolyvOnGestureLeftDownListener arg0)
IPolyvVideoViewListenerEventsetOnGestureLeftDownListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureRightUpListener(IPolyvOnGestureRightUpListener arg0)
IPolyvVideoViewListenerEventsetOnGestureRightUpListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureRightDownListener(IPolyvOnGestureRightDownListener arg0)
IPolyvVideoViewListenerEventsetOnGestureRightDownListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureSwipeLeftListener(IPolyvOnGestureSwipeLeftListener arg0)
IPolyvVideoViewListenerEventsetOnGestureSwipeLeftListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureSwipeRightListener(IPolyvOnGestureSwipeRightListener arg0)
IPolyvVideoViewListenerEventsetOnGestureSwipeRightListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureClickListener(IPolyvOnGestureClickListener arg0)
IPolyvVideoViewListenerEventsetOnGestureClickListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnGestureDoubleClickListener(com.easefun.polyvsdk.video.listener.IPolyvOnGestureDoubleClickListener arg0)
IPolyvVideoViewListenerEventsetOnGestureDoubleClickListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnChangeModeListener(com.easefun.polyvsdk.video.listener.IPolyvOnChangeModeListener arg0)
IPolyvVideoViewListenerEventsetOnChangeModeListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调public void setOnExceptionCompletedListener(com.easefun.polyvsdk.video.listener.IPolyvOnExceptionCompletedListener arg0)
IPolyvVideoViewListenerEventpublic void setOnGetVideoJsonTimeListener(com.easefun.polyvsdk.video.listener.IPolyvOnGetVideoJsonTimeListener arg0)
IPolyvVideoViewListenerEventprotected void callOnGetVideoJsonTime(long arg0)
protected void callOnGetVideoJsonTimeout(long arg0,
long arg1)
protected void callOnExceptionCompletedListener()
protected void callOnChangeModeListener(java.lang.String arg0)
public void setOnVideoTimeoutListener(com.easefun.polyvsdk.video.listener.IPolyvOnVideoTimeoutListener arg0)
IPolyvVideoViewListenerEventsetOnVideoTimeoutListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调protected void callOnVideoTimeoutListenerBufferTimeout(int arg0,
int arg1)
public void setOnVideoSRTPreparedListener(com.easefun.polyvsdk.video.listener.IPolyvOnVideoSRTPreparedListener arg0)
IPolyvVideoViewListenerEventsetOnVideoSRTPreparedListener 在接口中 IPolyvVideoViewListenerEventarg0 - 设置为null就是清除监听回调protected void callOnVideoSRTPreparedListener()
protected void callOnBufferingUpdateListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1)
protected void callOnPlayPauseListenerPlay()
protected void callOnPlayPauseListenerPause()
protected void callOnPlayPauseListenerCompletion()
protected void callOnPreloadPlayListener()
protected void callOnVideoStatusListener(int arg0)
protected void callOnInfoListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1,
int arg2)
protected void callOnSeekCompleteListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0)
protected void callOnVideoSizeChangedListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1,
int arg2,
int arg3,
int arg4)
protected void callOnGestureLeftUpListener(boolean arg0,
boolean arg1)
protected void callOnGestureLeftDownListener(boolean arg0,
boolean arg1)
protected void callOnGestureRightUpListener(boolean arg0,
boolean arg1)
protected void callOnGestureRightDownListener(boolean arg0,
boolean arg1)
protected void callOnGestureSwipeLeftListener(boolean arg0,
int arg1,
boolean arg2)
protected void callOnGestureSwipeRightListener(boolean arg0,
int arg1,
boolean arg2)
protected void callOnGestureClickListener(boolean arg0,
boolean arg1)
protected void callOnGestureDoubleClickListener()
protected IPolyvOnAdvertisementOutListener getOnAdvertisementOutListener()
protected IPolyvOnAdvertisementOutListener2 getOnAdvertisementOutListener2()
protected IPolyvOnAdvertisementCountDownListener getOnAdvertisementCountDownListener()
protected IPolyvOnAdvertisementEventListener getOnAdvertisementEventListener()
protected IPolyvOnAdvertisementEventListener2 getOnAdvertisementEventListener2()
protected IPolyvOnTeaserOutListener getOnTeaserOutListener()
protected IPolyvOnTeaserCountDownListener getOnTeaserCountDownListener()
protected void clearListener()
protected void destroyHandler()
protected void initIPolyvIjkVideoView(IPolyvIjkVideoView arg0)
public boolean isPlaying()
IPolyvMediaPlayerControlisPlaying 在接口中 android.widget.MediaController.MediaPlayerControlisPlaying 在接口中 IPolyvMediaPlayerControlpublic boolean canPause()
IPolyvMediaPlayerControlcanPause 在接口中 android.widget.MediaController.MediaPlayerControlcanPause 在接口中 IPolyvMediaPlayerControlpublic boolean canSeekBackward()
IPolyvMediaPlayerControlcanSeekBackward 在接口中 android.widget.MediaController.MediaPlayerControlcanSeekBackward 在接口中 IPolyvMediaPlayerControlpublic boolean canSeekForward()
IPolyvMediaPlayerControlcanSeekForward 在接口中 android.widget.MediaController.MediaPlayerControlcanSeekForward 在接口中 IPolyvMediaPlayerControlpublic int getAudioSessionId()
getAudioSessionId 在接口中 android.widget.MediaController.MediaPlayerControlpublic void setRenderView(com.easefun.polyvsdk.ijk.widget.media.IRenderView arg0)
setRenderView 在接口中 IPolyvIjkVideoViewpublic void setRender(int arg0)
setRender 在接口中 IPolyvIjkVideoViewpublic void stopPlayback()
IPolyvIjkVideoViewstopPlayback 在接口中 IPolyvIjkVideoViewpublic void releaseWithoutStop()
releaseWithoutStop 在接口中 IPolyvIjkVideoViewpublic void suspend()
suspend 在接口中 IPolyvIjkVideoViewpublic void resume()
resume 在接口中 IPolyvIjkVideoViewpublic int toggleAspectRatio()
toggleAspectRatio 在接口中 IPolyvIjkVideoViewpublic int toggleRender()
toggleRender 在接口中 IPolyvIjkVideoViewpublic int togglePlayer()
togglePlayer 在接口中 IPolyvIjkVideoViewpublic tv.danmaku.ijk.media.player.IMediaPlayer createPlayer(int arg0)
createPlayer 在接口中 IPolyvIjkVideoViewpublic tv.danmaku.ijk.media.player.misc.ITrackInfo[] getTrackInfo()
getTrackInfo 在接口中 IPolyvIjkVideoViewpublic void selectTrack(int arg0)
selectTrack 在接口中 IPolyvIjkVideoViewpublic void deselectTrack(int arg0)
deselectTrack 在接口中 IPolyvIjkVideoViewpublic int getSelectedTrack(int arg0)
getSelectedTrack 在接口中 IPolyvIjkVideoViewpublic boolean isInPlaybackStateForwarding()
public com.easefun.polyvsdk.ijk.widget.media.IRenderView getRenderView()
getRenderView 在接口中 IPolyvIjkVideoViewpublic int getCurrentAspectRatio()
getCurrentAspectRatio 在接口中 IPolyvIjkVideoViewpublic void setCurrentAspectRatio(int arg0)
setCurrentAspectRatio 在接口中 IPolyvIjkVideoViewpublic int getVideoWidth()
getVideoWidth 在接口中 IPolyvIjkVideoViewpublic int getVideoHeight()
getVideoHeight 在接口中 IPolyvIjkVideoViewpublic android.view.SurfaceHolder getSurfaceHolder()
getSurfaceHolder 在接口中 IPolyvIjkVideoViewpublic void setSpeed(float arg0)
IPolyvIjkVideoViewsetSpeed 在接口中 IPolyvIjkVideoViewarg0 - 播放速度,最好不要超过2public int getStateIdleCode()
getStateIdleCode 在接口中 IPolyvIjkVideoViewpublic int getStatePreparingCode()
getStatePreparingCode 在接口中 IPolyvIjkVideoViewpublic int getStatePreparedCode()
getStatePreparedCode 在接口中 IPolyvIjkVideoViewpublic int getStatePauseCode()
getStatePauseCode 在接口中 IPolyvIjkVideoViewpublic int getStatePlaybackCompletedCode()
public int getCurrentState()
getCurrentState 在接口中 IPolyvIjkVideoViewpublic void setOptionParameters(java.lang.Object[][] arg0)
setOptionParameters 在接口中 IPolyvIjkVideoViewpublic void clearOptionParameters()
clearOptionParameters 在接口中 IPolyvIjkVideoViewpublic void clearCanvasInStart(boolean arg0)
clearCanvasInStart 在接口中 IPolyvIjkVideoViewpublic void setLooping(boolean arg0)
setLooping 在接口中 IPolyvIjkVideoViewpublic void setIjkLogLevel(int arg0)
setIjkLogLevel 在接口中 IPolyvIjkVideoViewpublic void removeRenderView()
removeRenderView 在接口中 IPolyvIjkVideoViewpublic void setOnSurfaceUpdateListener(com.easefun.polyvsdk.ijk.widget.media.IjkVideoView.OnSurfaceUpdateListener arg0)
setOnSurfaceUpdateListener 在接口中 IPolyvIjkVideoViewpublic android.graphics.Bitmap screenshot()
screenshot 在接口中 IPolyvIjkVideoViewpublic android.graphics.Bitmap screenshot(android.graphics.Bitmap arg0)
screenshot 在接口中 IPolyvIjkVideoViewpublic android.graphics.Bitmap screenshot(int arg0,
int arg1)
screenshot 在接口中 IPolyvIjkVideoViewpublic tv.danmaku.ijk.media.player.IjkMediaPlayer getIjkMediaPlayer()
getIjkMediaPlayer 在接口中 IPolyvIjkVideoView