react-native-video-bilibili
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "react-native-video-bilibili", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "react-native-video二次开发视频播放器,交互设计参考bilibili", | ||
@@ -5,0 +5,0 @@ "main": "videoPlayer.js", |
@@ -221,3 +221,5 @@ import React from 'react' | ||
}); | ||
this.props.onLoad(e) | ||
if(this.props.onLoad){ | ||
this.props.onLoad(e) | ||
} | ||
}; | ||
@@ -227,3 +229,5 @@ | ||
this.setState({error:e}); | ||
this.props.onError(e) | ||
if(this.props.onError){ | ||
this.props.onError(e) | ||
} | ||
}; | ||
@@ -233,3 +237,5 @@ | ||
this.setState({isBuffering:e.isBuffering,error:undefined}); | ||
this.props.onBuffer(e) | ||
if(this.props.onBuffer){ | ||
this.props.onBuffer(e) | ||
} | ||
}; | ||
@@ -240,3 +246,5 @@ | ||
this.setState({playableDuration:e.playableDuration,isBuffering:false,error:undefined}); | ||
this.props.onProgress(e) | ||
if(this.props.onProgress){ | ||
this.props.onProgress(e) | ||
} | ||
}; | ||
@@ -243,0 +251,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64869
783