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(java.util.List<java.lang.Integer> indexList)
回答问题
|
void |
answerQuestionFault()
回答问题错误
|
protected void |
callOnBufferingUpdateListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1) |
protected void |
callOnCompletionListener(tv.danmaku.ijk.media.player.IMediaPlayer mediaPlayer) |
protected void |
callOnErrorListener(tv.danmaku.ijk.media.player.IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId) |
protected void |
callOnErrorListener(tv.danmaku.ijk.media.player.IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList) |
protected void |
callOnErrorListener(tv.danmaku.ijk.media.player.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 |
callOnGestureClickListener(boolean arg0,
boolean arg1) |
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,
boolean arg1) |
protected void |
callOnGestureSwipeRightListener(boolean arg0,
boolean 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(tv.danmaku.ijk.media.player.IMediaPlayer mediaPlayer) |
protected void |
callOnSeekCompleteListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0) |
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 |
callOnVideoSizeChangedListener(tv.danmaku.ijk.media.player.IMediaPlayer arg0,
int arg1,
int arg2,
int arg3,
int arg4) |
protected void |
callOnVideoStatusListener(int arg0) |
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)设置播放速度 |
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()
销毁,在最后不使用播放器时调用
|
int |
getAspectRatio()
取得银幕比率
|
int |
getAudioSessionId() |
PolyvAuxiliaryVideoView |
getAuxiliaryVideoView()
获取辅助视频播放视图
|
int |
getBitRate()
取得当前播放的视频码率
|
int |
getBrightness()
取得系统亮度
|
int |
getBrightness(android.app.Activity activity)
取得当前窗口亮度
|
int |
getBufferPercentage()
取得视频缓存百分比
|
int |
getCurrentAspectRatio() |
int |
getCurrentPosition()
取得视频播放进度当前位置
|
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)设置播放速度 |
int |
getLevel()
获取码率数量
|
PolyvBaseMediaController |
getMediaController()
取得播放器控制栏
|
tv.danmaku.ijk.media.player.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() |
com.easefun.polyvsdk.ijk.widget.media.IRenderView |
getRenderView() |
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
|
java.lang.String |
getViewerName()
取得观众名称
|
java.lang.String |
getViewerParam() |
java.lang.String |
getViewLogParam1() |
java.lang.String |
getViewLogParam2() |
java.lang.String |
getViewLogParam3() |
java.lang.String |
getViewLogParam4() |
java.lang.String |
getViewLogParam5() |
int |
getVolume()
取得音量
|
int |
getWatchTimeDuration()
取得观看时长,只有在播放中才会计数
|
protected void |
initIPolyvIjkVideoView(IPolyvIjkVideoView arg0) |
boolean |
isBufferState()
当前是否在缓冲中
|
boolean |
isCompletedState()
当前是否播放完成
|
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()
当前是否在准备中
|
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 |
resume() |
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 |
setCurrentAspectRatio(int arg0) |
void |
setIjkLogLevel(int arg0) |
void |
setLooping(boolean arg0) |
void |
setMarqueeView(com.easefun.polyvsdk.marquee.PolyvMarqueeView marqueeView,
com.easefun.polyvsdk.marquee.PolyvMarqueeItem marqueeItem)
设置跑马灯控件,及item
|
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(tv.danmaku.ijk.media.player.IMediaPlayer.OnBufferingUpdateListener l)
已过时。
|
void |
setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener l)
已过时。
|
void |
setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener2 arg0)
设置视频缓存更新回调
|
void |
setOnCompletionListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnCompletionListener l)
已过时。
|
void |
setOnCompletionListener(IPolyvOnCompletionListener l)
已过时。
|
void |
setOnCompletionListener(IPolyvOnCompletionListener2 arg0)
设置视频播放完成回调
|
void |
setOnErrorListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnErrorListener l)
已过时。
|
void |
setOnErrorListener(IPolyvOnErrorListener l)
已过时。
|
void |
setOnErrorListener(IPolyvOnErrorListener2 arg0)
设置视频播放器内部错误回调
|
void |
setOnGestureClickListener(IPolyvOnGestureClickListener 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 |
setOnInfoListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnInfoListener l)
已过时。
|
void |
setOnInfoListener(IPolyvOnInfoListener l)
已过时。
|
void |
setOnInfoListener(IPolyvOnInfoListener2 arg0)
设置视频播放器信息有变更回调
|
void |
setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
设置视频播放/暂停/播放完成回调
|
void |
setOnPreloadPlayListener(com.easefun.polyvsdk.video.listener.IPolyvOnPreloadPlayListener arg0)
设置预加载播放回调
|
void |
setOnPreparedListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnPreparedListener l)
已过时。
|
void |
setOnPreparedListener(IPolyvOnPreparedListener l)
已过时。
|
void |
setOnPreparedListener(IPolyvOnPreparedListener2 arg0)
设置视频已准备好马上进入播放回调
|
void |
setOnQuestionAnswerTipsListener(IPolyvOnQuestionAnswerTipsListener l)
设置问答答错提示监听回调,告诉此时应该弹出提示
|
void |
setOnQuestionOutListener(IPolyvOnQuestionOutListener l)
已过时。
|
void |
setOnQuestionOutListener(IPolyvOnQuestionOutListener2 l)
设置问答弹出监听回调,告诉此时应该弹出问答
|
void |
setOnSeekCompleteListener(IPolyvOnSeekCompleteListener l)
已过时。
|
void |
setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
设置seek完成回调
|
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 |
setOnVideoStatusListener(IPolyvOnVideoStatusListener 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 |
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)
设置ppt回放视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setPPTVideoURI(android.net.Uri uri)
设置ppt回放视频uri播放视频
|
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 |
setSpeed(float arg0)
设置播放速度
|
void |
setUserAgent(java.lang.String ua)
已过时。
|
void |
setVid(java.lang.String videoId)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVid(java.lang.String videoId,
boolean isMustFromLocal)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVid(java.lang.String videoId,
boolean isMustFromLocal,
Video.HlsSpeedType hlsSpeedType)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVid(java.lang.String videoId,
int bitRateNum)
设置视频id播放视频,如果本地存在视频id的文件,并且是完整的,就播放本地视频。
|
void |
setVid(java.lang.String videoId,
int bitRateNum,
boolean isMustFromLocal)
设置视频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播放视频
|
void |
setVidByStrategy(java.lang.String videoId,
int bitRate,
int strategy)
根据播放策略设置视频id播放视频
|
void |
setVideoLayout(int layout) |
void |
setVideoPath(java.lang.String path)
设置视频路径
|
void |
setVideoURI(android.net.Uri uri)
设置视频URI
|
void |
setViewerId(java.lang.String viewerId)
设置观众id,发送统计日志自动带上此参数
|
void |
setViewerName(java.lang.String viewerName)
设置观众名称
|
void |
setViewerParam(java.lang.String viewerParam)
设置观众额外参数
|
void |
setViewLogParam1(java.lang.String viewLogParam1)
设置view log 的param1
|
void |
setViewLogParam2(java.lang.String viewLogParam2)
设置view log 的param2
|
void |
setViewLogParam3(java.lang.String viewLogParam3)
设置view log 的param3
|
void |
setViewLogParam4(java.lang.String viewLogParam4)
设置view log 的param4
|
void |
setViewLogParam5(java.lang.String viewLogParam5)
设置view log 的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, onDetachedFromWindow, 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, getCurrentPosition, getDuration, 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 void setVid(@NonNull
java.lang.String videoId)
IPolyvVideoViewIPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVid 在接口中 IPolyvVideoViewvideoId - 视频idpublic void setVid(@NonNull
java.lang.String videoId,
boolean isMustFromLocal)
IPolyvVideoViewIPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVid 在接口中 IPolyvVideoViewvideoId - 视频idisMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsepublic void setVid(@NonNull
java.lang.String videoId,
boolean isMustFromLocal,
@NonNull
Video.HlsSpeedType hlsSpeedType)
IPolyvVideoViewIPolyvVideoView.setVid(String, int),就拿上次设置的码率(清晰度)。setVid 在接口中 IPolyvVideoViewvideoId - 视频idisMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsehlsSpeedType - 播放速度类型 Video.HlsSpeedType,非加密视频设置此参数没有效果,默认值Video.HlsSpeedType.SPEED_1X。请使用setSpeed(float)设置播放速度public void setVid(@NonNull
java.lang.String videoId,
int bitRateNum)
IPolyvVideoViewsetVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRateNum - 码率(清晰度)public void setVid(@NonNull
java.lang.String videoId,
int bitRateNum,
boolean isMustFromLocal)
IPolyvVideoViewsetVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRateNum - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsepublic void setVid(@NonNull
java.lang.String videoId,
int bitRateNum,
boolean isMustFromLocal,
@NonNull
Video.HlsSpeedType hlsSpeedType)
IPolyvVideoViewsetVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRateNum - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为falsehlsSpeedType - 播放速度类型 Video.HlsSpeedType,非加密视频设置此参数没有效果,默认值Video.HlsSpeedType.SPEED_1X。请使用setSpeed(float)设置播放速度public void setVidByStrategy(java.lang.String videoId,
int strategy)
IPolyvVideoViewsetVidByStrategy 在接口中 IPolyvVideoViewvideoId - 视频idstrategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTpublic void setVidByStrategy(java.lang.String videoId,
int bitRate,
int strategy)
IPolyvVideoViewsetVidByStrategy 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)strategy - 策略类型PolyvPlayStrategy,默认值为PolyvPlayStrategy.DEFAULTpublic void setPPTVid(@NonNull
java.lang.String videoId,
int bitRate,
boolean isMustFromLocal)
IPolyvVideoViewsetPPTVid 在接口中 IPolyvVideoViewvideoId - 视频idbitRate - 码率(清晰度)isMustFromLocal - 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频public java.lang.String getCurrentVid()
IPolyvVideoViewgetCurrentVid 在接口中 IPolyvVideoViewpublic java.lang.String getCurrentVideoId()
IPolyvVideoViewgetCurrentVideoId 在接口中 IPolyvVideoViewpublic int getBitRate()
IPolyvVideoViewgetBitRate 在接口中 IPolyvVideoViewpublic Video.HlsSpeedType getHlsSpeedType()
IPolyvVideoViewsetSpeed(float)设置播放速度getHlsSpeedType 在接口中 IPolyvVideoView@Nullable public 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(@NonNull
java.lang.String path)
IPolyvIjkVideoViewsetVideoPath 在接口中 IPolyvIjkVideoViewpath - 视频地址public void setVideoURI(@NonNull
android.net.Uri uri)
IPolyvIjkVideoViewsetVideoURI 在接口中 IPolyvIjkVideoViewuri - 视频地址public void setPPTVideoURI(@NonNull
android.net.Uri uri)
IPolyvVideoViewsetPPTVideoURI 在接口中 IPolyvVideoViewuri - ppt回放视频的uripublic void setPlayerBufferingViewVisibility(int visibility)
visibility - 可见度类型public 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()
IPolyvVideoViewgetViewerId 在接口中 IPolyvVideoViewpublic void setViewerId(java.lang.String viewerId)
IPolyvVideoViewsetViewerId 在接口中 IPolyvVideoViewviewerId - 观众id字符串public java.lang.String getViewerName()
IPolyvVideoViewgetViewerName 在接口中 IPolyvVideoViewpublic void setViewerName(java.lang.String viewerName)
IPolyvVideoViewsetViewerName 在接口中 IPolyvVideoViewviewerName - 观众名称字符串public java.lang.String getViewerParam()
getViewerParam 在接口中 IPolyvVideoViewpublic void setViewerParam(java.lang.String viewerParam)
IPolyvVideoViewsetViewerParam 在接口中 IPolyvVideoViewviewerParam - 观众额外参数字符串public java.lang.String getViewLogParam1()
getViewLogParam1 在接口中 IPolyvVideoViewpublic void setViewLogParam1(java.lang.String viewLogParam1)
IPolyvVideoViewsetViewLogParam1 在接口中 IPolyvVideoViewviewLogParam1 - 参数字符串public java.lang.String getViewLogParam2()
getViewLogParam2 在接口中 IPolyvVideoViewpublic void setViewLogParam2(java.lang.String viewLogParam2)
IPolyvVideoViewsetViewLogParam2 在接口中 IPolyvVideoViewviewLogParam2 - 参数字符串public java.lang.String getViewLogParam3()
getViewLogParam3 在接口中 IPolyvVideoViewpublic void setViewLogParam3(java.lang.String viewLogParam3)
IPolyvVideoViewsetViewLogParam3 在接口中 IPolyvVideoViewviewLogParam3 - 参数字符串public java.lang.String getViewLogParam4()
getViewLogParam4 在接口中 IPolyvVideoViewpublic void setViewLogParam4(java.lang.String viewLogParam4)
IPolyvVideoViewsetViewLogParam4 在接口中 IPolyvVideoViewviewLogParam4 - 参数字符串public java.lang.String getViewLogParam5()
getViewLogParam5 在接口中 IPolyvVideoViewpublic void setViewLogParam5(java.lang.String viewLogParam5)
IPolyvVideoViewsetViewLogParam5 在接口中 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 在接口中 IPolyvVideoViewpublic 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(tv.danmaku.ijk.media.player.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 callOnErrorListener(tv.danmaku.ijk.media.player.IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId)
protected void callOnErrorListener(tv.danmaku.ijk.media.player.IMediaPlayer mediaPlayer,
int frameworkErr,
int implErr,
java.lang.String playId,
java.lang.String videoId,
java.util.List<java.lang.String> exceptionList)
protected void callOnErrorListener(tv.danmaku.ijk.media.player.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 callOnCompletionListener(tv.danmaku.ijk.media.player.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.Viewpublic 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(@NonNull
android.view.View view)
IPolyvVideoViewsetPlayerBufferingIndicator 在接口中 IPolyvVideoViewview - 缓存视图public void setMediaBufferingIndicator(@NonNull
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)@Deprecated public void setOnVideoPlayErrorLisener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEvent@Deprecated public void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEventpublic void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2 l)
IPolyvVideoViewListenerEvent@Deprecated public void setOnCompletionListener(IPolyvOnCompletionListener l)
IPolyvVideoViewListenerEventIPolyvOnCompletionListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnCompletionListener(IPolyvOnCompletionListener2)@Deprecated public void setOnPreparedListener(IPolyvOnPreparedListener l)
IPolyvVideoViewListenerEventIPolyvOnPreparedListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)@Deprecated public void setOnErrorListener(IPolyvOnErrorListener l)
IPolyvVideoViewListenerEventIPolyvOnErrorListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnErrorListener(IPolyvOnErrorListener2)@Deprecated public void setOnInfoListener(IPolyvOnInfoListener l)
IPolyvVideoViewListenerEventIPolyvOnInfoListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnInfoListener(IPolyvOnInfoListener2)@Deprecated public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener l)
IPolyvVideoViewListenerEventIPolyvOnSeekCompleteListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2)@Deprecated public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener l)
IPolyvVideoViewListenerEventIPolyvOnVideoSizeChangedListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2)public void setOnVideoSRTListener(IPolyvOnVideoSRTListener l)
IPolyvVideoViewListenerEvent@Deprecated public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener l)
IPolyvVideoViewListenerEventpublic void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2 l)
IPolyvVideoViewListenerEventpublic void setOnAdvertisementCountDownListener(IPolyvOnAdvertisementCountDownListener l)
IPolyvVideoViewListenerEvent@Deprecated public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener l)
IPolyvVideoViewListenerEventpublic void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2 l)
IPolyvVideoViewListenerEventpublic void setOnTeaserOutListener(IPolyvOnTeaserOutListener l)
IPolyvVideoViewListenerEventpublic void setOnTeaserCountDownListener(IPolyvOnTeaserCountDownListener l)
IPolyvVideoViewListenerEvent@Deprecated public void setOnQuestionOutListener(IPolyvOnQuestionOutListener l)
IPolyvVideoViewListenerEventpublic void setOnQuestionOutListener(IPolyvOnQuestionOutListener2 l)
IPolyvVideoViewListenerEventpublic void setOnQuestionAnswerTipsListener(IPolyvOnQuestionAnswerTipsListener l)
IPolyvVideoViewListenerEvent@Deprecated public tv.danmaku.ijk.media.player.IMediaPlayer getMediaPlayer()
getMediaPlayer 在接口中 IPolyvIjkVideoViewpublic float getSpeed()
IPolyvIjkVideoViewgetSpeed 在接口中 IPolyvIjkVideoViewpublic void destroy()
IPolyvVideoViewdestroy 在接口中 IPolyvVideoViewpublic boolean changeSRT(@NonNull
java.lang.String key)
IPolyvVideoViewchangeSRT 在接口中 IPolyvVideoView@Nullable public java.lang.String getCurrSRTKey()
IPolyvVideoViewgetCurrSRTKey 在接口中 IPolyvVideoViewpublic void answerQuestion()
IPolyvVideoViewanswerQuestion 在接口中 IPolyvVideoViewpublic void answerQuestion(@NonNull
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 void onActivityResume()
IPolyvVideoViewonActivityResume 在接口中 IPolyvVideoViewpublic boolean onActivityStop()
IPolyvVideoViewonActivityStop 在接口中 IPolyvVideoView@Deprecated public void setOnCompletionListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnCompletionListener l)
IPolyvVideoViewListenerEventIMediaPlayer.OnCompletionListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnCompletionListener(IPolyvOnCompletionListener)@Deprecated public void setOnErrorListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnErrorListener l)
IPolyvVideoViewListenerEventIMediaPlayer.OnErrorListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnErrorListener(IPolyvOnErrorListener)@Deprecated public void setOnInfoListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnInfoListener l)
IPolyvVideoViewListenerEventIMediaPlayer.OnInfoListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnInfoListener(IPolyvOnInfoListener)setOnInfoListener 在接口中 IPolyvIjkVideoViewsetOnInfoListener 在接口中 IPolyvVideoViewListenerEventsetOnInfoListener(IPolyvOnInfoListener)@Deprecated public void setOnPreparedListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnPreparedListener l)
IPolyvVideoViewListenerEventIMediaPlayer.OnPreparedListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener)@Deprecated public void setOnBufferingUpdateListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnBufferingUpdateListener l)
IPolyvVideoViewListenerEventIMediaPlayer.OnBufferingUpdateListener 回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.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 在接口中 IPolyvVideoViewpublic void setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener2 arg0)
IPolyvVideoViewListenerEventpublic void setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
IPolyvVideoViewListenerEventpublic void setOnPreloadPlayListener(com.easefun.polyvsdk.video.listener.IPolyvOnPreloadPlayListener arg0)
IPolyvVideoViewListenerEventpublic void setOnVideoStatusListener(IPolyvOnVideoStatusListener arg0)
IPolyvVideoViewListenerEventpublic void setOnCompletionListener(IPolyvOnCompletionListener2 arg0)
IPolyvVideoViewListenerEventpublic void setOnPreparedListener(IPolyvOnPreparedListener2 arg0)
IPolyvVideoViewListenerEventpublic void setOnErrorListener(IPolyvOnErrorListener2 arg0)
IPolyvVideoViewListenerEventpublic void setOnInfoListener(IPolyvOnInfoListener2 arg0)
IPolyvVideoViewListenerEventpublic void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
IPolyvVideoViewListenerEventpublic void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2 arg0)
IPolyvVideoViewListenerEventpublic void setOnGestureLeftUpListener(IPolyvOnGestureLeftUpListener arg0)
IPolyvVideoViewListenerEventpublic void setOnGestureLeftDownListener(IPolyvOnGestureLeftDownListener arg0)
IPolyvVideoViewListenerEventpublic void setOnGestureRightUpListener(IPolyvOnGestureRightUpListener arg0)
IPolyvVideoViewListenerEventpublic void setOnGestureRightDownListener(IPolyvOnGestureRightDownListener arg0)
IPolyvVideoViewListenerEventpublic void setOnGestureSwipeLeftListener(IPolyvOnGestureSwipeLeftListener arg0)
IPolyvVideoViewListenerEventpublic void setOnGestureSwipeRightListener(IPolyvOnGestureSwipeRightListener arg0)
IPolyvVideoViewListenerEventpublic void setOnGestureClickListener(IPolyvOnGestureClickListener arg0)
IPolyvVideoViewListenerEventprotected 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,
boolean arg1)
protected void callOnGestureSwipeRightListener(boolean arg0,
boolean arg1)
protected void callOnGestureClickListener(boolean arg0,
boolean arg1)
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 initIPolyvIjkVideoView(IPolyvIjkVideoView arg0)
public int getDuration()
IPolyvMediaPlayerControlgetDuration 在接口中 android.widget.MediaController.MediaPlayerControlgetDuration 在接口中 IPolyvMediaPlayerControlpublic int getCurrentPosition()
IPolyvMediaPlayerControlgetCurrentPosition 在接口中 android.widget.MediaController.MediaPlayerControlgetCurrentPosition 在接口中 IPolyvMediaPlayerControlpublic 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 在接口中 IPolyvIjkVideoView