From 54a0f16c18d089a35c7a0b03c0125701dae15f8e Mon Sep 17 00:00:00 2001 From: Tainan Felipe <tainanfelipe214@gmail.com> Date: Tue, 15 May 2018 11:56:53 -0300 Subject: [PATCH] Rename function to onVideoLoad --- .../imports/ui/components/screenshare/component.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/screenshare/component.jsx b/bigbluebutton-html5/imports/ui/components/screenshare/component.jsx index ca80dc22c3..433e6adeb0 100755 --- a/bigbluebutton-html5/imports/ui/components/screenshare/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/screenshare/component.jsx @@ -9,7 +9,7 @@ export default class ScreenshareComponent extends React.Component { loaded: false, }; - this.hideConnectingIcon = this.hideConnectingIcon.bind(this); + this.onVideoLoad = this.onVideoLoad.bind(this); } componentDidMount() { this.props.presenterScreenshareHasStarted(); @@ -23,14 +23,14 @@ export default class ScreenshareComponent extends React.Component { this.props.presenterScreenshareHasEnded(); this.props.unshareScreen(); } - hideConnectingIcon() { + onVideoLoad() { this.setState({ loaded: true }); } render() { return ( [!this.state.loaded ? (<div className={styles.connecting} />) : null, - (<video id="screenshareVideo" style={{ maxHeight: '100%', width: '100%' }} autoPlay playsInline onLoadedData={this.hideConnectingIcon} />)] + (<video id="screenshareVideo" style={{ maxHeight: '100%', width: '100%' }} autoPlay playsInline onLoadedData={this.onVideoLoad} />)] ); } } -- GitLab