Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions examples/react-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Examples for Fishjam client

- [Minimal React](./minimal-react/) - minimal example

- streaming the shared screen
- receiving media from other peers
- almost no UI

- [Fishjam Chat](./fishjam-chat) - example video chat app

- streaming camera, microphone and screen sharing
- displaying other peers video and audio
- applying blur middleware

- [Livestream viewer](./livestream-viewer) - example of viewing a live stream
- viewing a stream using a viewer token
- you can test your livestream with this example

- [Audio only](./audio-only) - example audio-only app

- streaming microphone only
- playing other peers' audio

- [Minimal Smelter](./minimal-smelter/) - example of integrating Fishjam with Smelter

- applying an example overlay on the camera stream with Smelter
- streaming the result to Fishjam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fishjam-example/broadcast-example",
"name": "@fishjam-example/livestream-viewer",
"private": true,
"version": "0.0.1",
"type": "module",
Expand Down
4 changes: 4 additions & 0 deletions examples/react-client/minimal-react/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const App = () => {
onChange={(e) => setToken(() => e?.target?.value)}
placeholder="token"
/>

<div style={{ display: "flex", flexDirection: "row", gap: "8px" }}>
<button
disabled={token === "" || peerStatus === "connected"}
Expand All @@ -45,6 +46,7 @@ export const App = () => {
>
Connect
</button>

<button
disabled={peerStatus !== "connected"}
onClick={() => {
Expand All @@ -53,6 +55,7 @@ export const App = () => {
>
Disconnect
</button>

<button
disabled={peerStatus !== "connected"}
onClick={async () => {
Expand All @@ -62,6 +65,7 @@ export const App = () => {
>
Start screen share
</button>

<span>Status: {peerStatus}</span>
</div>

Expand Down
28 changes: 0 additions & 28 deletions examples/react-client/readme.md

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions examples/react-client/use-camera-and-microphone/.eslintrc

This file was deleted.

25 changes: 0 additions & 25 deletions examples/react-client/use-camera-and-microphone/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions examples/react-client/use-camera-and-microphone/.prettierrc

This file was deleted.

22 changes: 0 additions & 22 deletions examples/react-client/use-camera-and-microphone/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions examples/react-client/use-camera-and-microphone/index.html

This file was deleted.

34 changes: 0 additions & 34 deletions examples/react-client/use-camera-and-microphone/package.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading