Skip to content

Commit

Permalink
recording webhooks (#24)
Browse files Browse the repository at this point in the history
* recording webhooks

* use token instead of api key+secret

* remove token
  • Loading branch information
frostbyte73 authored Sep 21, 2021
1 parent 4472a31 commit b60237c
Show file tree
Hide file tree
Showing 11 changed files with 225 additions and 96 deletions.
1 change: 1 addition & 0 deletions livekit_internal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ message RecordingReservation {
string id = 1;
int64 submitted_at = 2;
StartRecordingRequest request = 3;
string ws_url = 4;
}

// details about the client
Expand Down
7 changes: 7 additions & 0 deletions livekit_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ message UserPacket {
// the ID of the participants who will receive the message (the message will be sent to all the people in the room if this variable is empty)
repeated string destination_sids = 3;
}

message RecordingResult {
string id = 1;
string error = 2;
int64 duration = 3;
string location = 4;
}
8 changes: 4 additions & 4 deletions livekit_recording.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ message RecordingInput {
message RecordingTemplate {
string layout = 1;
// either token or room name required
string token = 3;
string room_name = 4;
string token = 2;
string room_name = 3;
}

message RecordingOutput {
string rtmp = 3;
string rtmp = 1;
// bucket/key
string s3_path = 4;
string s3_path = 2;
}

enum RecordingPreset {
Expand Down
5 changes: 4 additions & 1 deletion livekit_webhook.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ option go_package = "github.com/livekit/protocol/proto/livekit";
import "livekit_models.proto";

message WebhookEvent {
// one of room_started, room_finished, participant_joined, participant_left
// one of room_started, room_finished, participant_joined, participant_left, recording_finished
string event = 1;

Room room = 2;

// set when event is participant_*
ParticipantInfo participant = 3;

// set when event is recording_finished
RecordingResult recording_result = 4;
}
58 changes: 34 additions & 24 deletions proto/livekit_internal.pb.go

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

109 changes: 100 additions & 9 deletions proto/livekit_models.pb.go

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

16 changes: 8 additions & 8 deletions proto/livekit_recording.pb.go

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

Loading

0 comments on commit b60237c

Please sign in to comment.