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.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
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, 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, shouldDelayChildPressedState
addChildrenForAccessibility, 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, updateViewLayout
addFocusables, 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, willNotDraw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canPause, canSeekBackward, canSeekForward, getCurrentPosition, getDuration, isPlaying
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayout
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 setVid(@NonNull java.lang.String videoId)
IPolyvVideoView
IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVid
在接口中 IPolyvVideoView
videoId
- 视频idpublic void setVid(@NonNull java.lang.String videoId, boolean isMustFromLocal)
IPolyvVideoView
IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVid
在接口中 IPolyvVideoView
videoId
- 视频idisMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
public void setVid(@NonNull java.lang.String videoId, boolean isMustFromLocal, @NonNull Video.HlsSpeedType hlsSpeedType)
IPolyvVideoView
IPolyvVideoView.setVid(String, int)
,就拿上次设置的码率(清晰度)。setVid
在接口中 IPolyvVideoView
videoId
- 视频idisMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
hlsSpeedType
- 播放速度类型 Video.HlsSpeedType
,非加密视频设置此参数没有效果,默认值Video.HlsSpeedType.SPEED_1X
。请使用setSpeed(float)
设置播放速度public void setVid(@NonNull java.lang.String videoId, int bitRateNum)
IPolyvVideoView
setVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRateNum
- 码率(清晰度)public void setVid(@NonNull java.lang.String videoId, int bitRateNum, boolean isMustFromLocal)
IPolyvVideoView
setVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRateNum
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
public void setVid(@NonNull java.lang.String videoId, int bitRateNum, boolean isMustFromLocal, @NonNull Video.HlsSpeedType hlsSpeedType)
IPolyvVideoView
setVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRateNum
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频,默认值为false
hlsSpeedType
- 播放速度类型 Video.HlsSpeedType
,非加密视频设置此参数没有效果,默认值Video.HlsSpeedType.SPEED_1X
。请使用setSpeed(float)
设置播放速度public void setVidByStrategy(java.lang.String videoId, int strategy)
IPolyvVideoView
setVidByStrategy
在接口中 IPolyvVideoView
videoId
- 视频idstrategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
public void setVidByStrategy(java.lang.String videoId, int bitRate, int strategy)
IPolyvVideoView
setVidByStrategy
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)strategy
- 策略类型PolyvPlayStrategy
,默认值为PolyvPlayStrategy.DEFAULT
public void setPPTVid(@NonNull java.lang.String videoId, int bitRate, boolean isMustFromLocal)
IPolyvVideoView
setPPTVid
在接口中 IPolyvVideoView
videoId
- 视频idbitRate
- 码率(清晰度)isMustFromLocal
- 是否必须从本地播放,本地没有视频文件则回调错误,不去播放网络视频public java.lang.String getCurrentVid()
IPolyvVideoView
getCurrentVid
在接口中 IPolyvVideoView
public java.lang.String getCurrentVideoId()
IPolyvVideoView
getCurrentVideoId
在接口中 IPolyvVideoView
public int getBitRate()
IPolyvVideoView
getBitRate
在接口中 IPolyvVideoView
public Video.HlsSpeedType getHlsSpeedType()
IPolyvVideoView
setSpeed(float)
设置播放速度getHlsSpeedType
在接口中 IPolyvVideoView
@Nullable 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(@NonNull java.lang.String path)
IPolyvIjkVideoView
setVideoPath
在接口中 IPolyvIjkVideoView
path
- 视频地址public void setVideoURI(@NonNull android.net.Uri uri)
IPolyvIjkVideoView
setVideoURI
在接口中 IPolyvIjkVideoView
uri
- 视频地址public void setPPTVideoURI(@NonNull android.net.Uri uri)
IPolyvVideoView
setPPTVideoURI
在接口中 IPolyvVideoView
uri
- ppt回放视频的uripublic void setPlayerBufferingViewVisibility(int visibility)
visibility
- 可见度类型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()
获取码率(清晰度)public void changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType)
IPolyvVideoView
setSpeed(float)
设置播放速度changeHlsSpeedType
在接口中 IPolyvVideoView
hlsSpeedType
- 播放速度类型 Video.HlsSpeedType
,非加密视频设置此参数没有效果public void changeHlsSpeedType(Video.HlsSpeedType hlsSpeedType, boolean isMustFromLocal)
IPolyvVideoView
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
getViewerId
在接口中 IPolyvVideoView
public void setViewerId(java.lang.String viewerId)
IPolyvVideoView
setViewerId
在接口中 IPolyvVideoView
viewerId
- 观众id字符串public java.lang.String getViewerName()
IPolyvVideoView
getViewerName
在接口中 IPolyvVideoView
public void setViewerName(java.lang.String viewerName)
IPolyvVideoView
setViewerName
在接口中 IPolyvVideoView
viewerName
- 观众名称字符串public java.lang.String getViewerParam()
getViewerParam
在接口中 IPolyvVideoView
public void setViewerParam(java.lang.String viewerParam)
IPolyvVideoView
setViewerParam
在接口中 IPolyvVideoView
viewerParam
- 观众额外参数字符串public java.lang.String getViewLogParam1()
getViewLogParam1
在接口中 IPolyvVideoView
public void setViewLogParam1(java.lang.String viewLogParam1)
IPolyvVideoView
setViewLogParam1
在接口中 IPolyvVideoView
viewLogParam1
- 参数字符串public java.lang.String getViewLogParam2()
getViewLogParam2
在接口中 IPolyvVideoView
public void setViewLogParam2(java.lang.String viewLogParam2)
IPolyvVideoView
setViewLogParam2
在接口中 IPolyvVideoView
viewLogParam2
- 参数字符串public java.lang.String getViewLogParam3()
getViewLogParam3
在接口中 IPolyvVideoView
public void setViewLogParam3(java.lang.String viewLogParam3)
IPolyvVideoView
setViewLogParam3
在接口中 IPolyvVideoView
viewLogParam3
- 参数字符串public java.lang.String getViewLogParam4()
getViewLogParam4
在接口中 IPolyvVideoView
public void setViewLogParam4(java.lang.String viewLogParam4)
IPolyvVideoView
setViewLogParam4
在接口中 IPolyvVideoView
viewLogParam4
- 参数字符串public java.lang.String getViewLogParam5()
getViewLogParam5
在接口中 IPolyvVideoView
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
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(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.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
public 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(@NonNull android.view.View view)
IPolyvVideoView
setPlayerBufferingIndicator
在接口中 IPolyvVideoView
view
- 缓存视图public void setMediaBufferingIndicator(@NonNull 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 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 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)
@Deprecated public void setOnVideoPlayErrorLisener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEvent
@Deprecated public void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener l)
IPolyvVideoViewListenerEvent
public void setOnVideoPlayErrorListener(IPolyvOnVideoPlayErrorListener2 l)
IPolyvVideoViewListenerEvent
@Deprecated public void setOnCompletionListener(IPolyvOnCompletionListener l)
IPolyvVideoViewListenerEvent
IPolyvOnCompletionListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnCompletionListener(IPolyvOnCompletionListener2)
@Deprecated public void setOnPreparedListener(IPolyvOnPreparedListener l)
IPolyvVideoViewListenerEvent
IPolyvOnPreparedListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener2)
@Deprecated public void setOnErrorListener(IPolyvOnErrorListener l)
IPolyvVideoViewListenerEvent
IPolyvOnErrorListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnErrorListener(IPolyvOnErrorListener2)
@Deprecated public void setOnInfoListener(IPolyvOnInfoListener l)
IPolyvVideoViewListenerEvent
IPolyvOnInfoListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnInfoListener(IPolyvOnInfoListener2)
@Deprecated public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener l)
IPolyvVideoViewListenerEvent
IPolyvOnSeekCompleteListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2)
@Deprecated public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener l)
IPolyvVideoViewListenerEvent
IPolyvOnVideoSizeChangedListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2)
public void setOnVideoSRTListener(IPolyvOnVideoSRTListener l)
IPolyvVideoViewListenerEvent
@Deprecated public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener l)
IPolyvVideoViewListenerEvent
public void setOnAdvertisementOutListener(IPolyvOnAdvertisementOutListener2 l)
IPolyvVideoViewListenerEvent
public void setOnAdvertisementCountDownListener(IPolyvOnAdvertisementCountDownListener l)
IPolyvVideoViewListenerEvent
@Deprecated public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener l)
IPolyvVideoViewListenerEvent
public void setOnAdvertisementEventListener(IPolyvOnAdvertisementEventListener2 l)
IPolyvVideoViewListenerEvent
public void setOnTeaserOutListener(IPolyvOnTeaserOutListener l)
IPolyvVideoViewListenerEvent
public void setOnTeaserCountDownListener(IPolyvOnTeaserCountDownListener l)
IPolyvVideoViewListenerEvent
@Deprecated public void setOnQuestionOutListener(IPolyvOnQuestionOutListener l)
IPolyvVideoViewListenerEvent
public void setOnQuestionOutListener(IPolyvOnQuestionOutListener2 l)
IPolyvVideoViewListenerEvent
public void setOnQuestionAnswerTipsListener(IPolyvOnQuestionAnswerTipsListener l)
IPolyvVideoViewListenerEvent
@Deprecated public tv.danmaku.ijk.media.player.IMediaPlayer getMediaPlayer()
getMediaPlayer
在接口中 IPolyvIjkVideoView
public float getSpeed()
IPolyvIjkVideoView
getSpeed
在接口中 IPolyvIjkVideoView
public void destroy()
IPolyvVideoView
destroy
在接口中 IPolyvVideoView
public boolean changeSRT(@NonNull java.lang.String key)
IPolyvVideoView
changeSRT
在接口中 IPolyvVideoView
@Nullable public java.lang.String getCurrSRTKey()
IPolyvVideoView
getCurrSRTKey
在接口中 IPolyvVideoView
public void answerQuestion()
IPolyvVideoView
answerQuestion
在接口中 IPolyvVideoView
public void answerQuestion(@NonNull java.util.List<java.lang.Integer> indexList)
IPolyvVideoView
answerQuestion
在接口中 IPolyvVideoView
indexList
- 选中的下标列表,0开始public void answerQuestionFault()
IPolyvVideoView
answerQuestionFault
在接口中 IPolyvVideoView
public void skipQuestion()
IPolyvVideoView
skipQuestion
在接口中 IPolyvVideoView
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 void onActivityResume()
IPolyvVideoView
onActivityResume
在接口中 IPolyvVideoView
public boolean onActivityStop()
IPolyvVideoView
onActivityStop
在接口中 IPolyvVideoView
@Deprecated public void setOnCompletionListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnCompletionListener l)
IPolyvVideoViewListenerEvent
IMediaPlayer.OnCompletionListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnCompletionListener(IPolyvOnCompletionListener)
@Deprecated public void setOnErrorListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnErrorListener l)
IPolyvVideoViewListenerEvent
IMediaPlayer.OnErrorListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnErrorListener(IPolyvOnErrorListener)
@Deprecated public void setOnInfoListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnInfoListener l)
IPolyvVideoViewListenerEvent
IMediaPlayer.OnInfoListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnInfoListener(IPolyvOnInfoListener)
setOnInfoListener
在接口中 IPolyvIjkVideoView
setOnInfoListener
在接口中 IPolyvVideoViewListenerEvent
setOnInfoListener(IPolyvOnInfoListener)
@Deprecated public void setOnPreparedListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnPreparedListener l)
IPolyvVideoViewListenerEvent
IMediaPlayer.OnPreparedListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.setOnPreparedListener(IPolyvOnPreparedListener)
@Deprecated public void setOnBufferingUpdateListener(tv.danmaku.ijk.media.player.IMediaPlayer.OnBufferingUpdateListener l)
IPolyvVideoViewListenerEvent
IMediaPlayer.OnBufferingUpdateListener
回调方法中第一个参数对于外部并没有提供什么帮助,避免造成多余困扰,请使用 IPolyvVideoViewListenerEvent.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 setOnBufferingUpdateListener(IPolyvOnBufferingUpdateListener2 arg0)
IPolyvVideoViewListenerEvent
public void setOnPlayPauseListener(IPolyvOnPlayPauseListener arg0)
IPolyvVideoViewListenerEvent
public void setOnPreloadPlayListener(com.easefun.polyvsdk.video.listener.IPolyvOnPreloadPlayListener arg0)
IPolyvVideoViewListenerEvent
public void setOnVideoStatusListener(IPolyvOnVideoStatusListener arg0)
IPolyvVideoViewListenerEvent
public void setOnCompletionListener(IPolyvOnCompletionListener2 arg0)
IPolyvVideoViewListenerEvent
public void setOnPreparedListener(IPolyvOnPreparedListener2 arg0)
IPolyvVideoViewListenerEvent
public void setOnErrorListener(IPolyvOnErrorListener2 arg0)
IPolyvVideoViewListenerEvent
public void setOnInfoListener(IPolyvOnInfoListener2 arg0)
IPolyvVideoViewListenerEvent
public void setOnSeekCompleteListener(IPolyvOnSeekCompleteListener2 arg0)
IPolyvVideoViewListenerEvent
public void setOnVideoSizeChangedListener(IPolyvOnVideoSizeChangedListener2 arg0)
IPolyvVideoViewListenerEvent
public void setOnGestureLeftUpListener(IPolyvOnGestureLeftUpListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGestureLeftDownListener(IPolyvOnGestureLeftDownListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGestureRightUpListener(IPolyvOnGestureRightUpListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGestureRightDownListener(IPolyvOnGestureRightDownListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGestureSwipeLeftListener(IPolyvOnGestureSwipeLeftListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGestureSwipeRightListener(IPolyvOnGestureSwipeRightListener arg0)
IPolyvVideoViewListenerEvent
public void setOnGestureClickListener(IPolyvOnGestureClickListener arg0)
IPolyvVideoViewListenerEvent
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, 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()
IPolyvMediaPlayerControl
getDuration
在接口中 android.widget.MediaController.MediaPlayerControl
getDuration
在接口中 IPolyvMediaPlayerControl
public int getCurrentPosition()
IPolyvMediaPlayerControl
getCurrentPosition
在接口中 android.widget.MediaController.MediaPlayerControl
getCurrentPosition
在接口中 IPolyvMediaPlayerControl
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