Skip to content

Commit

Permalink
Add rtmp prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv committed Apr 1, 2022
1 parent 8cbdd50 commit f95f259
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/components/clientsideonly/jitsibroadcaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const JitsiMeeting = dynamic(

const rtmp = process.env.NEXT_PUBLIC_ROCKET_CHAT_GREENROOM_RTMP;

const Jitsibroadcaster = ({room, disName}) => {
const Jitsibroadcaster = ({room, disName, rtmpSrc}) => {
const apiRef = useRef();
const [logItems, updateLog] = useState([]);
const [knockingParticipants, updateKnockingParticipants] = useState([]);
Expand Down Expand Up @@ -240,7 +240,7 @@ const Jitsibroadcaster = ({room, disName}) => {
ref.current.executeCommand("setTileView", true);
};

const renderStream = () => (
const renderStream = (key) => (
<div style={{ margin: "15px 0" }}>
<div
style={{
Expand All @@ -255,7 +255,7 @@ const Jitsibroadcaster = ({room, disName}) => {
onClick={() =>
apiRef.current.executeCommand("startRecording", {
mode: "stream",
rtmpStreamKey: rtmp,
rtmpStreamKey: key,
youtubeStreamKey: "",
})
}
Expand Down Expand Up @@ -366,7 +366,7 @@ const Jitsibroadcaster = ({room, disName}) => {
textAlign: "center",
}}
></h1>
{rtmp && renderStream()}
{rtmp ? renderStream(rtmp) : rtmpSrc && renderStream(rtmpSrc)}
<JitsiMeeting
domain="meet.jit.si"
roomName = {room}
Expand Down

0 comments on commit f95f259

Please sign in to comment.