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 812B

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