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
8 changes: 7 additions & 1 deletion generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export PATH=/opt/.protoc/bin:$PWD/.protoc/bin:$PATH
REALPATH=${REALPATH:-realpath}

GEN_PROFILE=${1:-go}
GEN_OUTPUT=$(${REALPATH} ${2:-${GEN_PROFILE}-sdk})

if [[ $GEN_PROFILE = "go" ]]; then
GEN_OUTPUT=$(${REALPATH} ${2:-${PB}})
else
GEN_OUTPUT=$(${REALPATH} ${2:-${GEN_PROFILE}-sdk})
fi

GEN_GO_IMPORT_PREFIX=${3:-github.com/GetStream/protocol/protobuf}

mkdir -p $GEN_OUTPUT
Expand Down
126 changes: 65 additions & 61 deletions protobuf/video/sfu/models/models.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions protobuf/video/sfu/models/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ enum ErrorCode {
ERROR_CODE_PUBLISH_TRACKS_MISMATCH = 101;
ERROR_CODE_PUBLISH_TRACK_OUT_OF_ORDER = 102;
ERROR_CODE_PUBLISH_TRACK_VIDEO_LAYER_NOT_FOUND = 103;
ERROR_CODE_LIVE_ENDED = 104;

ERROR_CODE_PARTICIPANT_NOT_FOUND = 200;
ERROR_CODE_PARTICIPANT_MIGRATING_OUT = 201;
Expand Down