Skip to content

Commit

Permalink
clean spectator
Browse files Browse the repository at this point in the history
  • Loading branch information
leonitousconforti committed Sep 19, 2023
1 parent 3a52c68 commit 86f0120
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/spectator/src/components/WebRtcView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export const WebRtcView: React.FunctionComponent<IWebRtcViewProps> = ({ jsep, mu
jsep.startStream(onTrack).catch((error) => console.error(error));
}, [jsep]);

// useEffect(() => {
// if (!video.current) return;
// video.current.volume = volume;
// }, [volume]);
useEffect(() => {
if (!video.current) return;
video.current.volume = volume;
}, [volume]);

return (
<video
Expand Down
1 change: 1 addition & 0 deletions packages/spectator/src/services/Jsep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
import { JsepMsg } from "@tinyburg/architect/protobuf/rtc_service.js";
import { KeyboardEvent, MouseEvent, TouchEvent } from "@tinyburg/architect/protobuf/emulator_controller.js";

// JavaScript Session Establishment Protocol
// https://rtcweb-wg.github.io/jsep
export class JsepProtocol {
private readonly _rtcClient: IRtcClient;
Expand Down

0 comments on commit 86f0120

Please sign in to comment.