public class PolyvVideoView extends android.widget.FrameLayout implements IPolyvVideoView
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
限定符和类型 | 字段和说明 |
---|---|
protected long |
intervalMs |
protected IPolyvOnGetCurrentPositionListener |
onGetCurrentPositionListener |
CLIP_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_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, 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, FOCUSABLE, FOCUSABLE_AUTO, 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, 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, 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_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, 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 |
answerQuestion2(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 |
callOnGetCurrentPosition(java.lang.String arg0,
int arg1) |
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 |
callOnPPTStatusListener(java.lang.String arg0,
boolean arg1,
PolyvPptInfo arg2) |
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)
已过时。
|
void |
changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType,
boolean isMustFromLocal)
已过时。
|
void |
changeMode(java.lang.String priorityMode)
改变播放模式
|
void |
changeMode(java.lang.String priorityMode,
int strategy)
改变播放模式
|
void |
changeQuestion(int showTime,
java.util.ArrayList<PolyvQuestionVO> questionVOList)
替换问答,替换掉参数showTime(题目出现时间点)的问答。
|
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)
防录屏开关
|
void |
doneQuestion(int action)
完成问题,调用了这个方法才会去运行下一个问答。
|
void |
enableLocalViewLog(boolean enable)
设置离线播放视频时,是否会发送viewlog。
|
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)
根据码率获取播放地址
|
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) |
void |
insertQuestion(PolyvQuestionVO questionVO)
插入问答,会根据
PolyvQuestionVO.setShowTime(int) 问答出现的时间点,插入到当前问答列表中。 |
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 |
isPPTEnabled()
ppt是否可用
|
boolean |
isPPTResume()
ppt是否处于resume状态
|
boolean |
isPreparedState()
当前是否在准备中
|
boolean |
isStartOnPrepared()
已过时。
|
void |
onActivityResume()
|
boolean |
onActivityStop()
|
protected void |
onConfigurationChanged(android.content.res.Configuration newConfig) |
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 |
setAutoPlay(boolean isAutoPlay)
设置是否自动播放
|
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) |
boolean |
setCustomTeaser(java.lang.String url,
int duration) |
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(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(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 |
setOnGetCurrentPositionListener(IPolyvOnGetCurrentPositionListener arg0) |
void |
setOnGetCurrentPositionListener(long arg0,
IPolyvOnGetCurrentPositionListener arg1)
设置获取当前播放时间的监听器
|
void |
setOnGetVideoJsonTimeListener(IPolyvOnGetVideoJsonTimeListener arg0)
设置获取videojson时间、超时监听器
|
void |
setOnInfoListener(IMediaPlayer.OnInfoListener l)
已过时。
|
void |
setOnInfoListener(IPolyvOnInfoListener l)
已过时。
|
void |
setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
设置视频播放/暂停/播放完成回调
|
void |
setOnPPTStatusListener(IPolyvOnPPTStatusListener arg0)
设置ppt状态的监听器
|
void |
setOnPreloadPlayListener(IPolyvOnPreloadPlayListener arg0)
设置预加载播放回调
|
void |
setOnPreparedListener(IMediaPlayer.OnPreparedListener l)
已过时。
|
void |
setOnPreparedListener(IPolyvOnPreparedListener l)
已过时。
|
void |
setOnQuestionAnswerTipsListener(IPolyvOnQuestionAnswerTipsListener l)
已过时。
|
void |
setOnQuestionListener(IPolyvOnQuestionListener 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(IPolyvOnVideoSRTPreparedListener arg0)
设置字幕准备完成监听回调
|
void |
setOnVideoStatusListener(IPolyvOnVideoStatusListener arg0)
设置视频状态回调
|
void |
setOnVideoTimeoutListener(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 |
setPPTEnabled(boolean enabled)
设置ppt是否可用,默认为true。
|
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 |
skipQuestion2()
跳过问题
|
void |
start()
开始
|
void |
startGetCurrentPositionTask() |
void |
stopGetCurrentPositionTask() |
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, shouldDelayChildPressedState
addChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, 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, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, 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, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDescendantInvalidated, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
addExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, 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, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAutofillHints, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, 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, setTooltipText, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canPause, canSeekBackward, canSeekForward, isPlaying
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
protected long intervalMs
protected IPolyvOnGetCurrentPositionListener onGetCurrentPositionListener
public 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 void startGetCurrentPositionTask()
public void stopGetCurrentPositionTask()
public int getCurrentPosition()
IPolyvMediaPlayerControl
getCurrentPosition
在接口中 android.widget.MediaController.MediaPlayerControl
getCurrentPosition
在接口中 IPolyvMediaPlayerControl
public int getDuration()
IPolyvMediaPlayerControl
getDuration
在接口中 android.widget.MediaController.MediaPlayerControl
getDuration
在接口中 IPolyvMediaPlayerControl
public void setVidWithStudentId(java.lang.String videoId, java.lang.String studentId)
IPolyvVideoView
IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVidWithStudentId
在接口中 IPolyvVideoView
videoId
- 视频idstudentId
- 观众idpublic void setVid(java.lang.String videoId)
IPolyvVideoView
IPolyvVideoView.setVidWithStudentId(String, String)
或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVid
在接口中 IPolyvVideoView
videoId
- 视频idpublic void setVidWithStudentId(java.lang.String videoId, boolean isMustFromLocal, java.lang.String studentId)
IPolyvVideoView
IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVidWithStudentId
在接口中 IPolyvVideoView
videoId
- 视频idisMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
studentId
- 观众idpublic void setVid(java.lang.String videoId, boolean isMustFromLocal)
IPolyvVideoView
IPolyvVideoView.setVidWithStudentId(String, String)
或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVid
在接口中 IPolyvVideoView
videoId
- 视频idisMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
public void setVid(java.lang.String videoId, boolean isMustFromLocal, Video.HlsSpeedType hlsSpeedType)
IPolyvVideoView
IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVid
在接口中 IPolyvVideoView
videoId
- 视频idisMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
hlsSpeedType
- 播放速度类型 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)
IPolyvVideoView
setVidWithStudentId
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)studentId
- 观众idpublic void setVid(java.lang.String videoId, int bitRateNum)
IPolyvVideoView
IPolyvVideoView.setVidWithStudentId(String, int,String)
或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。setVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRateNum
- 码率(清晰度)public void setVidWithStudentId(java.lang.String videoId, int bitRate, boolean isMustFromLocal, java.lang.String studentId)
IPolyvVideoView
setVidWithStudentId
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
studentId
- 观众idpublic void setVid(java.lang.String videoId, int bitRateNum, boolean isMustFromLocal)
IPolyvVideoView
IPolyvVideoView.setVidWithStudentId(String, int,boolean,String)
或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。setVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRateNum
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
public void setVid(java.lang.String videoId, int bitRateNum, boolean isMustFromLocal, Video.HlsSpeedType hlsSpeedType)
IPolyvVideoView
setVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRateNum
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
hlsSpeedType
- 播放速度类型 Video.HlsSpeedType
,非加密视频设置此参数没有效果,默认值Video.HlsSpeedType.SPEED_1X
。请使用setSpeed(float)
设置播放速度IPolyvVideoView.setVid(String, int, boolean)
public void setVidByStrategy(java.lang.String videoId, int strategy)
IPolyvVideoView
IPolyvVideoView.setVidByStrategyWithStudentId(String, int,String)
或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
根据播放策略设置视频id播放视频setVidByStrategy
在接口中 IPolyvVideoView
videoId
- 视频idstrategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
public void setVidByStrategyWithStudentId(java.lang.String videoId, int strategy, java.lang.String studentId)
IPolyvVideoView
setVidByStrategyWithStudentId
在接口中 IPolyvVideoView
videoId
- 视频idstrategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
studentId
- 观众idpublic void setVidByStrategyWithStudentId(java.lang.String videoId, int bitRate, int strategy, java.lang.String studentId)
IPolyvVideoView
setVidByStrategyWithStudentId
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)strategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
studentId
- 观众idpublic void setVidByStrategy(java.lang.String videoId, int bitRate, int strategy)
IPolyvVideoView
IPolyvVideoView.setVidByStrategyWithStudentId(String, int,int,String)
或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
根据播放策略设置视频id播放视频setVidByStrategy
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)strategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
public void setPPTVidWithStudentId(java.lang.String videoId, int bitRate, boolean isMustFromLocal, java.lang.String studentId)
IPolyvVideoView
setPPTVidWithStudentId
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频studentId
- 观众idpublic void setPPTVid(java.lang.String videoId, int bitRate, boolean isMustFromLocal)
IPolyvVideoView
IPolyvVideoView.setPPTVidWithStudentId(String, int,boolean,String)
或者 调用此方法前调用PolyvSDKClient.setViewerId(String)
设置ppt回放视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。搜索本地视频是从设置的下载目录中,从高码率(清晰度)到低码率(清晰度)搜索。setPPTVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频public java.lang.String getCurrentVid()
IPolyvVideoView
getCurrentVid
在接口中 IPolyvVideoView
public java.lang.String getCurrentVideoId()
IPolyvVideoView
getCurrentVideoId
在接口中 IPolyvVideoView
@Deprecated public void setStartOnPrepared(boolean isStartOnPrepared)
IPolyvVideoView
setStartOnPrepared
在接口中 IPolyvVideoView
isStartOnPrepared
- true
为开启IPolyvVideoView.setAutoPlay(boolean)
@Deprecated public boolean isStartOnPrepared()
IPolyvVideoView
isStartOnPrepared
在接口中 IPolyvVideoView
true
为开启,false
为关闭IPolyvVideoView.setAutoPlay(boolean)
public void setMaxBuffer(long maxBuffer)
IPolyvVideoView
setMaxBuffer
在接口中 IPolyvVideoView
public void setPriorityMode(java.lang.String priorityMode)
IPolyvVideoView
setPriorityMode
在接口中 IPolyvVideoView
priorityMode
- video/audio,默认为video。or PolyvVideoVO.MODE_VIDEO
/PolyvVideoVO.MODE_AUDIO
public void setPriorityMode(java.lang.String priorityMode, boolean mayChangeMode)
IPolyvVideoView
setPriorityMode
在接口中 IPolyvVideoView
priorityMode
- video/audio,默认为video。or PolyvVideoVO.MODE_VIDEO
/PolyvVideoVO.MODE_AUDIO
mayChangeMode
- 获取不到音频播放地址时是否切换为视频模式,仅对priorityMode=audio有效。public java.lang.String getCurrentMode()
IPolyvVideoView
getCurrentMode
在接口中 IPolyvVideoView
PolyvVideoVO.MODE_VIDEO
/PolyvVideoVO.MODE_AUDIO
public java.lang.String getPriorityMode()
IPolyvVideoView
getPriorityMode
在接口中 IPolyvVideoView
PolyvVideoVO.MODE_VIDEO
/PolyvVideoVO.MODE_AUDIO
public void enableLocalViewLog(boolean enable)
IPolyvVideoView
enableLocalViewLog
在接口中 IPolyvVideoView
enable
- true表示开启。public java.lang.String getPlayId()
IPolyvVideoView
getPlayId
在接口中 IPolyvVideoView
public java.lang.String getCurrentPlayPath()
IPolyvVideoView
getCurrentPlayPath
在接口中 IPolyvVideoView
public void changeMode(java.lang.String priorityMode)
IPolyvVideoView
changeMode
在接口中 IPolyvVideoView
priorityMode
- PolyvVideoVO.MODE_VIDEO
/PolyvVideoVO.MODE_AUDIO
public void changeMode(java.lang.String priorityMode, int strategy)
IPolyvVideoView
changeMode
在接口中 IPolyvVideoView
priorityMode
- PolyvVideoVO.MODE_VIDEO
/PolyvVideoVO.MODE_AUDIO
strategy
- 策略模式public int getBitRate()
IPolyvVideoView
getBitRate
在接口中 IPolyvVideoView
public Video.HlsSpeedType getHlsSpeedType()
IPolyvVideoView
setSpeed(float)
设置播放速度getHlsSpeedType
在接口中 IPolyvVideoView
public Video getVideo()
IPolyvVideoView
getVideo
在接口中 IPolyvVideoView
public int getLevel()
IPolyvVideoView
getLevel
在接口中 IPolyvVideoView
public int getWatchTimeDuration()
IPolyvVideoView
getWatchTimeDuration
在接口中 IPolyvVideoView
public int getStayTimeDuration()
IPolyvVideoView
getStayTimeDuration
在接口中 IPolyvVideoView
public boolean isLocalPlay()
IPolyvVideoView
isLocalPlay
在接口中 IPolyvVideoView
true
:是false
:否public boolean isPlayStageMain()
IPolyvVideoView
isPlayStageMain
在接口中 IPolyvVideoView
public void setVideoPath(java.lang.String path)
IPolyvIjkVideoView
setVideoPath
在接口中 IPolyvIjkVideoView
path
- 视频地址public void setVideoPath(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers)
IPolyvVideoView
setVideoPath
在接口中 IPolyvVideoView
path
- 视频地址headers
- header参数public void setVideoURI(android.net.Uri uri)
IPolyvIjkVideoView
setVideoURI
在接口中 IPolyvIjkVideoView
uri
- 视频地址public void setVideoURI(android.net.Uri uri, java.util.Map<java.lang.String,java.lang.String> headers)
IPolyvIjkVideoView
setVideoURI
在接口中 IPolyvIjkVideoView
uri
- 视频地址headers
- header参数public void setPPTVideoURI(android.net.Uri uri)
IPolyvVideoView
setPPTVideoURI
在接口中 IPolyvVideoView
uri
- ppt回放视频的uripublic void setPlackbackParam(com.easefun.polyvsdk.live.video.PolyvPlaybackParam plackbackParam)
IPolyvVideoView
setPlackbackParam
在接口中 IPolyvVideoView
public void setPlayerBufferingViewVisibility(int visibility)
visibility
- 可见度类型public java.lang.String getPlayPathWithBitRate(int bit)
IPolyvVideoView
getPlayPathWithBitRate
在接口中 IPolyvVideoView
public boolean changeRoute(int route)
IPolyvVideoView
changeRoute
在接口中 IPolyvVideoView
route
- 线路public int getRouteCount()
IPolyvVideoView
getRouteCount
在接口中 IPolyvVideoView
public int getCurrentRoute()
IPolyvVideoView
getCurrentRoute
在接口中 IPolyvVideoView
public void setSeekType(int seekType)
IPolyvVideoView
setSeekType
在接口中 IPolyvVideoView
public int getSeekType()
IPolyvVideoView
getSeekType
在接口中 IPolyvVideoView
public void setPPTEnabled(boolean enabled)
IPolyvVideoView
setPPTEnabled
在接口中 IPolyvVideoView
public boolean isPPTEnabled()
IPolyvVideoView
isPPTEnabled
在接口中 IPolyvVideoView
public void disableScreenCAP(android.app.Activity activity, boolean disableScreenCAP)
IPolyvVideoView
disableScreenCAP
在接口中 IPolyvVideoView
disableScreenCAP
- @code true}:开启false
:关闭public boolean isDisableScreenCAP()
IPolyvVideoView
isDisableScreenCAP
在接口中 IPolyvVideoView
public boolean changeBitRate(int bitRate)
IPolyvVideoView
changeBitRate
在接口中 IPolyvVideoView
bitRate
- - 码率IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
设置的回调监听中,调用IPolyvVideoView.getBitRate()
获取码率(清晰度)public boolean changeBitRate(int bitRate, boolean isMustFromLocal)
IPolyvVideoView
changeBitRate
在接口中 IPolyvVideoView
bitRate
- 码率isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
设置的回调监听中,调用IPolyvVideoView.getBitRate()
获取码率(清晰度)public boolean changeBitRate(int bitRate, int strategy)
IPolyvVideoView
changeBitRate
在接口中 IPolyvVideoView
bitRate
- 码率(清晰度)strategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
设置的回调监听中,调用IPolyvVideoView.getBitRate()
获取码率(清晰度)public boolean switchLevel(int bitRate)
IPolyvVideoView
switchLevel
在接口中 IPolyvVideoView
bitRate
- 码率IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
设置的回调监听中,调用IPolyvVideoView.getBitRate()
获取码率(清晰度)public boolean switchLevel(int bitRate, boolean isMustFromLocal)
IPolyvVideoView
switchLevel
在接口中 IPolyvVideoView
bitRate
- 码率isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
设置的回调监听中,调用IPolyvVideoView.getBitRate()
获取码率(清晰度)public boolean switchLevel(int bitRateNum, int strategy)
IPolyvVideoView
switchLevel
在接口中 IPolyvVideoView
bitRateNum
- 码率(清晰度)strategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
设置的回调监听中,调用IPolyvVideoView.getBitRate()
获取码率(清晰度)@Deprecated public void changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType)
IPolyvVideoView
PolyvForwardingIjkVideoView.setSpeed(float)
设置播放速度changeHlsSpeedType
在接口中 IPolyvVideoView
hlsSpeedType
- 播放速度类型 Video.HlsSpeedType
,非加密视频设置此参数没有效果@Deprecated public void changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType, boolean isMustFromLocal)
IPolyvVideoView
PolyvForwardingIjkVideoView.setSpeed(float)
设置播放速度changeHlsSpeedType
在接口中 IPolyvVideoView
hlsSpeedType
- 播放速度类型 Video.HlsSpeedType
,非加密视频设置此参数没有效果isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频public void pause()
IPolyvMediaPlayerControl
pause
在接口中 android.widget.MediaController.MediaPlayerControl
pause
在接口中 IPolyvMediaPlayerControl
public void pause(boolean isNotShowAdvert)
pause
在接口中 PolyvBaseMediaController.MediaPlayerControl
isNotShowAdvert
- - 是否不显示广告public void seekTo(long pos)
seekTo
在接口中 PolyvBaseMediaController.MediaPlayerControl
pos
- 时间点,毫秒public void seekTo(int pos)
IPolyvMediaPlayerControl
seekTo
在接口中 android.widget.MediaController.MediaPlayerControl
seekTo
在接口中 IPolyvMediaPlayerControl
pos
- 毫秒public int getBufferPercentage()
IPolyvMediaPlayerControl
getBufferPercentage
在接口中 android.widget.MediaController.MediaPlayerControl
getBufferPercentage
在接口中 IPolyvMediaPlayerControl
public java.lang.String getViewerId()
IPolyvVideoView
PolyvSDKClient.getViewerId()
getViewerId
在接口中 IPolyvVideoView
IPolyvVideoView.setViewerId(String)
设置的值PolyvSDKClient.getViewerId()
public void setViewerId(java.lang.String viewerId)
IPolyvVideoView
""
PolyvSDKClient.setViewerId(String)
方法setViewerId
在接口中 IPolyvVideoView
viewerId
- 观众idPolyvSDKClient.setViewerId(String)
public java.lang.String getViewerName()
IPolyvVideoView
getViewerName
在接口中 IPolyvVideoView
IPolyvVideoView.setViewerName(String)
设置的值public void setViewerName(java.lang.String viewerName)
IPolyvVideoView
""
setViewerName
在接口中 IPolyvVideoView
viewerName
- 观众名称public java.lang.String getViewerParam()
IPolyvVideoView
getViewerParam
在接口中 IPolyvVideoView
IPolyvVideoView.setViewerParam(String)
设置的值public void setViewerParam(java.lang.String viewerParam)
IPolyvVideoView
""
setViewerParam
在接口中 IPolyvVideoView
viewerParam
- 观众额外参数public java.lang.String getViewLogParam1()
IPolyvVideoView
getViewLogParam1
在接口中 IPolyvVideoView
IPolyvVideoView.setViewLogParam1(String)
设置的值public void setViewLogParam1(java.lang.String viewLogParam1)
IPolyvVideoView
""
setViewLogParam1
在接口中 IPolyvVideoView
viewLogParam1
- 参数字符串public java.lang.String getViewLogParam2()
IPolyvVideoView
PolyvSDKClient.setViewerInfo(PolyvViewerInfo)
方法获取观众昵称getViewLogParam2
在接口中 IPolyvVideoView
IPolyvVideoView.setViewLogParam2(String)
设置的值public void setViewLogParam2(java.lang.String viewLogParam2)
IPolyvVideoView
PolyvSDKClient.setViewerInfo(PolyvViewerInfo)
方法设置观众昵称setViewLogParam2
在接口中 IPolyvVideoView
viewLogParam2
- 参数字符串public java.lang.String getViewLogParam3()
IPolyvVideoView
getViewLogParam3
在接口中 IPolyvVideoView
IPolyvVideoView.setViewLogParam3(String)
设置的值public void setViewLogParam3(java.lang.String viewLogParam3)
IPolyvVideoView
""
setViewLogParam3
在接口中 IPolyvVideoView
viewLogParam3
- 参数字符串public java.lang.String getViewLogParam4()
IPolyvVideoView
getViewLogParam4
在接口中 IPolyvVideoView
IPolyvVideoView.setViewLogParam4(String)
设置的值public void setViewLogParam4(java.lang.String viewLogParam4)
IPolyvVideoView
""
setViewLogParam4
在接口中 IPolyvVideoView
viewLogParam4
- 参数字符串public java.lang.String getViewLogParam5()
IPolyvVideoView
getViewLogParam5
在接口中 IPolyvVideoView
IPolyvVideoView.setViewLogParam5(String)
设置的值public void setViewLogParam5(java.lang.String viewLogParam5)
IPolyvVideoView
""
setViewLogParam5
在接口中 IPolyvVideoView
viewLogParam5
- 参数字符串public void release()
IPolyvVideoView
release
在接口中 IPolyvVideoView
public void release(boolean cleartargetstate)
release
在接口中 IPolyvIjkVideoView
public void start()
start
在接口中 android.widget.MediaController.MediaPlayerControl
start
在接口中 IPolyvMediaPlayerControl
public void setPPTLiveDrawView(com.easefun.polyvsdk.live.chat.IPolyvPPTView pptView, boolean isLifeBeControlledByVideoView)
IPolyvVideoView
setPPTLiveDrawView
在接口中 IPolyvVideoView
isLifeBeControlledByVideoView
- ppt绘制控件的生命周期是否由播放器决定,此时外部无需处理public boolean isPPTResume()
IPolyvVideoView
isPPTResume
在接口中 IPolyvVideoView
public void setPPTStatus(boolean isPPTResume)
IPolyvVideoView
setPPTStatus
在接口中 IPolyvVideoView
public boolean canShowControllerToPPTPlayback()
IPolyvVideoView
canShowControllerToPPTPlayback
在接口中 IPolyvVideoView
public void PPTLiveLayoutChange()
IPolyvVideoView
PPTLiveLayoutChange
在接口中 IPolyvVideoView
public void PPTLiveLayoutResume()
IPolyvVideoView
PPTLiveLayoutResume
在接口中 IPolyvVideoView
protected void onConfigurationChanged(android.content.res.Configuration newConfig)
onConfigurationChanged
在类中 android.view.View
public void setMarqueeView(com.easefun.polyvsdk.marquee.PolyvMarqueeView marqueeView, com.easefun.polyvsdk.marquee.PolyvMarqueeItem marqueeItem)
IPolyvVideoView
setMarqueeView
在接口中 IPolyvVideoView
public void setOpenMarquee(boolean isOpenMarquee)
IPolyvVideoView
setOpenMarquee
在接口中 IPolyvVideoView
@Deprecated public void clearGestureInfo()
IPolyvVideoView
clearGestureInfo
在接口中 IPolyvVideoView
public boolean onPPTLiveTranTouchEvent(android.view.MotionEvent event, int width)
IPolyvVideoView
onPPTLiveTranTouchEvent
在接口中 IPolyvVideoView
public boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent
在类中 android.view.View
protected 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.View
public boolean onKeyDown(int keyCode, android.view.KeyEvent event)
onKeyDown
在接口中 android.view.KeyEvent.Callback
onKeyDown
在类中 android.view.View
protected void onWindowVisibilityChanged(int visibility)
onWindowVisibilityChanged
在类中 android.view.View
@Deprecated public void setLoadTimeoutSecond(int timeoutSecond)
IPolyvVideoView
setLoadTimeoutSecond
在接口中 IPolyvVideoView
timeoutSecond
- 加载超时时间,最小值为25,默认为25IPolyvVideoView.setLoadTimeoutSecond(boolean, int)
public void setLoadTimeoutSecond(boolean isOpenLoadTimeout, int timeoutSecond)
IPolyvVideoView
setLoadTimeoutSecond
在接口中 IPolyvVideoView
isOpenLoadTimeout
- 是否开启加载超时的功能,默认关闭timeoutSecond
- 加载超时时间,最小值为25,默认为25@Deprecated public void setBufferTimeoutSecond(int timeoutSecond)
IPolyvVideoView
setBufferTimeoutSecond
在接口中 IPolyvVideoView
timeoutSecond
- 缓冲超时时间,最小值为15,默认为15IPolyvVideoView.setBufferTimeoutSecond(boolean, int)
public void setBufferTimeoutSecond(boolean isOpenBufferTimeout, int timeoutSecond)
IPolyvVideoView
setBufferTimeoutSecond
在接口中 IPolyvVideoView
isOpenBufferTimeout
- 是否开启缓冲超时的功能,默认关闭timeoutSecond
- 缓冲超时时间,最小值为15,默认为15public boolean isOpenSound()
IPolyvVideoView
isOpenSound
在接口中 IPolyvVideoView
true
:开启false
:关闭public void openSound()
IPolyvVideoView
openSound
在接口中 IPolyvVideoView
public void closeSound()
IPolyvVideoView
closeSound
在接口中 IPolyvVideoView
public void setVolume(int volume)
IPolyvVideoView
setVolume
在接口中 IPolyvVideoView
volume
- - 音量,0 到 100 闭区间的数public int getVolume()
IPolyvVideoView
getVolume
在接口中 IPolyvVideoView
public void setBrightness(android.app.Activity activity, int brightness)
IPolyvVideoView
setBrightness
在接口中 IPolyvVideoView
brightness
- - 亮度,-1 到 100 闭区间的数,如果为-1,那么设置为系统亮度public int getBrightness(android.app.Activity activity)
IPolyvVideoView
getBrightness
在接口中 IPolyvVideoView
public boolean setBrightness(int brightness)
IPolyvVideoView
setBrightness
在接口中 IPolyvVideoView
brightness
- - 亮度,0 到 100 闭区间的数public int getBrightness()
IPolyvVideoView
getBrightness
在接口中 IPolyvVideoView
public boolean canStart()
IPolyvVideoView
canStart
在接口中 IPolyvVideoView
true
:可以false
:不可以public void setVideoLayout(int layout)
setVideoLayout
在接口中 IPolyvVideoView
IPolyvVideoView.setAspectRatio(int)
public boolean setAspectRatio(int screen)
IPolyvVideoView
setAspectRatio
在接口中 IPolyvVideoView
screen
- 银幕大小public int getAspectRatio()
IPolyvVideoView
getAspectRatio
在接口中 IPolyvVideoView
PolyvPlayerScreenRatio
的常量PolyvPlayerScreenRatio
public void setPlayerBufferingIndicator(android.view.View view)
IPolyvVideoView
setPlayerBufferingIndicator
在接口中 IPolyvVideoView
view
- 缓存视图public void setMediaBufferingIndicator(android.view.View view)
IPolyvVideoView
setMediaBufferingIndicator
在接口中 IPolyvVideoView
view
- 缓存视图public void setAuxiliaryVideoView(PolyvAuxiliaryVideoView auxiliaryVideoView)
IPolyvVideoView
setAuxiliaryVideoView
在接口中 IPolyvVideoView
public PolyvAuxiliaryVideoView getAuxiliaryVideoView()
IPolyvVideoView
getAuxiliaryVideoView
在接口中 IPolyvVideoView
public void setMediaController(PolyvBaseMediaController mediaController)
IPolyvVideoView
setMediaController
在接口中 IPolyvVideoView
public PolyvBaseMediaController getMediaController()
IPolyvVideoView
getMediaController
在接口中 IPolyvVideoView
public void setOpenTeaser(boolean isOpenTeaser)
IPolyvVideoView
setOpenTeaser
在接口中 IPolyvVideoView
isOpenTeaser
- true为开启public boolean setCustomTeaser(java.lang.String url, int duration)
setCustomTeaser
在接口中 IPolyvVideoView
url
- 设置自定义片头url。
图片支持png、jpg、gif。
视频支持mp4、flv。duration
- 设置自定义片头时长
必填项,正整数。
设置的广告时长大于片头视频实际时长时,则以视频实际时长为准。public void setOpenAd(boolean isOpenAd)
IPolyvVideoView
setOpenAd
在接口中 IPolyvVideoView
isOpenAd
- true为开启public void setOpenQuestion(boolean isOpenQuestion)
IPolyvVideoView
setOpenQuestion
在接口中 IPolyvVideoView
isOpenQuestion
- true为开启public void setOpenSRT(boolean isOpenSRT)
IPolyvVideoView
setOpenSRT
在接口中 IPolyvVideoView
isOpenSRT
- true为开启public void setAutoContinue(boolean isAutoContinue)
IPolyvVideoView
setAutoContinue
在接口中 IPolyvVideoView
isAutoContinue
- true为开启public void setAutoPlay(boolean isAutoPlay)
IPolyvVideoView
setAutoPlay
在接口中 IPolyvVideoView
isAutoPlay
- true
为开启自动播放public boolean isOpenPreload()
IPolyvVideoView
isOpenPreload
在接口中 IPolyvVideoView
public void setOpenPreload(boolean isOpenPreload)
IPolyvVideoView
setOpenPreload
在接口中 IPolyvVideoView
isOpenPreload
- true为开启public void setOpenPreload(boolean isOpenPreload, int preloadSecond)
IPolyvVideoView
setOpenPreload
在接口中 IPolyvVideoView
isOpenPreload
- true为开启preloadSecond
- 预加载倒计时临界值(秒),默认值1public void setQuestionOverdueTime(int month, int day, int hour)
IPolyvVideoView
setQuestionOverdueTime
在接口中 IPolyvVideoView
month
- 月day
- 日hour
- 时public void setQuestionAnswerOverdueTime(int month, int day, int hour)
IPolyvVideoView
setQuestionAnswerOverdueTime
在接口中 IPolyvVideoView
month
- 月day
- 日hour
- 时@Deprecated public void setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener l)
IPolyvVideoViewListenerEvent
IPolyvOnBufferingUpdateListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener2)
setOnBufferingUpdateListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener2)
@Deprecated public void setOnVideoPlayErrorLisener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEvent
setOnVideoPlayErrorLisener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener)
@Deprecated public void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEvent
setOnVideoPlayErrorListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
public void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2 l)
IPolyvVideoViewListenerEvent
setOnVideoPlayErrorListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调@Deprecated public void setOnCompletionListener(IPolyvOnCompletionListener l)
IPolyvVideoViewListenerEvent
IPolyvOnCompletionListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnCompletionListener(IPolyvOnCompletionListener2)
setOnCompletionListener
在接口中 IPolyvIjkVideoView
setOnCompletionListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnCompletionListener(IPolyvOnCompletionListener2)
@Deprecated public void setOnPreparedListener(IPolyvOnPreparedListener l)
IPolyvVideoViewListenerEvent
IPolyvOnPreparedListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
setOnPreparedListener
在接口中 IPolyvIjkVideoView
setOnPreparedListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnPreparedListener(IPolyvOnPreparedListener2)
@Deprecated public void setOnErrorListener(IPolyvOnErrorListener l)
IPolyvVideoViewListenerEvent
IPolyvOnErrorListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnErrorListener(IPolyvOnErrorListener2)
。
为了能更好的统一错误处理,这个错误回调合并到IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
中,对应的错误类型是PolyvPlayErrorReason.VIDEO_ERROR
。
为了向后兼容,以前的程序不受影响,当设置了这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
错误回调不会被触发。
没有设置这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
错误回调才会触发。setOnErrorListener
在接口中 IPolyvIjkVideoView
setOnErrorListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnErrorListener(IPolyvOnErrorListener2)
@Deprecated public void setOnErrorListener(IPolyvOnErrorListener2 l)
IPolyvVideoViewListenerEvent
IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
中,对应的错误类型是PolyvPlayErrorReason.VIDEO_ERROR
。
为了向后兼容,以前的程序不受影响,当设置了这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
错误回调不会被触发。
没有设置这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
错误回调才会触发。setOnErrorListener
在接口中 IPolyvIjkVideoView
setOnErrorListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
@Deprecated public void setOnInfoListener(IPolyvOnInfoListener l)
IPolyvVideoViewListenerEvent
IPolyvOnInfoListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnInfoListener(IPolyvOnInfoListener2)
setOnInfoListener
在接口中 IPolyvIjkVideoView
setOnInfoListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnInfoListener(IPolyvOnInfoListener2)
@Deprecated public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener l)
IPolyvVideoViewListenerEvent
IPolyvOnSeekCompleteListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2)
setOnSeekCompleteListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2)
@Deprecated public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener l)
IPolyvVideoViewListenerEvent
IPolyvOnVideoSizeChangedListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2)
setOnVideoSizeChangedListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2)
public void setOnVideoSRTListener(IPolyvOnVideoSRTListener l)
IPolyvVideoViewListenerEvent
setOnVideoSRTListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调@Deprecated public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener l)
IPolyvVideoViewListenerEvent
setOnAdvertisementOutListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2)
public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2 l)
IPolyvVideoViewListenerEvent
setOnAdvertisementOutListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调public void setOnAdvertisementCountDownListener(IPolyvOnAdvertisementCountDownListener l)
IPolyvVideoViewListenerEvent
setOnAdvertisementCountDownListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调@Deprecated public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener l)
IPolyvVideoViewListenerEvent
setOnAdvertisementEventListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2)
public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2 l)
IPolyvVideoViewListenerEvent
setOnAdvertisementEventListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调public void setOnTeaserOutListener(IPolyvOnTeaserOutListener l)
IPolyvVideoViewListenerEvent
setOnTeaserOutListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调public void setOnTeaserCountDownListener(IPolyvOnTeaserCountDownListener l)
IPolyvVideoViewListenerEvent
setOnTeaserCountDownListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调@Deprecated public IMediaPlayer getMediaPlayer()
getMediaPlayer
在接口中 IPolyvIjkVideoView
public float getSpeed()
IPolyvIjkVideoView
getSpeed
在接口中 IPolyvIjkVideoView
public void destroy()
IPolyvVideoView
destroy
在接口中 IPolyvVideoView
public boolean changeSRT(java.lang.String key)
IPolyvVideoView
changeSRT
在接口中 IPolyvVideoView
public java.lang.String getCurrSRTKey()
IPolyvVideoView
getCurrSRTKey
在接口中 IPolyvVideoView
@Deprecated public void setOnQuestionOutListener(IPolyvOnQuestionOutListener l)
IPolyvVideoViewListenerEvent
setOnQuestionOutListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调IPolyvVideoViewListenerEvent.setOnQuestionOutListener(IPolyvOnQuestionOutListener2)
public void setOnQuestionOutListener(IPolyvOnQuestionOutListener2 l)
IPolyvVideoViewListenerEvent
setOnQuestionOutListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调IPolyvVideoViewListenerEvent.setOnQuestionListener(IPolyvOnQuestionListener)
@Deprecated public void setOnQuestionAnswerTipsListener(IPolyvOnQuestionAnswerTipsListener l)
IPolyvVideoViewListenerEvent
setOnQuestionAnswerTipsListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调IPolyvVideoViewListenerEvent.setOnQuestionListener(IPolyvOnQuestionListener)
public void setOnQuestionListener(IPolyvOnQuestionListener l)
IPolyvVideoViewListenerEvent
setOnQuestionListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调@Deprecated public void answerQuestion(boolean isRight, java.lang.String tipContent)
IPolyvVideoView
IPolyvVideoView.answerQuestion2(List)
方法,请在最新的demo中查看IPolyvVideoView.answerQuestion2(List)
方法的使用。answerQuestion
在接口中 IPolyvVideoView
isRight
- 是否正确答案tipContent
- 提示内容IPolyvVideoView.answerQuestion2(List)
@Deprecated public void answerQuestion()
IPolyvVideoView
IPolyvVideoView.answerQuestion2(List)
方法,请在最新的demo中查看IPolyvVideoView.answerQuestion2(List)
方法的使用。answerQuestion
在接口中 IPolyvVideoView
IPolyvVideoView.answerQuestion2(List)
@Deprecated public void answerQuestion(java.util.List<java.lang.Integer> indexList)
IPolyvVideoView
IPolyvVideoView.answerQuestion2(List)
方法,请在最新的demo中查看IPolyvVideoView.answerQuestion2(List)
方法的使用。answerQuestion
在接口中 IPolyvVideoView
indexList
- 选中的下标列表,0开始IPolyvVideoView.answerQuestion2(List)
public void answerQuestion2(java.util.List<java.lang.Integer> indexList)
IPolyvVideoView
answerQuestion2
在接口中 IPolyvVideoView
@Deprecated public void answerQuestionFault()
IPolyvVideoView
IPolyvVideoView.doneQuestion(int)
方法,请在最新的demo中查看IPolyvVideoView.doneQuestion(int)
方法的使用。answerQuestionFault
在接口中 IPolyvVideoView
IPolyvVideoView.doneQuestion(int)
@Deprecated public void skipQuestion()
IPolyvVideoView
IPolyvVideoView.skipQuestion2()
方法,请在最新的demo中查看IPolyvVideoView.skipQuestion2()
方法的使用。skipQuestion
在接口中 IPolyvVideoView
IPolyvVideoView.skipQuestion2()
public void skipQuestion2()
IPolyvVideoView
skipQuestion2
在接口中 IPolyvVideoView
public void doneQuestion(int action)
IPolyvVideoView
PolyvQuestionDoneAction
中定义的常量,如果传递的参数错误,都当作PolyvQuestionDoneAction.ANSWOER_FAILURE
处理。doneQuestion
在接口中 IPolyvVideoView
action
- 动作类型public void insertQuestion(PolyvQuestionVO questionVO)
IPolyvVideoView
PolyvQuestionVO.setShowTime(int)
问答出现的时间点,插入到当前问答列表中。
插入的问答会根据视频播放时间自动弹出。
问答列表中问答出现的时间点越靠近0的越早显示。insertQuestion
在接口中 IPolyvVideoView
questionVO
- 问答值对象public void changeQuestion(int showTime, java.util.ArrayList<PolyvQuestionVO> questionVOList)
IPolyvVideoView
changeQuestion
在接口中 IPolyvVideoView
showTime
- 题目出现时间点,同PolyvQuestionVO.setShowTime(int)
一样的逻辑。
会覆盖questionVOList参数中PolyvQuestionVO.setShowTime(int)
的值。questionVOList
- 问答值对象列表,如果传递的是null
,则清除showTime(题目出现时间点)的问答。public android.view.GestureDetector getGestureDetector()
IPolyvVideoView
getGestureDetector
在接口中 IPolyvVideoView
public boolean getNeedGestureDetector()
IPolyvVideoView
getNeedGestureDetector
在接口中 IPolyvVideoView
public void setNeedGestureDetector(boolean need)
IPolyvVideoView
setNeedGestureDetector
在接口中 IPolyvVideoView
public boolean isPreparedState()
IPolyvVideoView
isPreparedState
在接口中 IPolyvVideoView
true
:是false
:否public boolean isPlayState()
IPolyvVideoView
isPlayState
在接口中 IPolyvVideoView
true
:是false
:否public boolean isPlayState(boolean isAndBuffer)
IPolyvVideoView
isPlayState
在接口中 IPolyvVideoView
isAndBuffer
- 是否包括缓冲状态,默认为falsetrue
:是false
:否public boolean isInPlaybackState()
IPolyvVideoView
isInPlaybackState
在接口中 IPolyvVideoView
true
:是false
:否public boolean isPausState()
IPolyvVideoView
isPausState
在接口中 IPolyvVideoView
true
:是false
:否IPolyvVideoView.isPauseState()
public boolean isPauseState()
IPolyvVideoView
isPauseState
在接口中 IPolyvVideoView
true
:是false
:否public boolean isBufferState()
IPolyvVideoView
isBufferState
在接口中 IPolyvVideoView
true
:是false
:否public boolean isCompletedState()
IPolyvVideoView
isCompletedState
在接口中 IPolyvVideoView
true
:是false
:否public boolean isExceptionCompleted()
IPolyvVideoView
isExceptionCompleted
在接口中 IPolyvVideoView
true
:是false
:否public void onActivityResume()
IPolyvVideoView
onActivityResume
在接口中 IPolyvVideoView
public boolean onActivityStop()
IPolyvVideoView
onActivityStop
在接口中 IPolyvVideoView
@Deprecated public void setOnCompletionListener(IMediaPlayer.OnCompletionListener l)
IPolyvVideoViewListenerEvent
setOnCompletionListener
在接口中 IPolyvIjkVideoView
setOnCompletionListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnCompletionListener(IPolyvOnCompletionListener)
@Deprecated public void setOnErrorListener(IMediaPlayer.OnErrorListener l)
IPolyvVideoViewListenerEvent
IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
中,对应的错误类型是PolyvPlayErrorReason.VIDEO_ERROR
。
为了向后兼容,以前的程序不受影响,当设置了这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
错误回调不会被触发。
没有设置这个错误回调时,IPolyvVideoViewListenerEvent.setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2)
错误回调才会触发。setOnErrorListener
在接口中 IPolyvIjkVideoView
setOnErrorListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnErrorListener(IPolyvOnErrorListener)
@Deprecated public void setOnInfoListener(IMediaPlayer.OnInfoListener l)
IPolyvVideoViewListenerEvent
setOnInfoListener
在接口中 IPolyvIjkVideoView
setOnInfoListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnInfoListener(IPolyvOnInfoListener)
@Deprecated public void setOnPreparedListener(IMediaPlayer.OnPreparedListener l)
IPolyvVideoViewListenerEvent
setOnPreparedListener
在接口中 IPolyvIjkVideoView
setOnPreparedListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnPreparedListener(IPolyvOnPreparedListener)
@Deprecated public void setOnBufferingUpdateListener(IMediaPlayer.OnBufferingUpdateListener l)
IPolyvVideoViewListenerEvent
setOnBufferingUpdateListener
在接口中 IPolyvVideoViewListenerEvent
l
- 设置为null就是清除监听回调setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener)
@Deprecated public void setMediaController(com.easefun.polyvsdk.ijk.widget.media.IMediaController controller)
IPolyvVideoView
@Deprecated public void playNext()
IPolyvVideoView
playNext
在接口中 IPolyvVideoView
@Deprecated public void setUserAgent(java.lang.String ua)
IPolyvVideoView
setUserAgent
在接口中 IPolyvVideoView
public void setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
IPolyvVideoViewListenerEvent
setOnPlayPauseListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnPreloadPlayListener(IPolyvOnPreloadPlayListener arg0)
IPolyvVideoViewListenerEvent
setOnPreloadPlayListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnVideoStatusListener(IPolyvOnVideoStatusListener arg0)
IPolyvVideoViewListenerEvent
setOnVideoStatusListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
IPolyvVideoViewListenerEvent
setOnSeekCompleteListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2 arg0)
IPolyvVideoViewListenerEvent
setOnVideoSizeChangedListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureLeftUpListener(IPolyvOnGestureLeftUpListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureLeftUpListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureLeftDownListener(IPolyvOnGestureLeftDownListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureLeftDownListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureRightUpListener(IPolyvOnGestureRightUpListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureRightUpListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureRightDownListener(IPolyvOnGestureRightDownListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureRightDownListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureSwipeLeftListener(IPolyvOnGestureSwipeLeftListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureSwipeLeftListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureSwipeRightListener(IPolyvOnGestureSwipeRightListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureSwipeRightListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureClickListener(IPolyvOnGestureClickListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureClickListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnGestureDoubleClickListener(IPolyvOnGestureDoubleClickListener arg0)
IPolyvVideoViewListenerEvent
setOnGestureDoubleClickListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调public void setOnChangeModeListener(IPolyvOnChangeModeListener arg0)
IPolyvVideoViewListenerEvent
setOnChangeModeListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调@Deprecated public void setOnExceptionCompletedListener(com.easefun.polyvsdk.video.listener.IPolyvOnExceptionCompletedListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGetVideoJsonTimeListener(IPolyvOnGetVideoJsonTimeListener arg0)
IPolyvVideoViewListenerEvent
public void setOnPPTStatusListener(IPolyvOnPPTStatusListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGetCurrentPositionListener(IPolyvOnGetCurrentPositionListener arg0)
public void setOnGetCurrentPositionListener(long arg0, IPolyvOnGetCurrentPositionListener arg1)
IPolyvVideoViewListenerEvent
protected void callOnGetCurrentPosition(java.lang.String arg0, int arg1)
protected void callOnGetVideoJsonTime(long arg0)
protected void callOnGetVideoJsonTimeout(long arg0, long arg1)
@Deprecated protected void callOnExceptionCompletedListener()
protected void callOnChangeModeListener(java.lang.String arg0)
public void setOnVideoTimeoutListener(IPolyvOnVideoTimeoutListener arg0)
IPolyvVideoViewListenerEvent
setOnVideoTimeoutListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为null就是清除监听回调protected void callOnVideoTimeoutListenerBufferTimeout(int arg0, int arg1)
public void setOnVideoSRTPreparedListener(IPolyvOnVideoSRTPreparedListener arg0)
IPolyvVideoViewListenerEvent
setOnVideoSRTPreparedListener
在接口中 IPolyvVideoViewListenerEvent
arg0
- 设置为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 void callOnPPTStatusListener(java.lang.String arg0, boolean arg1, PolyvPptInfo arg2)
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()
IPolyvMediaPlayerControl
isPlaying
在接口中 android.widget.MediaController.MediaPlayerControl
isPlaying
在接口中 IPolyvMediaPlayerControl
public boolean canPause()
IPolyvMediaPlayerControl
canPause
在接口中 android.widget.MediaController.MediaPlayerControl
canPause
在接口中 IPolyvMediaPlayerControl
public boolean canSeekBackward()
IPolyvMediaPlayerControl
canSeekBackward
在接口中 android.widget.MediaController.MediaPlayerControl
canSeekBackward
在接口中 IPolyvMediaPlayerControl
public boolean canSeekForward()
IPolyvMediaPlayerControl
canSeekForward
在接口中 android.widget.MediaController.MediaPlayerControl
canSeekForward
在接口中 IPolyvMediaPlayerControl
public int getAudioSessionId()
getAudioSessionId
在接口中 android.widget.MediaController.MediaPlayerControl
public void setRenderView(com.easefun.polyvsdk.ijk.widget.media.IRenderView arg0)
setRenderView
在接口中 IPolyvIjkVideoView
public void setRender(int arg0)
setRender
在接口中 IPolyvIjkVideoView
public void stopPlayback()
IPolyvIjkVideoView
stopPlayback
在接口中 IPolyvIjkVideoView
public void releaseWithoutStop()
releaseWithoutStop
在接口中 IPolyvIjkVideoView
public void suspend()
suspend
在接口中 IPolyvIjkVideoView
public void resume()
resume
在接口中 IPolyvIjkVideoView
public int toggleAspectRatio()
toggleAspectRatio
在接口中 IPolyvIjkVideoView
public int toggleRender()
toggleRender
在接口中 IPolyvIjkVideoView
public int togglePlayer()
togglePlayer
在接口中 IPolyvIjkVideoView
public tv.danmaku.ijk.media.player.IMediaPlayer createPlayer(int arg0)
createPlayer
在接口中 IPolyvIjkVideoView
public tv.danmaku.ijk.media.player.misc.ITrackInfo[] getTrackInfo()
getTrackInfo
在接口中 IPolyvIjkVideoView
public void selectTrack(int arg0)
selectTrack
在接口中 IPolyvIjkVideoView
public void deselectTrack(int arg0)
deselectTrack
在接口中 IPolyvIjkVideoView
public int getSelectedTrack(int arg0)
getSelectedTrack
在接口中 IPolyvIjkVideoView
public boolean isInPlaybackStateForwarding()
public com.easefun.polyvsdk.ijk.widget.media.IRenderView getRenderView()
getRenderView
在接口中 IPolyvIjkVideoView
public int getCurrentAspectRatio()
getCurrentAspectRatio
在接口中 IPolyvIjkVideoView
public void setCurrentAspectRatio(int arg0)
setCurrentAspectRatio
在接口中 IPolyvIjkVideoView
public int getVideoWidth()
getVideoWidth
在接口中 IPolyvIjkVideoView
public int getVideoHeight()
getVideoHeight
在接口中 IPolyvIjkVideoView
public android.view.SurfaceHolder getSurfaceHolder()
getSurfaceHolder
在接口中 IPolyvIjkVideoView
public void setSpeed(float arg0)
IPolyvIjkVideoView
setSpeed
在接口中 IPolyvIjkVideoView
arg0
- 播放速度,最好不要超过2public int getStateIdleCode()
getStateIdleCode
在接口中 IPolyvIjkVideoView
public int getStatePreparingCode()
getStatePreparingCode
在接口中 IPolyvIjkVideoView
public int getStatePreparedCode()
getStatePreparedCode
在接口中 IPolyvIjkVideoView
public int getStatePauseCode()
getStatePauseCode
在接口中 IPolyvIjkVideoView
public int getStatePlaybackCompletedCode()
public int getCurrentState()
getCurrentState
在接口中 IPolyvIjkVideoView
public void setOptionParameters(java.lang.Object[][] arg0)
setOptionParameters
在接口中 IPolyvIjkVideoView
public void clearOptionParameters()
clearOptionParameters
在接口中 IPolyvIjkVideoView
public void clearCanvasInStart(boolean arg0)
clearCanvasInStart
在接口中 IPolyvIjkVideoView
public void setLooping(boolean arg0)
setLooping
在接口中 IPolyvIjkVideoView
public void setIjkLogLevel(int arg0)
setIjkLogLevel
在接口中 IPolyvIjkVideoView
public void removeRenderView()
removeRenderView
在接口中 IPolyvIjkVideoView
public void setOnSurfaceUpdateListener(com.easefun.polyvsdk.ijk.widget.media.IjkVideoView.OnSurfaceUpdateListener arg0)
setOnSurfaceUpdateListener
在接口中 IPolyvIjkVideoView
public android.graphics.Bitmap screenshot()
screenshot
在接口中 IPolyvIjkVideoView
public android.graphics.Bitmap screenshot(android.graphics.Bitmap arg0)
screenshot
在接口中 IPolyvIjkVideoView
public android.graphics.Bitmap screenshot(int arg0, int arg1)
screenshot
在接口中 IPolyvIjkVideoView
public tv.danmaku.ijk.media.player.IjkMediaPlayer getIjkMediaPlayer()
getIjkMediaPlayer
在接口中 IPolyvIjkVideoView