Loading Video.js +9 −1 Changes for Video.js: 9 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ class Video extends Component { this._onEnd = this._onEnd.bind(this); } setNativeProps(nativeProps) { this._root.setNativeProps(nativeProps); } render() { const { seekTime } = this.state; const { Loading Loading @@ -75,7 +79,11 @@ class Video extends Component { onVideoEnd: this._onEnd, }); return <RCTVideo ref={ref} {...nativeProps} />; return ( <RCTVideo ref={ component => this._root = component } {...nativeProps} /> ); } seek(time) { Loading Loading
Video.js +9 −1 Changes for Video.js: 9 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ class Video extends Component { this._onEnd = this._onEnd.bind(this); } setNativeProps(nativeProps) { this._root.setNativeProps(nativeProps); } render() { const { seekTime } = this.state; const { Loading Loading @@ -75,7 +79,11 @@ class Video extends Component { onVideoEnd: this._onEnd, }); return <RCTVideo ref={ref} {...nativeProps} />; return ( <RCTVideo ref={ component => this._root = component } {...nativeProps} /> ); } seek(time) { Loading