mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 19:47:46 +00:00
We seemed to be using the names "film strip" and "filmstrip" (and, consequently, their source code-conscious forms such as film-strip, FilmStrip, etc.) In order to comply with our coding style which requires a consistent one name for a given abstraction, choose one name and rename the uses of the other name. Wikipedia has a definition of a "filmstrip", I couldn't find a "film strip". I guess our abstraction can be seen as what's described there. When I google "film strip", I get results about "filmstrip" at the top. That's why I chose "filmstrip". Certain uses of "film strip" such as interfaceConfig.filmStripOnly and in the external API I left untouched in an attempt to preserve compatibility. I wasn't sure whether CSS was tangled in compatibility so I made a choice and renamed there was well.
69 lines
2.0 KiB
JavaScript
69 lines
2.0 KiB
JavaScript
import React, { Component } from 'react';
|
|
|
|
import { translate, translateToHTML } from '../../base/i18n';
|
|
|
|
import FilmstripOnlyOverlayFrame from './FilmstripOnlyOverlayFrame';
|
|
|
|
/**
|
|
* Implements a React Component for overlay with guidance how to proceed with
|
|
* gUM prompt. This component will be displayed only for filmstrip only mode.
|
|
*/
|
|
class UserMediaPermissionsFilmstripOnlyOverlay extends Component {
|
|
/**
|
|
* UserMediaPermissionsFilmstripOnlyOverlay component's property types.
|
|
*
|
|
* @static
|
|
*/
|
|
static propTypes = {
|
|
/**
|
|
* The browser which is used currently. The text is different for every
|
|
* browser.
|
|
*
|
|
* @public
|
|
* @type {string}
|
|
*/
|
|
browser: React.PropTypes.string,
|
|
|
|
/**
|
|
* The function to translate human-readable text.
|
|
*
|
|
* @public
|
|
* @type {Function}
|
|
*/
|
|
t: React.PropTypes.func
|
|
}
|
|
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement|null}
|
|
*/
|
|
render() {
|
|
const { t } = this.props;
|
|
const textKey = `userMedia.${this.props.browser}GrantPermissions`;
|
|
|
|
return (
|
|
<FilmstripOnlyOverlayFrame
|
|
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>
|
|
</FilmstripOnlyOverlayFrame>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default translate(UserMediaPermissionsFilmstripOnlyOverlay);
|