19 lines
418 B
React
19 lines
418 B
React
// Metro module 4293 (f4294).
|
|
import Video from "./Video";
|
|
const Camera = function Camera(props) {
|
|
const { disabled, deviceId, width, height } = props;
|
|
return disabled ? <div className="media-engine-video" style={{
|
|
width,
|
|
height
|
|
}} /> : <Video streamId={deviceId} style={{
|
|
width,
|
|
height
|
|
}} />;
|
|
};
|
|
Camera.defaultProps = {
|
|
disabled: false,
|
|
width: 320,
|
|
height: 180
|
|
};
|
|
export default Camera;
|