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

Audio.js 723B

123456789101112131415161718192021222324252627282930
  1. import React, { Component } from 'react';
  2. /**
  3. * The React Native component which is similar to Web's audio element and wraps
  4. * around react-native-webrtc's RTCView.
  5. */
  6. export class Audio extends Component {
  7. /**
  8. * Implements React's {@link Component#render()}.
  9. *
  10. * @inheritdoc
  11. * @returns {null}
  12. */
  13. render() {
  14. // TODO react-native-webrtc's RTCView doesn't do anything with the audio
  15. // MediaStream specified to it so it's easier at the time of this
  16. // writing to not render anything.
  17. return null;
  18. }
  19. }
  20. /**
  21. * Audio component's property types.
  22. *
  23. * @static
  24. */
  25. Audio.propTypes = {
  26. muted: React.PropTypes.bool,
  27. stream: React.PropTypes.object
  28. };