jiti-meet/react/features/base/media/components/native/VideoTrack.js

34 lines
752 B
JavaScript
Raw Normal View History

/* @flow */
import React from 'react';
import { View } from 'react-native';
2019-03-21 16:38:29 +00:00
import { connect } from '../../../redux';
import AbstractVideoTrack from '../AbstractVideoTrack';
import type { Props } from '../AbstractVideoTrack';
2020-05-20 10:57:03 +00:00
import styles from './styles';
/**
* Component that renders video element for a specified video track.
*
2021-11-04 21:10:43 +00:00
* @augments AbstractVideoTrack
*/
class VideoTrack extends AbstractVideoTrack<Props> {
/**
2018-08-05 22:18:14 +00:00
* Renders the video element for the associated video track.
*
* @override
* @returns {ReactElement}
*/
render() {
return (
<View style = { styles.video } >
{ super.render() }
</View>
);
}
}
export default connect()(VideoTrack);