@@ -217,10 +217,16 @@ export default class CusVideo extends React.Component {
};
onError() {
- this.props.onError();
+ if (this.props.onEnd == undefined) {
+ } else {
+ this.props.onError();
+ }
}
onEnd() {
- this.props.onEnd();
+ this.props.onEnd();
play() {
//controller的play点击无法换图...