as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
这是一个React Native组件,该组件可在屏幕上呈现隐藏式字幕和字幕。仅在使用VideoPlayer和AudioPlayer组件在预缓冲模式下运行时才使用该组件。 应用通过调用setCaptionViewHandle函数将onCaptionViewCreated事件回调传递的隐藏式字幕句柄附加到VideoPlayer和AudioPlayer,以便播放器能够在屏幕上呈现隐藏式字幕或字幕。

扩展

  • React.Component

构造函数

new KeplerCaptionsView()

new KeplerCaptionsView(props): KeplerCaptionsView

参数

props
CaptionViewProps

返回值

KeplerCaptionsView

方法

componentDidMount()

componentDidMount(): void

componentWillUnmount()

componentWillUnmount(): void

render()

render(): React.ReactNode

返回值

React.ReactNode
最后修改于 2026年10月26日