|
@@ -244,6 +244,7 @@ export default class CusVideo extends React.Component {
|
|
|
}
|
|
|
|
|
|
this.props.videofullScreenPlayer();
|
|
|
+ this.seekbar.setProgress(this.state.currentTime);
|
|
|
}
|
|
|
touch_up_callback(progress) {
|
|
|
//抬起之后,获取算出来的progress
|
|
@@ -351,3 +352,21 @@ class VideoBack extends Component {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ 使用方法
|
|
|
+ <CusVideo
|
|
|
+ uri={this.state.video_uri}
|
|
|
+ ref={view => (this.video = view)}
|
|
|
+ needback={true} //(是否需要小窗口的返回按钮)
|
|
|
+ videoback={this.clickVideoBack.bind(this)}//(小窗口返回按钮的事件)
|
|
|
+ videofullScreenPlayer={this.fullScreenPlayer.bind(this)}//(点击全屏按钮的事件)
|
|
|
+ style={{
|
|
|
+ flex: this.state.video_flex,
|
|
|
+ width: this.state.video_width,
|
|
|
+ height: this.state.video_height
|
|
|
+ }}
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ */
|