您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

VideoTrack.js 769B

123456789101112131415161718192021222324252627282930313233
  1. /* @flow */
  2. import React from 'react';
  3. import { View } from 'react-native';
  4. import { connect } from 'react-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. // $FlowExpectedError
  29. export default connect()(VideoTrack);