mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 23:27:47 +00:00
Introduce certain React Components which may be used to write cross-platform source code such as Audio like Web's audio, Container like Web's div, Text like Web's p, etc.
27 lines
595 B
JavaScript
27 lines
595 B
JavaScript
/* @flow */
|
|
|
|
import AbstractAudio from '../AbstractAudio';
|
|
|
|
/**
|
|
* The React/Web {@link Component} which is similar to and wraps around
|
|
* {@code HTMLAudioElement} in order to facilitate cross-platform source code.
|
|
*/
|
|
export default class Audio extends AbstractAudio {
|
|
/**
|
|
* {@code Audio} component's property types.
|
|
*
|
|
* @static
|
|
*/
|
|
static propTypes = AbstractAudio.propTypes;
|
|
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return super._render('audio');
|
|
}
|
|
}
|