mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
- Refactor frame converter implementation - Update mp4 track to use ICodex - General refactoring and code improvements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
70 lines
1.2 KiB
Protocol Buffer
70 lines
1.2 KiB
Protocol Buffer
|
|
syntax = "proto3";
|
|
import "google/api/annotations.proto";
|
|
package rtp;
|
|
option go_package="m7s.live/v5/plugin/rtp/pb";
|
|
|
|
service api {
|
|
rpc ReceivePS(ReceivePSRequest) returns (ReceivePSResponse) {
|
|
option (google.api.http) = {
|
|
post: "/rtp/receive/ps"
|
|
body: "*"
|
|
};
|
|
}
|
|
rpc SendPS(SendPSRequest) returns (SendPSResponse) {
|
|
option (google.api.http) = {
|
|
post: "/rtp/send/ps"
|
|
body: "*"
|
|
};
|
|
}
|
|
rpc Forward(ForwardRequest) returns (ForwardResponse) {
|
|
option (google.api.http) = {
|
|
post: "/rtp/forward"
|
|
body: "*"
|
|
};
|
|
}
|
|
}
|
|
|
|
message ReceivePSRequest {
|
|
string streamPath = 1;
|
|
uint32 port = 2;
|
|
bool udp = 3;
|
|
}
|
|
|
|
message ReceivePSResponse {
|
|
int32 code = 1;
|
|
string message = 2;
|
|
int32 data = 3;
|
|
}
|
|
|
|
message SendPSRequest {
|
|
string streamPath = 1;
|
|
string ip = 2;
|
|
uint32 port = 3;
|
|
bool udp = 4;
|
|
uint32 ssrc = 5;
|
|
}
|
|
|
|
message SendPSResponse {
|
|
int32 code = 1;
|
|
string message = 2;
|
|
int32 data = 3;
|
|
}
|
|
|
|
message Peer {
|
|
string ip = 1;
|
|
uint32 port = 2;
|
|
uint32 ssrc = 3;
|
|
string mode = 4;
|
|
}
|
|
|
|
message ForwardRequest {
|
|
Peer source = 1;
|
|
Peer target = 2;
|
|
}
|
|
|
|
message ForwardResponse {
|
|
int32 code = 1;
|
|
string message = 2;
|
|
bool success = 3;
|
|
} |