Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸš€ fix:파일경둜 μˆ˜μ • #91

Merged
merged 10 commits into from
Sep 10, 2024
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function App() {
<Routes>
<Route path="/" element={<PeopleListPage />}></Route>
<Route path="/chat" element={<ChatPage />}></Route>
<Route path="/video" element={<RTCPage />}></Route>
<Route path="/video/:roomName" element={<RTCPage />}></Route>
<Route path="/list" element={<PeopleListPage />} />
<Route path="/details" element={<PeopleDetailPage />} />
<Route path="/login" element={<LoginPage />} />
Expand Down
4 changes: 3 additions & 1 deletion src/pages/WebRTC/VideoPage.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import React, { useEffect, useRef } from "react";
import { useParams } from "react-router-dom";
import Layout from "../../components/Common/Layout";
import * as S from "./style";
import { io } from "socket.io-client";
import MiniLayout from "../../components/Common/miniLayout";

const RTCPage = () => {
const params = useParams();
const socketRef = useRef(null);
const myVideoRef = useRef(null);
const remoteVideoRef = useRef(null);
const pcRef = useRef(null);
const roomName = "testRoom"; // You can dynamically generate or pass this
const roomName = params.roomName; // You can dynamically generate or pass this

const getMedia = async () => {
try {
Expand Down
Loading