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
3 changes: 3 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ version: v1
breaking:
use:
- FILE
build:
excludes:
- fishjam_protos
lint:
use:
- DEFAULT
Expand Down
7 changes: 7 additions & 0 deletions fishjam/media_events/server/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ message MediaEvent {
repeated Track tracks = 4;
}

message IceServer {
string credential = 1;
repeated string urls = 2;
string username = 3;
}

// MEDIA EVENTS

// Sent when metadata of one of the endpoints was updated
Expand Down Expand Up @@ -56,6 +62,7 @@ message MediaEvent {
message Connected {
string endpoint_id = 1;
repeated Endpoint endpoints = 2;
repeated IceServer ice_servers = 3;
}

// Sent to all remaining peers in the room after some endpoint was removed.
Expand Down
15 changes: 15 additions & 0 deletions fishjam_protos/lib/fishjam/media_events/server/server.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ defmodule Fishjam.MediaEvents.Server.MediaEvent.Endpoint do
field :tracks, 4, repeated: true, type: Fishjam.MediaEvents.Server.MediaEvent.Track
end

defmodule Fishjam.MediaEvents.Server.MediaEvent.IceServer do
@moduledoc false

use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"

field :credential, 1, type: :string
field :urls, 2, repeated: true, type: :string
field :username, 3, type: :string
end

defmodule Fishjam.MediaEvents.Server.MediaEvent.EndpointUpdated do
@moduledoc false

Expand Down Expand Up @@ -81,6 +91,11 @@ defmodule Fishjam.MediaEvents.Server.MediaEvent.Connected do

field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :endpoints, 2, repeated: true, type: Fishjam.MediaEvents.Server.MediaEvent.Endpoint

field :ice_servers, 3,
repeated: true,
type: Fishjam.MediaEvents.Server.MediaEvent.IceServer,
json_name: "iceServers"
end

defmodule Fishjam.MediaEvents.Server.MediaEvent.EndpointRemoved do
Expand Down