2021-03-10 19:34:21 +01:00
|
|
|
// @flow
|
2021-03-16 21:59:31 +01:00
|
|
|
// import { BITWAVE_EMBED_URL } from 'constants/livestream';
|
2021-03-10 19:34:21 +01:00
|
|
|
import React from 'react';
|
2021-03-14 04:42:21 +01:00
|
|
|
import FileTitleSection from 'component/fileTitleSection';
|
2021-03-10 19:34:21 +01:00
|
|
|
import LivestreamComments from 'component/livestreamComments';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
uri: string,
|
|
|
|
claim: ?StreamClaim,
|
|
|
|
activeViewers: number,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function LivestreamLayout(props: Props) {
|
|
|
|
const { claim, uri, activeViewers } = props;
|
|
|
|
|
|
|
|
if (!claim) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<div className="section card-stack">
|
|
|
|
<div className="file-render file-render--video livestream">
|
|
|
|
<div className="file-viewer">
|
2021-03-16 21:59:31 +01:00
|
|
|
{/* <iframe src={`${BITWAVE_EMBED_URL}/${'doomtube'}?skin=odysee&autoplay=1`} scrolling="no" allowFullScreen /> */}
|
2021-03-10 19:34:21 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-03-14 04:42:21 +01:00
|
|
|
<FileTitleSection uri={uri} livestream activeViewers={activeViewers} />
|
2021-03-10 19:34:21 +01:00
|
|
|
</div>
|
|
|
|
<LivestreamComments uri={uri} />
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|