You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VideoTrack.js 751B

123456789101112131415161718192021222324252627282930313233
  1. /* @flow */
  2. import React from 'react';
  3. import { View } from 'react-native';
  4. import { connect } from '../../../redux';
  5. import AbstractVideoTrack from '../AbstractVideoTrack';
  6. import type { Props } from '../AbstractVideoTrack';
  7. import styles from './styles';
  8. /**
  9. * Component that renders video element for a specified video track.
  10. *
  11. * @extends AbstractVideoTrack
  12. */
  13. class VideoTrack extends AbstractVideoTrack<Props> {
  14. /**
  15. * Renders the video element for the associated video track.
  16. *
  17. * @override
  18. * @returns {ReactElement}
  19. */
  20. render() {
  21. return (
  22. <View style = { styles.video } >
  23. { super.render() }
  24. </View>
  25. );
  26. }
  27. }
  28. export default connect()(VideoTrack);