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
4 changes: 3 additions & 1 deletion fishjam_protos/compile_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ total=${#files[@]}

for file in $files; do
printf "Compile file %s %s ... " $count $file
protoc --elixir_out=./fishjam_protos/lib $file
# -I <file dir> makes protoc name the file by its basename (so only the
# proto package determines the output path); -I . resolves fishjam/* imports.
protoc -I "$(dirname "$file")" -I . --elixir_out=./fishjam_protos/lib "$(basename "$file")"
printf "DONE\n"
count=$(($count + 1))
done
Expand Down
24 changes: 12 additions & 12 deletions fishjam_protos/lib/fishjam/agent_notifications.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Fishjam.AgentRequest.AuthRequest do

use Protobuf,
full_name: "fishjam.AgentRequest.AuthRequest",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :token, 1, type: :string
Expand All @@ -14,7 +14,7 @@ defmodule Fishjam.AgentRequest.AddTrack.CodecParameters do

use Protobuf,
full_name: "fishjam.AgentRequest.AddTrack.CodecParameters",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :encoding, 1, type: Fishjam.Notifications.TrackEncoding, enum: true
Expand All @@ -27,7 +27,7 @@ defmodule Fishjam.AgentRequest.AddTrack do

use Protobuf,
full_name: "fishjam.AgentRequest.AddTrack",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track, 1, type: Fishjam.Notifications.Track
Expand All @@ -42,7 +42,7 @@ defmodule Fishjam.AgentRequest.RemoveTrack do

use Protobuf,
full_name: "fishjam.AgentRequest.RemoveTrack",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -53,7 +53,7 @@ defmodule Fishjam.AgentRequest.TrackData do

use Protobuf,
full_name: "fishjam.AgentRequest.TrackData",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -65,7 +65,7 @@ defmodule Fishjam.AgentRequest.InterruptTrack do

use Protobuf,
full_name: "fishjam.AgentRequest.InterruptTrack",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -76,7 +76,7 @@ defmodule Fishjam.AgentRequest.CaptureImage do

use Protobuf,
full_name: "fishjam.AgentRequest.CaptureImage",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -87,7 +87,7 @@ defmodule Fishjam.AgentRequest do

use Protobuf,
full_name: "fishjam.AgentRequest",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

oneof :content, 0
Expand Down Expand Up @@ -122,7 +122,7 @@ defmodule Fishjam.AgentResponse.Authenticated do

use Protobuf,
full_name: "fishjam.AgentResponse.Authenticated",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
end

Expand All @@ -131,7 +131,7 @@ defmodule Fishjam.AgentResponse.TrackData do

use Protobuf,
full_name: "fishjam.AgentResponse.TrackData",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :peer_id, 1, type: :string, json_name: "peerId"
Expand All @@ -144,7 +144,7 @@ defmodule Fishjam.AgentResponse.TrackImage do

use Protobuf,
full_name: "fishjam.AgentResponse.TrackImage",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -157,7 +157,7 @@ defmodule Fishjam.AgentResponse do

use Protobuf,
full_name: "fishjam.AgentResponse",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

oneof :content, 0
Expand Down
32 changes: 16 additions & 16 deletions fishjam_protos/lib/fishjam/media_events/peer/peer.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.VariantBitrate do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.VariantBitrate",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :variant, 1, type: Fishjam.MediaEvents.Variant, enum: true
Expand All @@ -15,7 +15,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.Connect do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.Connect",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :metadata_json, 1, type: :string, json_name: "metadataJson"
Expand All @@ -26,7 +26,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.Disconnect do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.Disconnect",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
end

Expand All @@ -35,7 +35,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.UpdateEndpointMetadata do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.UpdateEndpointMetadata",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :metadata_json, 1, type: :string, json_name: "metadataJson"
Expand All @@ -46,7 +46,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.UpdateTrackMetadata do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.UpdateTrackMetadata",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -58,7 +58,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.RenegotiateTracks do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.RenegotiateTracks",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3
end

Expand All @@ -68,7 +68,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer.TrackIdToMetadataJsonEntr
use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer.TrackIdToMetadataJsonEntry",
map: true,
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :key, 1, type: :string
Expand All @@ -81,7 +81,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer.TrackIdToBitratesEntry do
use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer.TrackIdToBitratesEntry",
map: true,
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :key, 1, type: :string
Expand All @@ -94,7 +94,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer.MidToTrackIdEntry do
use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer.MidToTrackIdEntry",
map: true,
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :key, 1, type: :string
Expand All @@ -106,7 +106,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.SdpOffer do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.SdpOffer",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :sdp, 1, type: :string
Expand Down Expand Up @@ -135,7 +135,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.TrackBitrates do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.TrackBitrates",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -151,7 +151,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.DisableTrackVariant do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.DisableTrackVariant",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -163,7 +163,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.EnableTrackVariant do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.EnableTrackVariant",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -175,7 +175,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.SetTargetTrackVariant do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.SetTargetTrackVariant",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -187,7 +187,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent.UnmuteTrack do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent.UnmuteTrack",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

field :track_id, 1, type: :string, json_name: "trackId"
Expand All @@ -198,7 +198,7 @@ defmodule Fishjam.MediaEvents.Peer.MediaEvent do

use Protobuf,
full_name: "fishjam.media_events.peer.MediaEvent",
protoc_gen_elixir_version: "0.16.0",
protoc_gen_elixir_version: "0.17.0",
syntax: :proto3

oneof :content, 0
Expand Down
Loading
Loading