Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <PRE>
  2. _onEnd() {
  3. // This onEnd after the implementation of the onProgress did not stop how the onEnd after the implementation of the onProgress also stop execution?
  4. // The 'volume' seems to be set up but does not work
  5. console.log('is end?');
  6. this.setState({
  7. videoProgress:1,
  8. playing: false
  9. })
  10. <Video
  11. ref="videoPlayer"
  12. source={{
  13. uri: data.video
  14. }}
  15. style={styles.video}
  16. volume={10.0}
  17. paused={this.state.paused}
  18. rate={this.state.rate}
  19. muted={this.state.muted}
  20. resizeMode={this.state.resizeMode}
  21. repeat={this.state.repeat}
  22. onLoadStart={this._onLoadStart}
  23. onLoad={this._onLoad}
  24. onProgress={this._onProgress}
  25. onEnd={this._onEnd}
  26. onError={this._onError}
  27. />
  28. }
  29. </ PRE>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement