[Video] Method location rearrangement
This commit is contained in:
8
Video.js
8
Video.js
@@ -31,10 +31,6 @@ class Video extends Component {
|
|||||||
this._onEnd = this._onEnd.bind(this);
|
this._onEnd = this._onEnd.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
seek(time) {
|
|
||||||
this.setState({ seekTime: time });
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { seekTime } = this.state;
|
const { seekTime } = this.state;
|
||||||
const {
|
const {
|
||||||
@@ -82,6 +78,10 @@ class Video extends Component {
|
|||||||
return <RCTVideo ref={ref} {...nativeProps} />;
|
return <RCTVideo ref={ref} {...nativeProps} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
seek(time) {
|
||||||
|
this.setState({ seekTime: time });
|
||||||
|
}
|
||||||
|
|
||||||
_onLoadStart(event) {
|
_onLoadStart(event) {
|
||||||
this.props.onLoadStart && this.props.onLoadStart(event.nativeEvent);
|
this.props.onLoadStart && this.props.onLoadStart(event.nativeEvent);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user