2018-10-29 22:02:23 -07:00
|
|
|
/* @flow */
|
|
|
|
|
|
2016-10-05 09:36:59 -05:00
|
|
|
import React from 'react';
|
2018-07-25 14:46:51 -05:00
|
|
|
import { View } from 'react-native';
|
2019-03-21 17:38:29 +01:00
|
|
|
|
|
|
|
|
import { connect } from '../../../redux';
|
2017-06-05 13:00:02 -05:00
|
|
|
import AbstractVideoTrack from '../AbstractVideoTrack';
|
2018-10-29 22:02:23 -07:00
|
|
|
import type { Props } from '../AbstractVideoTrack';
|
2020-05-20 12:57:03 +02:00
|
|
|
|
2017-06-10 17:50:42 -05:00
|
|
|
import styles from './styles';
|
2016-10-05 09:36:59 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Component that renders video element for a specified video track.
|
|
|
|
|
*
|
|
|
|
|
* @extends AbstractVideoTrack
|
|
|
|
|
*/
|
2018-10-29 22:02:23 -07:00
|
|
|
class VideoTrack extends AbstractVideoTrack<Props> {
|
2016-10-05 09:36:59 -05:00
|
|
|
/**
|
2018-08-05 17:18:14 -05:00
|
|
|
* Renders the video element for the associated video track.
|
2016-10-05 09:36:59 -05:00
|
|
|
*
|
|
|
|
|
* @override
|
|
|
|
|
* @returns {ReactElement}
|
|
|
|
|
*/
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
2018-01-11 14:13:20 +01:00
|
|
|
<View style = { styles.video } >
|
2016-10-05 09:36:59 -05:00
|
|
|
{ super.render() }
|
2018-01-11 14:13:20 +01:00
|
|
|
</View>
|
2016-10-05 09:36:59 -05:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default connect()(VideoTrack);
|