{!switched
&& ScreenshareComponent.renderScreenshareContainerInside(
intl.formatMessage(this.locales.presenterSharingLabel),
)}
)
: ScreenshareComponent.renderScreenshareContainerInside(
intl.formatMessage(this.locales.presenterLoadingLabel),
)
}
>
);
}
renderScreenshareDefault() {
const { intl, enableVolumeControl } = this.props;
const { loaded } = this.state;
return (
<>
{this.renderVideo(true)}
{loaded && enableVolumeControl && this.renderVolumeSlider() }
{(shouldRenderConnectingState)
&& (
)}
{autoplayBlocked ? this.renderAutoplayOverlay() : null}
{
this.screenshareContainer = ref;
}}
id="screenshareContainer"
>
{this.renderScreenshareButtons()}
{isPresenter
? this.renderScreensharePresenter()
: this.renderScreenshareDefault()}
);
}
}
export default injectIntl(ScreenshareComponent);
ScreenshareComponent.propTypes = {
intl: PropTypes.shape({
formatMessage: PropTypes.func.isRequired,
}).isRequired,
pluginScreenshareHelperItems: PropTypes.arrayOf(PropTypes.objectOf({
position: PropTypes.string,
})).isRequired,
isPresenter: PropTypes.bool.isRequired,
layoutContextDispatch: PropTypes.func.isRequired,
enableVolumeControl: PropTypes.bool.isRequired,
outputDeviceId: PropTypes.string,
};