small changes to video view

This commit is contained in:
talksik
2022-05-20 08:07:17 -05:00
parent 19a35307f6
commit 704ae7364d
2 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -42,8 +42,8 @@
[
"@electron-forge/plugin-webpack",
{
"port": "4080",
"loggerPort": "9010",
"port": "4000",
"loggerPort": "9000",
"mainConfig": "./webpack.main.config.js",
"devContentSecurityPolicy": "connect-src 'self' http://localhost:5000 ws://localhost:5000 https://api.quotable.io/random 'unsafe-eval'",
"renderer": {
@@ -111,6 +111,11 @@ export default function LineDetails() {
className="flex-1 flex flex-col justify-start items-center
gap-2 p-5 mx-auto max-w-lg w-full"
>
<span className="flex flex-row gap-2 items-center mx-auto text-center mt-5 text-teal-500">
<FiSun />
<span>Right now</span>
</span>
{Object.keys(peerMap).map((lineId, index) => {
if (lineId !== selectedLine.lineDetails._id.toString()) return <></>;
@@ -177,17 +182,14 @@ function StreamPlayer({ peerStream }: { peerStream: MediaStream }) {
}, [peerStream]);
return (
<>
this is a stream component of one remote peer
<video
ref={streamRef}
height={400}
width={400}
className={'shadow-xl rounded'}
autoPlay
muted
/>
</>
<video
ref={streamRef}
height={350}
width={400}
className={'shadow-xl rounded'}
autoPlay
muted
/>
);
}