Skip to content

Commit

Permalink
Merge pull request #64 from cloudflare/Pull-fake-user-tracks
Browse files Browse the repository at this point in the history
Pull fake user tracks (for testing bandwidth)
  • Loading branch information
third774 authored Jul 12, 2024
2 parents e16df1b + 5d4b59c commit a4089a0
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions app/routes/_room.$roomName.room.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,23 @@ function JoinedRoom({ bugReportsEnabled }: { bugReportsEnabled: boolean }) {
userMedia.audioStreamTrack &&
userMedia.videoStreamTrack &&
fakeUsers.map((uid) => (
<Participant
user={identity}
isSelf
videoTrack={userMedia.videoStreamTrack}
audioTrack={userMedia.audioStreamTrack}
key={uid}
flipId={uid.toString()}
pinnedId={pinnedId}
setPinnedId={setPinnedId}
></Participant>
<PullVideoTrack
video={identity.tracks.video}
audio={identity.tracks.audio}
>
{({ videoTrack }) => (
<Participant
user={identity}
isSelf
videoTrack={videoTrack}
audioTrack={userMedia.audioStreamTrack}
key={uid}
flipId={uid.toString()}
pinnedId={pinnedId}
setPinnedId={setPinnedId}
></Participant>
)}
</PullVideoTrack>
))}
</div>
<Toast.Viewport />
Expand Down

0 comments on commit a4089a0

Please sign in to comment.