diff --git a/README.md b/README.md
index 9f31ad5..c3c5c9b 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,16 @@ Use the command below:
git submodule add https://github.com/fishjam-cloud/protos.git`
```
+## Generating elixir protos
+
+To run the `fishjam_protos/compile_proto.sh` one needs to install the proto plugin for elixir.
+
+To install the plugin:
+
+```bash
+mix escript.install hex protobuf 0.15.0 # or any other version
+```
+
## How to update docs
Install [protoc-gen-doc](https://github.com/pseudomuto/protoc-gen-doc) plugin.
@@ -22,7 +32,7 @@ Use the command below:
find fishjam/ -name "*.proto" | sort | xargs protoc --doc_out=./doc --doc_opt=markdown,docs.md
```
-or
+or
```command
find fishjam -name "*.proto" | sort | xargs docker run --rm -v $(pwd)/doc:/out -v $(pwd):/protos pseudomuto/protoc-gen-doc --doc_opt=markdown,docs.md
diff --git a/doc/docs.md b/doc/docs.md
index 9ca71ee..4bad46c 100644
--- a/doc/docs.md
+++ b/doc/docs.md
@@ -63,6 +63,8 @@
- [fishjam/media_events/shared.proto](#fishjam_media_events_shared-proto)
- [Candidate](#fishjam-media_events-Candidate)
+ - [ChannelMessage](#fishjam-media_events-ChannelMessage)
+ - [ChannelMessageBinaryPayload](#fishjam-media_events-ChannelMessageBinaryPayload)
- [Variant](#fishjam-media_events-Variant)
@@ -85,6 +87,8 @@
- [ServerMessage](#fishjam-ServerMessage)
- [ServerMessage.AuthRequest](#fishjam-ServerMessage-AuthRequest)
- [ServerMessage.Authenticated](#fishjam-ServerMessage-Authenticated)
+ - [ServerMessage.ChannelAdded](#fishjam-ServerMessage-ChannelAdded)
+ - [ServerMessage.ChannelRemoved](#fishjam-ServerMessage-ChannelRemoved)
- [ServerMessage.ComponentCrashed](#fishjam-ServerMessage-ComponentCrashed)
- [ServerMessage.HlsPlayable](#fishjam-ServerMessage-HlsPlayable)
- [ServerMessage.HlsUploadCrashed](#fishjam-ServerMessage-HlsUploadCrashed)
@@ -384,7 +388,7 @@ Sent when client enables one of the track variants
### MediaEvent.RenegotiateTracks
-Sent when peer wants to renegatiate connection due to adding a track or removing a track
+Sent when peer wants to renegotiate connection due to adding a track or removing a track
@@ -403,7 +407,7 @@ The "mid" is an identifier used to associate an RTP packet with an MLine
| ----- | ---- | ----- | ----------- |
| sdp | [string](#string) | | The value of the `sessionDescription.sdp` |
| track_id_to_metadata_json | [MediaEvent.SdpOffer.TrackIdToMetadataJsonEntry](#fishjam-media_events-peer-MediaEvent-SdpOffer-TrackIdToMetadataJsonEntry) | repeated | |
-| track_id_to_bitrates | [MediaEvent.SdpOffer.TrackIdToBitratesEntry](#fishjam-media_events-peer-MediaEvent-SdpOffer-TrackIdToBitratesEntry) | repeated | Maps track_id to its bitrate. The track_id in the TrackBitrates message is ignored (we use the map key), so it can be ommited. |
+| track_id_to_bitrates | [MediaEvent.SdpOffer.TrackIdToBitratesEntry](#fishjam-media_events-peer-MediaEvent-SdpOffer-TrackIdToBitratesEntry) | repeated | Maps track_id to its bitrate. The track_id in the TrackBitrates message is ignored (we use the map key), so it can be omitted. |
| mid_to_track_id | [MediaEvent.SdpOffer.MidToTrackIdEntry](#fishjam-media_events-peer-MediaEvent-SdpOffer-MidToTrackIdEntry) | repeated | |
@@ -958,7 +962,7 @@ Sent to informs that one of the peers has removed one or more tracks.
### MediaEvent.VadNotification
-Sent to inform that the track denoted by `trackId` has changed their voice actiivty
+Sent to inform that the track denoted by `trackId` has changed their voice activity
For this notification to work, the server must be configured to use VAD extension
and the sender must support it.
@@ -1019,6 +1023,38 @@ Contains information about an ICE candidate which will be sent to the peer/serve
+
+
+
+### ChannelMessage
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| source | [string](#string) | | |
+| destinations | [string](#string) | repeated | |
+| binary | [ChannelMessageBinaryPayload](#fishjam-media_events-ChannelMessageBinaryPayload) | | |
+
+
+
+
+
+
+
+
+### ChannelMessageBinaryPayload
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| data | [bytes](#bytes) | | |
+
+
+
+
+
@@ -1163,7 +1199,7 @@ Response sent by FJ, confirming successful authentication
### PeerMessage.MediaEvent
-Any type of WebRTC messages passed betweend FJ and peer
+Any type of WebRTC messages passed between FJ and peer
| Field | Type | Label | Description |
@@ -1255,6 +1291,8 @@ Defines any type of message passed between FJ and server peer
| viewer_disconnected | [ServerMessage.ViewerDisconnected](#fishjam-ServerMessage-ViewerDisconnected) | | |
| streamer_connected | [ServerMessage.StreamerConnected](#fishjam-ServerMessage-StreamerConnected) | | |
| streamer_disconnected | [ServerMessage.StreamerDisconnected](#fishjam-ServerMessage-StreamerDisconnected) | | |
+| channel_added | [ServerMessage.ChannelAdded](#fishjam-ServerMessage-ChannelAdded) | | |
+| channel_removed | [ServerMessage.ChannelRemoved](#fishjam-ServerMessage-ChannelRemoved) | | |
@@ -1286,6 +1324,42 @@ Response sent by FJ, confirming successfull authentication
+
+
+### ServerMessage.ChannelAdded
+Notification sent when a peer creates a channel
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| room_id | [string](#string) | | |
+| peer_id | [string](#string) | | |
+| component_id | [string](#string) | | |
+| channel_id | [string](#string) | | |
+
+
+
+
+
+
+
+
+### ServerMessage.ChannelRemoved
+Notification sent when a peer deletes a channel
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| room_id | [string](#string) | | |
+| peer_id | [string](#string) | | |
+| component_id | [string](#string) | | |
+| channel_id | [string](#string) | | |
+
+
+
+
+
+
### ServerMessage.ComponentCrashed
@@ -1336,7 +1410,7 @@ Notification sent when the upload of HLS recording to AWS S3 fails
### ServerMessage.HlsUploaded
-Notification sent when the HLS recording is successfully uploded to AWS S3
+Notification sent when the HLS recording is successfully uploaded to AWS S3
| Field | Type | Label | Description |
@@ -1562,7 +1636,7 @@ Notification sent when streamer disconnects
### ServerMessage.SubscribeRequest
-Request sent by peer to subsribe for certain message type
+Request sent by peer to subscribe for certain message type
| Field | Type | Label | Description |
diff --git a/fishjam/media_events/peer/peer.proto b/fishjam/media_events/peer/peer.proto
index 183a745..d13c054 100644
--- a/fishjam/media_events/peer/peer.proto
+++ b/fishjam/media_events/peer/peer.proto
@@ -34,7 +34,7 @@ message MediaEvent {
string metadata_json = 2;
}
- // Sent when peer wants to renegatiate connection due to adding a track or removing a track
+ // Sent when peer wants to renegotiate connection due to adding a track or removing a track
message RenegotiateTracks {}
// Sent as a response to `offerData` media event during renegotiation
@@ -43,7 +43,7 @@ message MediaEvent {
message SdpOffer {
string sdp = 1; // The value of the `sessionDescription.sdp`
map track_id_to_metadata_json = 2;
- map track_id_to_bitrates = 3; // Maps track_id to its bitrate. The track_id in the TrackBitrates message is ignored (we use the map key), so it can be ommited.
+ map track_id_to_bitrates = 3; // Maps track_id to its bitrate. The track_id in the TrackBitrates message is ignored (we use the map key), so it can be omitted.
map mid_to_track_id = 4;
}
diff --git a/fishjam/media_events/server/server.proto b/fishjam/media_events/server/server.proto
index 760d4d8..4fc1e93 100644
--- a/fishjam/media_events/server/server.proto
+++ b/fishjam/media_events/server/server.proto
@@ -96,7 +96,7 @@ message MediaEvent {
map mid_to_track_id = 2;
}
- // Sent to inform that the track denoted by `trackId` has changed their voice actiivty
+ // Sent to inform that the track denoted by `trackId` has changed their voice activity
// For this notification to work, the server must be configured to use VAD extension
// and the sender must support it.
message VadNotification {
diff --git a/fishjam/media_events/shared.proto b/fishjam/media_events/shared.proto
index 4b2ad4c..2de58d7 100644
--- a/fishjam/media_events/shared.proto
+++ b/fishjam/media_events/shared.proto
@@ -16,3 +16,16 @@ enum Variant {
VARIANT_MEDIUM = 2;
VARIANT_HIGH = 3;
}
+
+message ChannelMessageBinaryPayload {
+ bytes data = 1;
+}
+
+message ChannelMessage {
+ string source = 1;
+ repeated string destinations = 2;
+
+ oneof payload {
+ ChannelMessageBinaryPayload binary = 3;
+ }
+}
diff --git a/fishjam/peer_notifications.proto b/fishjam/peer_notifications.proto
index 00b1d83..d0028ce 100644
--- a/fishjam/peer_notifications.proto
+++ b/fishjam/peer_notifications.proto
@@ -32,7 +32,7 @@ message PeerMessage {
string data = 1;
}
- // Any type of WebRTC messages passed betweend FJ and peer
+ // Any type of WebRTC messages passed between FJ and peer
message MediaEvent {
string data = 1;
}
diff --git a/fishjam/server_notifications.proto b/fishjam/server_notifications.proto
index 75ae6a8..c833974 100644
--- a/fishjam/server_notifications.proto
+++ b/fishjam/server_notifications.proto
@@ -74,7 +74,7 @@ message ServerMessage {
EVENT_TYPE_SERVER_NOTIFICATION = 1;
}
- // Request sent by peer to subsribe for certain message type
+ // Request sent by peer to subscribe for certain message type
message SubscribeRequest {
EventType event_type = 1;
}
@@ -100,7 +100,7 @@ message ServerMessage {
string component_id = 2;
}
- // Notification sent when the HLS recording is successfully uploded to AWS S3
+ // Notification sent when the HLS recording is successfully uploaded to AWS S3
message HlsUploaded {
string room_id = 1;
}
@@ -148,6 +148,26 @@ message ServerMessage {
notifications.Track track = 4;
}
+ // Notification sent when a peer creates a channel
+ message ChannelAdded {
+ string room_id = 1;
+ oneof endpoint_info {
+ string peer_id = 2;
+ string component_id = 3;
+ }
+ string channel_id = 4;
+ }
+
+ // Notification sent when a peer deletes a channel
+ message ChannelRemoved {
+ string room_id = 1;
+ oneof endpoint_info {
+ string peer_id = 2;
+ string component_id = 3;
+ }
+ string channel_id = 4;
+ }
+
// Notification sent when streamer successfully connects
message StreamConnected {
string stream_id = 1;
@@ -209,5 +229,7 @@ message ServerMessage {
ViewerDisconnected viewer_disconnected = 25;
StreamerConnected streamer_connected = 26;
StreamerDisconnected streamer_disconnected = 27;
+ ChannelAdded channel_added = 28;
+ ChannelRemoved channel_removed = 29;
}
}
diff --git a/fishjam_protos/lib/fishjam/agent_notifications.pb.ex b/fishjam_protos/lib/fishjam/agent_notifications.pb.ex
index 9f5db6a..952daca 100644
--- a/fishjam_protos/lib/fishjam/agent_notifications.pb.ex
+++ b/fishjam_protos/lib/fishjam/agent_notifications.pb.ex
@@ -1,7 +1,10 @@
defmodule Fishjam.AgentRequest.AuthRequest do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentRequest.AuthRequest",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :token, 1, type: :string
end
@@ -9,7 +12,10 @@ end
defmodule Fishjam.AgentRequest.AddTrack.CodecParameters do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentRequest.AddTrack.CodecParameters",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :encoding, 1, type: Fishjam.Notifications.TrackEncoding, enum: true
field :sample_rate, 2, type: :uint32, json_name: "sampleRate"
@@ -19,7 +25,10 @@ end
defmodule Fishjam.AgentRequest.AddTrack do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentRequest.AddTrack",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track, 1, type: Fishjam.Notifications.Track
@@ -31,7 +40,10 @@ end
defmodule Fishjam.AgentRequest.RemoveTrack do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentRequest.RemoveTrack",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
end
@@ -39,7 +51,10 @@ end
defmodule Fishjam.AgentRequest.TrackData do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentRequest.TrackData",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
field :data, 2, type: :bytes
@@ -48,7 +63,10 @@ end
defmodule Fishjam.AgentRequest.InterruptTrack do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentRequest.InterruptTrack",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
end
@@ -56,7 +74,10 @@ end
defmodule Fishjam.AgentRequest do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentRequest",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :content, 0
@@ -83,13 +104,19 @@ end
defmodule Fishjam.AgentResponse.Authenticated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentResponse.Authenticated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
end
defmodule Fishjam.AgentResponse.TrackData do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentResponse.TrackData",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :peer_id, 1, type: :string, json_name: "peerId"
field :track, 2, type: Fishjam.Notifications.Track
@@ -99,7 +126,10 @@ end
defmodule Fishjam.AgentResponse do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.AgentResponse",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :content, 0
diff --git a/fishjam_protos/lib/fishjam/media_events/peer/peer.pb.ex b/fishjam_protos/lib/fishjam/media_events/peer/peer.pb.ex
index 0ec3086..2a9d704 100644
--- a/fishjam_protos/lib/fishjam/media_events/peer/peer.pb.ex
+++ b/fishjam_protos/lib/fishjam/media_events/peer/peer.pb.ex
@@ -1,7 +1,10 @@
defmodule Fishjam.MediaEvents.Peer.MediaEvent.VariantBitrate do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.VariantBitrate",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :variant, 1, type: Fishjam.MediaEvents.Variant, enum: true
field :bitrate, 2, type: :int32
@@ -10,7 +13,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.Connect do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.Connect",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :metadata_json, 1, type: :string, json_name: "metadataJson"
end
@@ -18,13 +24,19 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.Disconnect do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.Disconnect",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.UpdateEndpointMetadata do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.UpdateEndpointMetadata",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :metadata_json, 1, type: :string, json_name: "metadataJson"
end
@@ -32,7 +44,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.UpdateTrackMetadata do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.UpdateTrackMetadata",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
field :metadata_json, 2, type: :string, json_name: "metadataJson"
@@ -41,13 +56,20 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.RenegotiateTracks do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.RenegotiateTracks",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer.TrackIdToMetadataJsonEntry do
@moduledoc false
- use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer.TrackIdToMetadataJsonEntry",
+ map: true,
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
@@ -56,7 +78,11 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer.TrackIdToBitratesEntry do
@moduledoc false
- use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer.TrackIdToBitratesEntry",
+ map: true,
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Fishjam.MediaEvents.Peer.MediaEvent.TrackBitrates
@@ -65,7 +91,11 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer.MidToTrackIdEntry do
@moduledoc false
- use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer.MidToTrackIdEntry",
+ map: true,
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
@@ -74,7 +104,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :sdp, 1, type: :string
@@ -100,7 +133,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.TrackBitrates do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.TrackBitrates",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
@@ -113,7 +149,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.DisableTrackVariant do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.DisableTrackVariant",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
field :variant, 2, type: Fishjam.MediaEvents.Variant, enum: true
@@ -122,7 +161,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.EnableTrackVariant do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.EnableTrackVariant",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
field :variant, 2, type: Fishjam.MediaEvents.Variant, enum: true
@@ -131,7 +173,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.SetTargetTrackVariant do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.SetTargetTrackVariant",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
field :variant, 2, type: Fishjam.MediaEvents.Variant, enum: true
@@ -140,7 +185,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent.UnmuteTrack do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent.UnmuteTrack",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
end
@@ -148,7 +196,10 @@ end
defmodule Fishjam.MediaEvents.Peer.MediaEvent do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.peer.MediaEvent",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :content, 0
diff --git a/fishjam_protos/lib/fishjam/media_events/server/server.pb.ex b/fishjam_protos/lib/fishjam/media_events/server/server.pb.ex
index 0025642..6dfa060 100644
--- a/fishjam_protos/lib/fishjam/media_events/server/server.pb.ex
+++ b/fishjam_protos/lib/fishjam/media_events/server/server.pb.ex
@@ -1,7 +1,11 @@
defmodule Fishjam.MediaEvents.Server.MediaEvent.VadNotification.Status do
@moduledoc false
- use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ enum: true,
+ full_name: "fishjam.media_events.server.MediaEvent.VadNotification.Status",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :STATUS_UNSPECIFIED, 0
field :STATUS_SILENCE, 1
@@ -11,7 +15,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.Track.SimulcastConfig do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.Track.SimulcastConfig",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :enabled, 1, type: :bool
@@ -31,7 +38,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.Track do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.Track",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :metadata_json, 1, type: :string, json_name: "metadataJson"
@@ -43,7 +53,11 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.Endpoint.TrackIdToTrackEntry do
@moduledoc false
- use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.Endpoint.TrackIdToTrackEntry",
+ map: true,
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Fishjam.MediaEvents.Server.MediaEvent.Track
@@ -52,7 +66,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.Endpoint do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.Endpoint",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_type, 2, type: :string, json_name: "endpointType"
field :metadata_json, 3, type: :string, json_name: "metadataJson"
@@ -67,7 +84,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.IceServer do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.IceServer",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :credential, 1, type: :string
field :urls, 2, repeated: true, type: :string
@@ -77,7 +97,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.EndpointUpdated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.EndpointUpdated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :metadata_json, 2, type: :string, json_name: "metadataJson"
@@ -86,7 +109,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.TrackUpdated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.TrackUpdated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :track_id, 2, type: :string, json_name: "trackId"
@@ -96,7 +122,11 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.TracksAdded.TrackIdToTrackEntry do
@moduledoc false
- use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.TracksAdded.TrackIdToTrackEntry",
+ map: true,
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Fishjam.MediaEvents.Server.MediaEvent.Track
@@ -105,7 +135,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.TracksAdded do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.TracksAdded",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
@@ -119,7 +152,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.TracksRemoved do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.TracksRemoved",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :track_ids, 2, repeated: true, type: :string, json_name: "trackIds"
@@ -128,7 +164,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.EndpointAdded do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.EndpointAdded",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :metadata_json, 2, type: :string, json_name: "metadataJson"
@@ -137,7 +176,11 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.Connected.EndpointIdToEndpointEntry do
@moduledoc false
- use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.Connected.EndpointIdToEndpointEntry",
+ map: true,
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Fishjam.MediaEvents.Server.MediaEvent.Endpoint
@@ -146,7 +189,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.Connected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.Connected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
@@ -165,7 +211,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.EndpointRemoved do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.EndpointRemoved",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
end
@@ -173,7 +222,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.Error do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.Error",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :message, 1, type: :string
end
@@ -181,7 +233,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.OfferData.TrackTypes do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.OfferData.TrackTypes",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :audio, 1, type: :int32
field :video, 2, type: :int32
@@ -190,7 +245,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.OfferData do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.OfferData",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :tracks_types, 1,
type: Fishjam.MediaEvents.Server.MediaEvent.OfferData.TrackTypes,
@@ -200,7 +258,11 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.SdpAnswer.MidToTrackIdEntry do
@moduledoc false
- use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.SdpAnswer.MidToTrackIdEntry",
+ map: true,
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
@@ -209,7 +271,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.SdpAnswer do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.SdpAnswer",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :sdp, 1, type: :string
@@ -223,7 +288,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.VadNotification do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.VadNotification",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :track_id, 1, type: :string, json_name: "trackId"
field :status, 2, type: Fishjam.MediaEvents.Server.MediaEvent.VadNotification.Status, enum: true
@@ -232,7 +300,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.TrackVariantSwitched do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.TrackVariantSwitched",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :track_id, 2, type: :string, json_name: "trackId"
@@ -242,7 +313,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.TrackVariantDisabled do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.TrackVariantDisabled",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :track_id, 2, type: :string, json_name: "trackId"
@@ -252,7 +326,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent.TrackVariantEnabled do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent.TrackVariantEnabled",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :endpoint_id, 1, type: :string, json_name: "endpointId"
field :track_id, 2, type: :string, json_name: "trackId"
@@ -262,7 +339,10 @@ end
defmodule Fishjam.MediaEvents.Server.MediaEvent do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.server.MediaEvent",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :content, 0
diff --git a/fishjam_protos/lib/fishjam/media_events/shared.pb.ex b/fishjam_protos/lib/fishjam/media_events/shared.pb.ex
index 8115aab..b0c2ff7 100644
--- a/fishjam_protos/lib/fishjam/media_events/shared.pb.ex
+++ b/fishjam_protos/lib/fishjam/media_events/shared.pb.ex
@@ -1,7 +1,11 @@
defmodule Fishjam.MediaEvents.Variant do
@moduledoc false
- use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ enum: true,
+ full_name: "fishjam.media_events.Variant",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :VARIANT_UNSPECIFIED, 0
field :VARIANT_LOW, 1
@@ -12,10 +16,39 @@ end
defmodule Fishjam.MediaEvents.Candidate do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.media_events.Candidate",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :candidate, 1, type: :string
field :sdp_m_line_index, 2, type: :int32, json_name: "sdpMLineIndex"
field :sdp_mid, 3, type: :string, json_name: "sdpMid"
field :username_fragment, 4, type: :string, json_name: "usernameFragment"
end
+
+defmodule Fishjam.MediaEvents.ChannelMessageBinaryPayload do
+ @moduledoc false
+
+ use Protobuf,
+ full_name: "fishjam.media_events.ChannelMessageBinaryPayload",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
+
+ field :data, 1, type: :bytes
+end
+
+defmodule Fishjam.MediaEvents.ChannelMessage do
+ @moduledoc false
+
+ use Protobuf,
+ full_name: "fishjam.media_events.ChannelMessage",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
+
+ oneof :payload, 0
+
+ field :source, 1, type: :string
+ field :destinations, 2, repeated: true, type: :string
+ field :binary, 3, type: Fishjam.MediaEvents.ChannelMessageBinaryPayload, oneof: 0
+end
diff --git a/fishjam_protos/lib/fishjam/notifications/shared.pb.ex b/fishjam_protos/lib/fishjam/notifications/shared.pb.ex
index 27ee9c8..53ed374 100644
--- a/fishjam_protos/lib/fishjam/notifications/shared.pb.ex
+++ b/fishjam_protos/lib/fishjam/notifications/shared.pb.ex
@@ -1,7 +1,11 @@
defmodule Fishjam.Notifications.TrackType do
@moduledoc false
- use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ enum: true,
+ full_name: "fishjam.notifications.TrackType",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :TRACK_TYPE_UNSPECIFIED, 0
field :TRACK_TYPE_VIDEO, 1
@@ -11,7 +15,11 @@ end
defmodule Fishjam.Notifications.TrackEncoding do
@moduledoc false
- use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ enum: true,
+ full_name: "fishjam.notifications.TrackEncoding",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :TRACK_ENCODING_UNSPECIFIED, 0
field :TRACK_ENCODING_PCM16, 1
@@ -21,7 +29,10 @@ end
defmodule Fishjam.Notifications.Track do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.notifications.Track",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :id, 1, type: :string
field :type, 2, type: Fishjam.Notifications.TrackType, enum: true
diff --git a/fishjam_protos/lib/fishjam/peer_notifications.pb.ex b/fishjam_protos/lib/fishjam/peer_notifications.pb.ex
index c2863e6..5213559 100644
--- a/fishjam_protos/lib/fishjam/peer_notifications.pb.ex
+++ b/fishjam_protos/lib/fishjam/peer_notifications.pb.ex
@@ -1,7 +1,11 @@
defmodule Fishjam.PeerMessage.RoomType do
@moduledoc false
- use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ enum: true,
+ full_name: "fishjam.PeerMessage.RoomType",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :ROOM_TYPE_UNSPECIFIED, 0
field :ROOM_TYPE_CONFERENCE, 1
@@ -12,7 +16,10 @@ end
defmodule Fishjam.PeerMessage.Authenticated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.PeerMessage.Authenticated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_type, 1, type: Fishjam.PeerMessage.RoomType, json_name: "roomType", enum: true
end
@@ -20,7 +27,10 @@ end
defmodule Fishjam.PeerMessage.AuthRequest do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.PeerMessage.AuthRequest",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :token, 1, type: :string
field :sdk_version, 2, type: :string, json_name: "sdkVersion"
@@ -29,7 +39,10 @@ end
defmodule Fishjam.PeerMessage.RTCStatsReport do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.PeerMessage.RTCStatsReport",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :data, 1, type: :string
end
@@ -37,7 +50,10 @@ end
defmodule Fishjam.PeerMessage.MediaEvent do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.PeerMessage.MediaEvent",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :data, 1, type: :string
end
@@ -45,7 +61,10 @@ end
defmodule Fishjam.PeerMessage do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.PeerMessage",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :content, 0
diff --git a/fishjam_protos/lib/fishjam/server_notifications.pb.ex b/fishjam_protos/lib/fishjam/server_notifications.pb.ex
index dbf2940..7117c12 100644
--- a/fishjam_protos/lib/fishjam/server_notifications.pb.ex
+++ b/fishjam_protos/lib/fishjam/server_notifications.pb.ex
@@ -1,7 +1,11 @@
defmodule Fishjam.ServerMessage.PeerType do
@moduledoc false
- use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ enum: true,
+ full_name: "fishjam.ServerMessage.PeerType",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :PEER_TYPE_UNSPECIFIED, 0
field :PEER_TYPE_WEBRTC, 1
@@ -11,7 +15,11 @@ end
defmodule Fishjam.ServerMessage.EventType do
@moduledoc false
- use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ enum: true,
+ full_name: "fishjam.ServerMessage.EventType",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :EVENT_TYPE_UNSPECIFIED, 0
field :EVENT_TYPE_SERVER_NOTIFICATION, 1
@@ -20,7 +28,10 @@ end
defmodule Fishjam.ServerMessage.RoomCrashed do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.RoomCrashed",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
end
@@ -28,7 +39,10 @@ end
defmodule Fishjam.ServerMessage.PeerAdded do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.PeerAdded",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :peer_id, 2, type: :string, json_name: "peerId"
@@ -38,7 +52,10 @@ end
defmodule Fishjam.ServerMessage.PeerDeleted do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.PeerDeleted",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :peer_id, 2, type: :string, json_name: "peerId"
@@ -48,7 +65,10 @@ end
defmodule Fishjam.ServerMessage.PeerConnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.PeerConnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :peer_id, 2, type: :string, json_name: "peerId"
@@ -58,7 +78,10 @@ end
defmodule Fishjam.ServerMessage.PeerDisconnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.PeerDisconnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :peer_id, 2, type: :string, json_name: "peerId"
@@ -68,7 +91,10 @@ end
defmodule Fishjam.ServerMessage.PeerCrashed do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.PeerCrashed",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :peer_id, 2, type: :string, json_name: "peerId"
@@ -79,7 +105,10 @@ end
defmodule Fishjam.ServerMessage.ComponentCrashed do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.ComponentCrashed",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :component_id, 2, type: :string, json_name: "componentId"
@@ -88,13 +117,19 @@ end
defmodule Fishjam.ServerMessage.Authenticated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.Authenticated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
end
defmodule Fishjam.ServerMessage.AuthRequest do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.AuthRequest",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :token, 1, type: :string
end
@@ -102,7 +137,10 @@ end
defmodule Fishjam.ServerMessage.SubscribeRequest do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.SubscribeRequest",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :event_type, 1, type: Fishjam.ServerMessage.EventType, json_name: "eventType", enum: true
end
@@ -110,7 +148,10 @@ end
defmodule Fishjam.ServerMessage.SubscribeResponse do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.SubscribeResponse",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :event_type, 1, type: Fishjam.ServerMessage.EventType, json_name: "eventType", enum: true
end
@@ -118,7 +159,10 @@ end
defmodule Fishjam.ServerMessage.RoomCreated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.RoomCreated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
end
@@ -126,7 +170,10 @@ end
defmodule Fishjam.ServerMessage.RoomDeleted do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.RoomDeleted",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
end
@@ -134,7 +181,10 @@ end
defmodule Fishjam.ServerMessage.HlsPlayable do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.HlsPlayable",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :component_id, 2, type: :string, json_name: "componentId"
@@ -143,7 +193,10 @@ end
defmodule Fishjam.ServerMessage.HlsUploaded do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.HlsUploaded",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
end
@@ -151,7 +204,10 @@ end
defmodule Fishjam.ServerMessage.HlsUploadCrashed do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.HlsUploadCrashed",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
end
@@ -159,7 +215,10 @@ end
defmodule Fishjam.ServerMessage.PeerMetadataUpdated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.PeerMetadataUpdated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :room_id, 1, type: :string, json_name: "roomId"
field :peer_id, 2, type: :string, json_name: "peerId"
@@ -170,7 +229,10 @@ end
defmodule Fishjam.ServerMessage.TrackAdded do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.TrackAdded",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :endpoint_info, 0
@@ -183,7 +245,10 @@ end
defmodule Fishjam.ServerMessage.TrackRemoved do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.TrackRemoved",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :endpoint_info, 0
@@ -196,7 +261,10 @@ end
defmodule Fishjam.ServerMessage.TrackMetadataUpdated do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.TrackMetadataUpdated",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :endpoint_info, 0
@@ -206,10 +274,45 @@ defmodule Fishjam.ServerMessage.TrackMetadataUpdated do
field :track, 4, type: Fishjam.Notifications.Track
end
+defmodule Fishjam.ServerMessage.ChannelAdded do
+ @moduledoc false
+
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.ChannelAdded",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
+
+ oneof :endpoint_info, 0
+
+ field :room_id, 1, type: :string, json_name: "roomId"
+ field :peer_id, 2, type: :string, json_name: "peerId", oneof: 0
+ field :component_id, 3, type: :string, json_name: "componentId", oneof: 0
+ field :channel_id, 4, type: :string, json_name: "channelId"
+end
+
+defmodule Fishjam.ServerMessage.ChannelRemoved do
+ @moduledoc false
+
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.ChannelRemoved",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
+
+ oneof :endpoint_info, 0
+
+ field :room_id, 1, type: :string, json_name: "roomId"
+ field :peer_id, 2, type: :string, json_name: "peerId", oneof: 0
+ field :component_id, 3, type: :string, json_name: "componentId", oneof: 0
+ field :channel_id, 4, type: :string, json_name: "channelId"
+end
+
defmodule Fishjam.ServerMessage.StreamConnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.StreamConnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :stream_id, 1, type: :string, json_name: "streamId"
end
@@ -217,7 +320,10 @@ end
defmodule Fishjam.ServerMessage.StreamDisconnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.StreamDisconnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :stream_id, 1, type: :string, json_name: "streamId"
end
@@ -225,7 +331,10 @@ end
defmodule Fishjam.ServerMessage.ViewerConnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.ViewerConnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :stream_id, 1, type: :string, json_name: "streamId"
field :viewer_id, 2, type: :string, json_name: "viewerId"
@@ -234,7 +343,10 @@ end
defmodule Fishjam.ServerMessage.ViewerDisconnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.ViewerDisconnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :stream_id, 1, type: :string, json_name: "streamId"
field :viewer_id, 2, type: :string, json_name: "viewerId"
@@ -243,7 +355,10 @@ end
defmodule Fishjam.ServerMessage.StreamerConnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.StreamerConnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :stream_id, 1, type: :string, json_name: "streamId"
field :streamer_id, 2, type: :string, json_name: "streamerId"
@@ -252,7 +367,10 @@ end
defmodule Fishjam.ServerMessage.StreamerDisconnected do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage.StreamerDisconnected",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
field :stream_id, 1, type: :string, json_name: "streamId"
field :streamer_id, 2, type: :string, json_name: "streamerId"
@@ -261,7 +379,10 @@ end
defmodule Fishjam.ServerMessage do
@moduledoc false
- use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
+ use Protobuf,
+ full_name: "fishjam.ServerMessage",
+ protoc_gen_elixir_version: "0.16.0",
+ syntax: :proto3
oneof :content, 0
@@ -390,4 +511,14 @@ defmodule Fishjam.ServerMessage do
type: Fishjam.ServerMessage.StreamerDisconnected,
json_name: "streamerDisconnected",
oneof: 0
+
+ field :channel_added, 28,
+ type: Fishjam.ServerMessage.ChannelAdded,
+ json_name: "channelAdded",
+ oneof: 0
+
+ field :channel_removed, 29,
+ type: Fishjam.ServerMessage.ChannelRemoved,
+ json_name: "channelRemoved",
+ oneof: 0
end