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.

Audio.js 774B

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