A B C D E F G H I M N O P R S T U V W 
所有类 所有程序包

A

addListener(Player.PlayerListener) - 接口 中的方法com.ts.lib.player.Player
设置 播放器 listener
APPLICATION_AIT - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_CAMERA_MOTION - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_CEA608 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_CEA708 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_DVBSUBS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_EMSG - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_EXIF - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_ICY - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_ID3 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_M3U8 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_MATROSKA - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_MP4 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_MP4CEA608 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_MP4VTT - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_MPD - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_PGS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_RAWCC - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_RTSP - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_SCTE35 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_SS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_SUBRIP - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_TTML - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_TX3G - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_VOBSUB - 类 中的静态变量com.ts.lib.player.MimeTypes
 
APPLICATION_WEBM - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_AAC - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_AC3 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_AC4 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_ALAC - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_ALAW - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_AMR - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_AMR_NB - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_AMR_WB - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_DTS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_DTS_EXPRESS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_DTS_HD - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_DTS_X - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_E_AC3 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_E_AC3_JOC - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_FLAC - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MATROSKA - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MLAW - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MP4 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MPEG - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MPEG_L1 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MPEG_L2 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MPEGH_MHA1 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MPEGH_MHM1 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_MSGSM - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_OGG - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_OPUS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_RAW - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_TRUEHD - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_UNKNOWN - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_VORBIS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_WAV - 类 中的静态变量com.ts.lib.player.MimeTypes
 
AUDIO_WEBM - 类 中的静态变量com.ts.lib.player.MimeTypes
 

B

BASE_TYPE_APPLICATION - 类 中的静态变量com.ts.lib.player.MimeTypes
 
BASE_TYPE_AUDIO - 类 中的静态变量com.ts.lib.player.MimeTypes
 
BASE_TYPE_VIDEO - 类 中的静态变量com.ts.lib.player.MimeTypes
 
BasePlayer - com.ts.lib.player中的类
播放器基础抽象类
BasePlayer(TsPlayer.Builder) - 类 的构造器com.ts.lib.player.BasePlayer
 
bufferedPositionMs - 类 中的变量com.ts.lib.player.Player.PositionInfo
当前缓冲位置
build() - 类 中的方法com.ts.lib.player.MediaDataSource.Builder
生成媒体数据源只读对象
build() - 类 中的方法com.ts.lib.player.TsPlayer.Builder
构建播放器 优先级: 1.
Builder() - 类 的构造器com.ts.lib.player.MediaDataSource.Builder
 
Builder(Context) - 类 的构造器com.ts.lib.player.TsPlayer.Builder
播放器构造Builder
Builder(Context, LifecycleOwner) - 类 的构造器com.ts.lib.player.TsPlayer.Builder
播放器构造Builder
Builder(Context, LifecycleOwner, CacheProxyFactory) - 类 的构造器com.ts.lib.player.TsPlayer.Builder
播放器构造Builder
Builder(Context, CacheProxyFactory) - 类 的构造器com.ts.lib.player.TsPlayer.Builder
播放器构造Builder
buildTsExoPlayer() - 类 中的方法com.ts.lib.player.TsPlayer.Builder
构建以 ExoPlayer 作为播放引擎的播放器。
buildTsIjkPlayer() - 类 中的方法com.ts.lib.player.TsPlayer.Builder
构建以 IjkPlayer 作为播放引擎的播放器

C

clearVideoSurface() - 类 中的方法com.ts.lib.player.BasePlayer
 
clearVideoSurface() - 接口 中的方法com.ts.lib.player.Player.VideoSurface
clear 当前任何对player设置的 SurfaceSurfaceViewSurfaceTextureSurfaceHolderTextureView
clearVideoSurface(Surface) - 类 中的方法com.ts.lib.player.BasePlayer
 
clearVideoSurface(Surface) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
clearVideoSurfaceHolder(SurfaceHolder) - 类 中的方法com.ts.lib.player.BasePlayer
 
clearVideoSurfaceHolder(SurfaceHolder) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
clearVideoSurfaceView(SurfaceView) - 类 中的方法com.ts.lib.player.BasePlayer
 
clearVideoSurfaceView(SurfaceView) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
clearVideoTextureView(TextureView) - 类 中的方法com.ts.lib.player.BasePlayer
 
clearVideoTextureView(TextureView) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
CLOSEST_SYNC - 接口 中的静态变量com.ts.lib.player.Player
seek点最近关键帧
com.ts.lib.player - 程序包 com.ts.lib.player
 
CREATOR - 类 中的静态变量com.ts.lib.player.MediaDataSource
 
CREATOR - 类 中的静态变量com.ts.lib.player.MediaDataSource.PlaybackConfiguration
 
currentPositionMs - 类 中的变量com.ts.lib.player.Player.PositionInfo
当前播放位置

D

describeContents() - 类 中的方法com.ts.lib.player.MediaDataSource
 
describeContents() - 类 中的方法com.ts.lib.player.MediaDataSource.PlaybackConfiguration
 
durationMs - 类 中的变量com.ts.lib.player.Player.PositionInfo
总长度

E

enableCache() - 类 中的方法com.ts.lib.player.TsPlayer.Builder
开启网络视频缓存,边下边播。
equals(Object) - 类 中的方法com.ts.lib.player.MediaDataSource.PlaybackConfiguration
 
EXACT - 接口 中的静态变量com.ts.lib.player.Player
精准seek

F

formatBufferedTime() - 类 中的方法com.ts.lib.player.Player.PositionInfo
格式化已缓冲时间为 格式化总时长为 "MM:SS" or "H:MM:SS" 格式
formatCurrentPositionElapsedTime() - 类 中的方法com.ts.lib.player.Player.PositionInfo
格式化当前播放位置为 "MM:SS" or "H:MM:SS" 格式
formatDurationTime() - 类 中的方法com.ts.lib.player.Player.PositionInfo
格式化总时长为 "MM:SS" or "H:MM:SS" 格式
formatElapsedTime(long) - 类 中的方法com.ts.lib.player.Player.PositionInfo
格式化已过去的时间为 "MM:SS" or "H:MM:SS" 格式
fromUri(Uri) - 类 中的静态方法com.ts.lib.player.MediaDataSource
使用 Uri 的简单构建
fromUri(String) - 类 中的静态方法com.ts.lib.player.MediaDataSource
使用字符串的简单构建

G

getBufferedPercentage() - 类 中的方法com.ts.lib.player.Player.PositionInfo
已缓存百分比
getBufferedPosition() - 接口 中的方法com.ts.lib.player.Player
放回当前缓冲位置
getCurrentPosition() - 接口 中的方法com.ts.lib.player.Player
返回当前的播放位置
getDuration() - 接口 中的方法com.ts.lib.player.Player
获取媒体stream总时长,microseconds 微秒为单位
getIntervalTimeMs() - 类 中的方法com.ts.lib.player.Player.PositionInfo
播放进度回调时间间隔,默认 Player.PositionInfo.DEFAULT_INTERVAL
getPlayWhenReady() - 接口 中的方法com.ts.lib.player.Player
getRepeatMode() - 接口 中的方法com.ts.lib.player.Player
返回播放的 Player.RepeatMode
getSpeed() - 接口 中的方法com.ts.lib.player.Player
返回 Player.setSpeed(float) 设置的变速倍数 ⏩
getVolume() - 接口 中的方法com.ts.lib.player.Player
返回 Player.setVolume(float) 设置的volume 🔊

H

hashCode() - 类 中的方法com.ts.lib.player.MediaDataSource.PlaybackConfiguration
 
headers - 类 中的变量com.ts.lib.player.MediaDataSource.PlaybackConfiguration
媒体资源请求需携带 headers

I

isAudio(String) - 类 中的静态方法com.ts.lib.player.MimeTypes
 
isMatroska(String) - 类 中的静态方法com.ts.lib.player.MimeTypes
判断mimeType是否是一个 'Matroska MIME type', 比如: WebM
isPlaying() - 接口 中的方法com.ts.lib.player.Player
是否正在播放
isVideo(String) - 类 中的静态方法com.ts.lib.player.MimeTypes
 

M

MediaDataSource - com.ts.lib.player中的类
媒体数据源,注意:此数据源是一个记录配置对象,被构建之后,则为只读
MediaDataSource.Builder - com.ts.lib.player中的类
媒体数据源的构建类
MediaDataSource.PlaybackConfiguration - com.ts.lib.player中的类
播放配置
mimeType - 类 中的变量com.ts.lib.player.MediaDataSource.PlaybackConfiguration
资源 Mime Type
MimeTypes - com.ts.lib.player中的类
定义常用的 MIME types

N

NEXT_SYNC - 接口 中的静态变量com.ts.lib.player.Player
seek点后一个关键帧

O

onCompletion() - 接口 中的方法com.ts.lib.player.Player.PlayerListener
播放到结尾
onCreate(LifecycleOwner) - 类 中的方法com.ts.lib.player.BasePlayer
 
onDestroy(LifecycleOwner) - 类 中的方法com.ts.lib.player.BasePlayer
 
onError(int, String) - 接口 中的方法com.ts.lib.player.Player.PlayerListener
播放器发生错误时
onNetworkTypeChanged(int, String) - 接口 中的方法com.ts.lib.player.Player.PlayerListener
已过时。
onPause(LifecycleOwner) - 类 中的方法com.ts.lib.player.BasePlayer
 
onPrepared() - 接口 中的方法com.ts.lib.player.Player.PlayerListener
播放器ready,此后 可以使用播放器的一系列功能
onProgressChanged(Player.PositionInfo) - 接口 中的方法com.ts.lib.player.Player.PlayerListener
当前播放进度
onResume(LifecycleOwner) - 类 中的方法com.ts.lib.player.BasePlayer
 
onStart(LifecycleOwner) - 类 中的方法com.ts.lib.player.BasePlayer
 
onStop(LifecycleOwner) - 类 中的方法com.ts.lib.player.BasePlayer
 
onSurfaceAvailable(Surface, int, int) - 类 中的方法com.ts.lib.player.BasePlayer
 
onSurfaceChanged(int, int) - 类 中的方法com.ts.lib.player.BasePlayer
 
onVideoSizeChanged(VideoSize) - 接口 中的方法com.ts.lib.player.Player.PlayerListener
当前播放视频

P

pause() - 接口 中的方法com.ts.lib.player.Player
暂停播放 ⏸
play() - 接口 中的方法com.ts.lib.player.Player
开始播放 ▶ ,此方法等同于 setPlayWhenReady(true)
playbackConfiguration - 类 中的变量com.ts.lib.player.MediaDataSource
播放配置
PlaybackConfiguration(Uri, String, Map<String, String>) - 类 的构造器com.ts.lib.player.MediaDataSource.PlaybackConfiguration
 
Player - com.ts.lib.player中的接口
播放器功能接口定义,定义内外部需统一实现的功能接口
Player.PlayerListener - com.ts.lib.player中的接口
播放器事件监听器
Player.PositionInfo - com.ts.lib.player中的类
播放进度信息
Player.RepeatMode - com.ts.lib.player中的注释类型
 
Player.SeekType - com.ts.lib.player中的注释类型
 
Player.State - com.ts.lib.player中的注释类型
 
Player.VideoSurface - com.ts.lib.player中的接口
video渲染Surface相关接口
PositionInfo() - 类 的构造器com.ts.lib.player.Player.PositionInfo
 
prepare() - 接口 中的方法com.ts.lib.player.Player
播放器 ⏳ 准备播放,这是一个 async 操作
PREVIOUS_SYNC - 接口 中的静态变量com.ts.lib.player.Player
seek点前一个关键帧

R

release() - 类 中的方法com.ts.lib.player.BasePlayer
 
release() - 接口 中的方法com.ts.lib.player.Player
销毁播放器,释放所有资源,此方法调用后,player将不能再使用
removeListener(Player.PlayerListener) - 接口 中的方法com.ts.lib.player.Player
清除 播放器 listener
REPEAT_MODE_OFF - 接口 中的静态变量com.ts.lib.player.Player
无重复
REPEAT_MODE_ONE - 接口 中的静态变量com.ts.lib.player.Player
循环播放

S

seekTo(long) - 接口 中的方法com.ts.lib.player.Player
seek到当前播放媒体文件指定毫秒时间的位置
setCacheProxyFactory(CacheProxyFactory) - 类 中的方法com.ts.lib.player.TsPlayer.Builder
自己制定缓存代理
setDataSource(MediaDataSource) - 接口 中的方法com.ts.lib.player.Player
设置要播放的媒体数据源 🎞
setHeaders(Map<String, String>) - 类 中的方法com.ts.lib.player.MediaDataSource.Builder
请求数据时,需要携带的 request headers,没有则不用设置
setIntervalTimeMs(long) - 类 中的方法com.ts.lib.player.Player.PositionInfo
设置回调间隔时间
setLifecycleOwner(LifecycleOwner) - 类 中的方法com.ts.lib.player.TsPlayer.Builder
设置生命周期owner
setLooper(Looper) - 类 中的方法com.ts.lib.player.TsPlayer.Builder
设置player播放事件的回调所在的 Looper
setMimeType(String) - 类 中的方法com.ts.lib.player.MediaDataSource.Builder
如果 MediaDataSource.Builder.setUri(String) 设置的 uri 具有非标准扩展名或根本没有扩展名, 你才需要使用此方法明确设置uri的MIME type以指示媒体类型。
setPlayWhenReady(boolean) - 接口 中的方法com.ts.lib.player.Player
设置当播放状态为 在 prepared 之后,是否开始播放 ⏯ 1.
setRepeatMode(@com.ts.lib.player.Player.RepeatMode int) - 接口 中的方法com.ts.lib.player.Player
设置循环播放
setSeekType(int) - 接口 中的方法com.ts.lib.player.Player
设置seek类型,default 精准seek ,相当于参数: Player.EXACT
setSpeed(float) - 接口 中的方法com.ts.lib.player.Player
倍速播放 ⏩
setUri(Uri) - 类 中的方法com.ts.lib.player.MediaDataSource.Builder
使用 Uri设置媒体资源标识符
setUri(String) - 类 中的方法com.ts.lib.player.MediaDataSource.Builder
使用字符串设置媒体资源标识符
setVideoSurface(Surface, int, int, boolean) - 类 中的方法com.ts.lib.player.BasePlayer
 
setVideoSurface(Surface, int, int, boolean) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
设置一个有效的 Surface
setVideoSurfaceHolder(SurfaceHolder, int, int) - 类 中的方法com.ts.lib.player.BasePlayer
 
setVideoSurfaceHolder(SurfaceHolder, int, int) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
设置一个有效的 SurfaceHolder
setVideoSurfaceView(SurfaceView) - 类 中的方法com.ts.lib.player.BasePlayer
 
setVideoSurfaceView(SurfaceView) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
用来一个渲染视频的 SurfaceView
setVideoTextureView(TextureView) - 类 中的方法com.ts.lib.player.BasePlayer
 
setVideoTextureView(TextureView) - 接口 中的方法com.ts.lib.player.Player.VideoSurface
设置一个渲染视频的 TextureView
setVolume(float) - 接口 中的方法com.ts.lib.player.Player
设置播放音量 🔊
STATE_BUFFERING - 接口 中的静态变量com.ts.lib.player.Player
缓冲状态
STATE_ENDED - 接口 中的静态变量com.ts.lib.player.Player
播放结束的状态
STATE_IDLE - 接口 中的静态变量com.ts.lib.player.Player
未做任何播放
STATE_PAUSE - 接口 中的静态变量com.ts.lib.player.Player
暂停状态
STATE_PLAYING - 接口 中的静态变量com.ts.lib.player.Player
正在播放
STATE_PREPARED - 接口 中的静态变量com.ts.lib.player.Player
player prepared
STATE_READY - 接口 中的静态变量com.ts.lib.player.Player
ready所示可以play的状态
STATE_SEEKING - 接口 中的静态变量com.ts.lib.player.Player
正在seek
stop() - 接口 中的方法com.ts.lib.player.Player
停止 ⏹ ,建议使用 Player.pause()

T

toString() - 类 中的方法com.ts.lib.player.Player.PositionInfo
 
TsPlayer - com.ts.lib.player中的接口
User可访问的播放器对外接口,以及播放器的单独功能在此定义
TsPlayer.Builder - com.ts.lib.player中的类
播放器实例构建类

U

uri - 类 中的变量com.ts.lib.player.MediaDataSource.PlaybackConfiguration
媒体资源 uri

V

VIDEO_AV1 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_DIVX - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_DOLBY_VISION - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_FLV - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_H263 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_H264 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_H265 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_MATROSKA - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_MP2T - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_MP4 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_MP4V - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_MPEG - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_MPEG2 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_OGG - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_PS - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_UNKNOWN - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_VC1 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_VP8 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_VP9 - 类 中的静态变量com.ts.lib.player.MimeTypes
 
VIDEO_WEBM - 类 中的静态变量com.ts.lib.player.MimeTypes
 

W

writeToParcel(Parcel, int) - 类 中的方法com.ts.lib.player.MediaDataSource.PlaybackConfiguration
 
writeToParcel(Parcel, int) - 类 中的方法com.ts.lib.player.MediaDataSource
 
A B C D E F G H I M N O P R S T U V W 
所有类 所有程序包