Skip to main content
Version: 0.6.3

The Whats and Hows of Fishjam Dashboard

What is Fishjam Dashboard?

Fishjam Dashboard is a web application that allows you to manage your Fishjam Media Server instance. It is a React application that uses the Fishjam React Client API for adding and receiving tracks and Fishjam Server API for adding peers, creating rooms etc.

It was created to help Fishjam developers in testing but was later extended and adapted as a tool for tutorials and demos. Here, we present a short introduction to the dashboard and its features.

How to start Fishjam Dashboard?

There are a couple of ways to start the dashboard:

The current version of the dashboard is ready to use and available here. Ensure that it is compatible with your Fishjam server! Please note that this dashboard only supports secure connections (https/wss) or connections to localhost. Any insecure requests (http/ws) will be automatically blocked by the browser.

How to start Fishjam Media Server?

For testing, we'll run the Fishjam Media Server locally using Docker image:

docker run -p 50000-50050:50000-50050/udp \
-p 5002:5002/tcp \
-e FJ_CHECK_ORIGIN=false \
-e FJ_HOST=<your ip address>:5002 \
-e FJ_PORT="5002" \
-e FJ_WEBRTC_USED=true \
-e FJ_WEBRTC_TURN_PORT_RANGE=50000-50050 \
-e FJ_WEBRTC_TURN_IP=<your ip address> \
-e FJ_SERVER_API_TOKEN=development \

Make sure to set FJ_WEBRTC_TURN_IP and FJ_HOST to your local IP address. Without it, the mobile device won't be able to connect to the Fishjam.


To check your local IP you can use this handy command (Linux/macOS):

ifconfig | grep "inet " | grep -Fv | awk '{print $2}'

How to use Fishjam Dashboard?

Since we have Dashboard and Fishjam Media Server up and running, we can dive into the features.

Connecting to the server

We started the dashboard and the Fishjam Media Server separately, so we need to connect them.

  1. Open the dashboard in your browser. Open the side menu and fill in the parameters:

Dashboard server connection

  • Server token - a token necessary to authenticate the dashboard with the Fishjam. For now, it's simply development, but it is meant to authenticate the dashboard to the Fishjam, so the good practice is to use a token that is hard to guess.
  • WS/WSS - whether to use a secure or insecure connection. , it's ws, but if the Fishjam uses secure WebSocket, use wss.
  • HTTP/HTTPS - whether to use a secure or insecure connection. By default, it's http, but if the Fishjam uses secure HTTP, use https.
  • Server URL - URL of the Fishjam server. Here, localhost:5002 would be a local build, but it can be any URL that points to the Fishjam.
  • Socket Path - path to the WebSocket endpoint. The default value is /socket/peer/websocket.
  1. Click Connect to server. If everything is correct, a server will appear in the list of connected servers:

Connected dashboard

Creating a room

There are plenty of settings that You can adjust in a room:

Adding Room

  • h264 or vp8 - video codec used in the room. If you want to use HLS streaming, you need to use h264.
  • Max Peers - maximum number of peers that can join to the room.

When you select the settings, click the Add room button. If everything is correct, a room will appear in the list of rooms:

Room added

Adding and connecting peers to the room

Using the Create peer button, you can create a peer that will be ready to connect to the room.

Peer created

The peer has its ID and Token. The ID is used to identify the peer in the Fishjam Server, and the Token is used to authenticate the peer with the Fishjam Server.

Dashboard has an option to copy both of those values to the clipboard. You can also create a QR code with the peer's Token to make connecting to Fishjam with a mobile device easier.

Peer copied

To connect the peer to the room, you can either press the Connect button in the peer's row, or scan the QR code with your mobile app, and connect there.

Sending tracks

When the peer connects to the room, you will see the track menu. It allows you to send tracks to the room.

Track menu

You can select the audio or video track you want to create. Created tracks will be visible in the list below. You can select any track from the list and send it to the room. Apart from your camera/microphone, you can easily share your screen with its audio or pick one from a list of mock tracks that we prepared.

You can also select the resolution of the video track or if you want, send the video as a simulcast stream.

There is also an option to add custom metadata (in JSON format) to the track. The peer will send metadata with the track to the room. Each recipient will be able to see it.

When you select the track, click the Add track button. If everything is correct, client will send the track to the room and other peers will be able to see and hear you.

Receiving tracks

When the peer connects to the room, it will automatically receive tracks from other peers.

Congrats! The basic utils of the dashboard are now covered. Next, we will dive into useful features that will help you with testing.

A ton of information that the dashboard provides

Server logs in console

On the side menu, you can set up the dashboard to display React Client logs in the console. Logs are great for debugging purposes and provide insight into the various communications that occur between the dashboard and the Fishjam Server. You can also register your event handlers in your Fishjam-based projects, both in the React Client SDK and theTS Client SDK. These logs can show you when particular events occur and provide data that you can use in your own handlers

Server logsServer logs

Server/Room/Client state

Each server, room, and client has its state. You can see the state of each of them in the dashboard by clicking appropriate buttons.

Server state

Server events

Apart from the state, you can also see the events that occur on the server.

You can see them after clicking the Show Server Events button.

Server events

HLS and RTSP streaming

The dashboard allows adding HLS and RTSP streams in the room. You can set up the streams and see them in the room. It will look like this:


Loadbalancing in Dashboard

Fishjam Server supports load balancing. This means you can run multiple instances of the server and use them simultaneously to distribute the load evenly among them. The dashboard reflects this feature. If you run multiple Fishjam instances (which Docker Compose does by default), connect one server to the dashboard. When a server opens a room on a different instance, the Dashboard will automatically connect to it and display the room. When Fishjam runs in a cluster, and the Dashboard requests a new room, it's created on the Fishjam instance with the lowest load. Information about the specific Fishjam instance that hosts the newly created room is returned in the HTTP response body.

Data collected by Fishjam

For each server, Fishjam collects WebRTC statistics about the rooms, clients and streamed tracks. You can see them in the dashboard using the Internals button.

Internals button

The button opens a new tab with the panel to connect to the WebSocket of the Fishjam of choice. You can observe the data with the dynamically generated charts showing what flows through the Fishjam.



Congrats on finishing the tutorial! You should now be able to use the dashboard to its full potential.

But this was just the beginning. Fishjam Client API is a powerful tool that allows you to create your own web or mobile multimedia application. Check out the other tutorials to learn more about the Fishjam Client API and how to use it in your projects.

You can also take a look at our fully featured Videoroom Demo example:

Videoroom DemoVideoroom Demo

It's written in React Native, but it uses the same Fishjam Client API as the dashboard, so you can learn a lot from it.