2017-06-05 18:00:02 +00:00
|
|
|
/* @flow */
|
|
|
|
|
|
|
|
import AbstractAudio from '../AbstractAudio';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2017-06-05 18:00:02 +00:00
|
|
|
* The React Native/mobile {@link Component} which is similar to Web's
|
|
|
|
* {@code HTMLAudioElement} and wraps around react-native-webrtc's
|
|
|
|
* {@link RTCView}.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-06-05 18:00:02 +00:00
|
|
|
export default class Audio extends AbstractAudio {
|
2016-12-01 01:52:39 +00:00
|
|
|
/**
|
2017-06-05 18:00:02 +00:00
|
|
|
* {@code Audio} component's property types.
|
2016-12-01 01:52:39 +00:00
|
|
|
*
|
|
|
|
* @static
|
|
|
|
*/
|
2017-06-05 18:00:02 +00:00
|
|
|
static propTypes = AbstractAudio.propTypes;
|
2016-12-01 01:52:39 +00:00
|
|
|
|
2016-10-05 14:36:59 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {null}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
// TODO react-native-webrtc's RTCView doesn't do anything with the audio
|
|
|
|
// MediaStream specified to it so it's easier at the time of this
|
|
|
|
// writing to not render anything.
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|