2019-04-09 11:05:20 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-11-09 13:34:42 +00:00
|
|
|
import React from 'react';
|
2017-03-09 00:16:53 +00:00
|
|
|
|
2019-04-09 11:05:20 +00:00
|
|
|
import { translate, translateToHTML } from '../../../base/i18n';
|
|
|
|
import { connect } from '../../../base/redux';
|
2017-03-09 00:16:53 +00:00
|
|
|
|
2017-11-09 13:34:42 +00:00
|
|
|
import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps }
|
|
|
|
from './AbstractUserMediaPermissionsOverlay';
|
2017-04-10 17:59:44 +00:00
|
|
|
import FilmstripOnlyOverlayFrame from './FilmstripOnlyOverlayFrame';
|
2017-03-09 00:16:53 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements a React Component for overlay with guidance how to proceed with
|
|
|
|
* gUM prompt. This component will be displayed only for filmstrip only mode.
|
|
|
|
*/
|
2017-11-09 13:34:42 +00:00
|
|
|
class UserMediaPermissionsFilmstripOnlyOverlay
|
|
|
|
extends AbstractUserMediaPermissionsOverlay {
|
2017-11-27 22:08:12 +00:00
|
|
|
|
2017-03-09 00:16:53 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
2017-11-27 22:08:12 +00:00
|
|
|
* @returns {ReactElement}
|
2017-03-09 00:16:53 +00:00
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
const { t } = this.props;
|
|
|
|
const textKey = `userMedia.${this.props.browser}GrantPermissions`;
|
|
|
|
|
|
|
|
return (
|
2017-04-10 17:59:44 +00:00
|
|
|
<FilmstripOnlyOverlayFrame
|
2017-03-09 00:16:53 +00:00
|
|
|
icon = 'icon-mic-camera-combined'
|
|
|
|
isLightOverlay = { true }>
|
|
|
|
<div className = 'inlay-filmstrip-only__container'>
|
|
|
|
<div className = 'inlay-filmstrip-only__title'>
|
|
|
|
{
|
|
|
|
t('startupoverlay.title',
|
|
|
|
{ postProcess: 'resolveAppName' })
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
<div className = 'inlay-filmstrip-only__text'>
|
|
|
|
{
|
|
|
|
translateToHTML(t, textKey)
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-10 17:59:44 +00:00
|
|
|
</FilmstripOnlyOverlayFrame>
|
2017-03-09 00:16:53 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-09 13:34:42 +00:00
|
|
|
export default translate(
|
|
|
|
connect(abstractMapStateToProps)(UserMediaPermissionsFilmstripOnlyOverlay));
|