2021-05-25 01:05:39 +08:00
|
|
|
import React from 'react';
|
2021-06-22 04:16:59 +08:00
|
|
|
import VideoProviderContainer from '/imports/ui/components/video-provider/container';
|
2021-05-25 01:05:39 +08:00
|
|
|
|
2021-06-22 04:16:59 +08:00
|
|
|
const WebcamComponent = ({
|
|
|
|
cameraDockBounds,
|
|
|
|
swapLayout,
|
|
|
|
}) => (
|
2021-05-25 01:05:39 +08:00
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
position: 'absolute',
|
|
|
|
top: cameraDockBounds.top,
|
|
|
|
left: cameraDockBounds.left,
|
|
|
|
width: cameraDockBounds.width,
|
|
|
|
height: cameraDockBounds.height,
|
|
|
|
backgroundColor: 'red',
|
|
|
|
}}
|
|
|
|
>
|
2021-06-22 04:16:59 +08:00
|
|
|
<VideoProviderContainer
|
|
|
|
{...{
|
|
|
|
swapLayout,
|
|
|
|
cameraDockBounds,
|
|
|
|
}}
|
|
|
|
/>
|
2021-05-25 01:05:39 +08:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default WebcamComponent;
|