KeplerCaptionsView
KeplerCaptionsView
这是一个React Native组件,该组件可在屏幕上呈现隐藏式字幕和字幕。仅在使用VideoPlayer和AudioPlayer组件在预缓冲模式下运行时才使用该组件。
应用通过调用setCaptionViewHandle函数将onCaptionViewCreated事件回调传递的隐藏式字幕句柄附加到VideoPlayer和AudioPlayer,以便播放器能够在屏幕上呈现隐藏式字幕或字幕。
扩展
React.Component
构造函数
new KeplerCaptionsView()
new KeplerCaptionsView(
props): KeplerCaptionsView
参数
props
CaptionViewProps
返回值
方法
componentDidMount()
componentDidMount():
void
componentWillUnmount()
componentWillUnmount():
void
render()
render():
React.ReactNode
返回值
React.ReactNode
Last updated: 2026年7月31日

