React native 反应本机视频字幕位置 {this.player=ref} source={{uri:this.state.url} 暂停={this.state.paused} style={this.state.isFullScreen?styles.videoFullScreen:styles.videoNormal} resizeMode=“包含” onLoad={this.videoOnLoad.bind(this)} onProgress={this.videoOnProgress.bind(this)} onEnd={this.videoOnEnd.bind(this)} onBuffer={this.onBuffer.bind(this)} textTracks={this.state.subtitles} 选定的文本跟踪={{ 键入:“标题”, 值:this.state.selectedTextTrack, 卷:{volume} }} />
这些是我在代码中使用的道具。我检查了文档中的文字轨迹位置,但找不到任何位置。文本轨迹的默认位置是顶部。我想在底部显示字幕。我怎么做?当前字幕的显示方式在下图中显示React native 反应本机视频字幕位置 {this.player=ref} source={{uri:this.state.url} 暂停={this.state.paused} style={this.state.isFullScreen?styles.videoFullScreen:styles.videoNormal} resizeMode=“包含” onLoad={this.videoOnLoad.bind(this)} onProgress={this.videoOnProgress.bind(this)} onEnd={this.videoOnEnd.bind(this)} onBuffer={this.onBuffer.bind(this)} textTracks={this.state.subtitles} 选定的文本跟踪={{ 键入:“标题”, 值:this.state.selectedTextTrack, 卷:{volume} }} />,react-native,react-native-video,React Native,React Native Video,这些是我在代码中使用的道具。我检查了文档中的文字轨迹位置,但找不到任何位置。文本轨迹的默认位置是顶部。我想在底部显示字幕。我怎么做?当前字幕的显示方式在下图中显示 <Video ref={(ref) => {this.player = ref }} source={{ uri: this.state.url}} paused={this.state
<Video
ref={(ref) => {this.player = ref }}
source={{ uri: this.state.url}}
paused={this.state.paused}
style={this.state.isFullScreen ? styles.videoFullScreen : styles.videoNormal}
resizeMode="contain"
onLoad={this.videoOnLoad.bind(this)}
onProgress={this.videoOnProgress.bind(this)}
onEnd={this.videoOnEnd.bind(this)}
onBuffer={this.onBuffer.bind(this)}
textTracks={this.state.subtitles}
selectedTextTrack={{
type: "title",
value: this.state.selectedTextTrack,
volume:{volume}
}}
/>