mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-04-07 11:20:19 +00:00
As an intermediate step on the path to merging jitsi-meet and
jitsi-meet-react, import the whole source code of jitsi-meet-react as it
stands at
2f23d98424
i.e. the lastest master at the time of this import. No modifications are
applied to the imported source code in order to preserve a complete
snapshot of it in the repository of jitsi-meet and, thus, facilitate
comparison later on. Consequently, the source code of jitsi-meet and/or
jitsi-meet-react may not work. For example, jitsi-meet's jshint may be
unable to parse jitsi-meet-react's source code.
61 lines
1.2 KiB
JavaScript
61 lines
1.2 KiB
JavaScript
import React, { Component } from 'react';
|
|
import { connect } from 'react-redux';
|
|
|
|
import { ParticipantView } from '../../conference';
|
|
|
|
import { styles } from './styles';
|
|
|
|
/**
|
|
* Large video React component.
|
|
*
|
|
* @extends Component
|
|
*/
|
|
class LargeVideo extends Component {
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (
|
|
<ParticipantView
|
|
avatarStyle = { styles.avatar }
|
|
participantId = { this.props._participantId }
|
|
style = { styles.largeVideo }
|
|
zOrder = { 0 } />
|
|
);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* LargeVideo component's property types.
|
|
*
|
|
* @static
|
|
*/
|
|
LargeVideo.propTypes = {
|
|
|
|
/**
|
|
* The ID of the participant (to be) depicted by LargeVideo.
|
|
*
|
|
* @private
|
|
*/
|
|
_participantId: React.PropTypes.string
|
|
};
|
|
|
|
/**
|
|
* Maps (parts of) the Redux state to the associated LargeVideo's props.
|
|
*
|
|
* @param {Object} state - Redux state.
|
|
* @returns {{
|
|
* _participantId: string
|
|
* }}
|
|
*/
|
|
function mapStateToProps(state) {
|
|
return {
|
|
_participantId: state['features/largeVideo'].participantId
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(LargeVideo);
|