Skip to content

Commit

Permalink
Add stream server options protos
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Oct 24, 2024
1 parent d825c9e commit 3edb27f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions proto/viam/stream/v1/stream.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ service StreamService {
// AddStream requests a particular stream be added.
rpc AddStream(AddStreamRequest) returns (AddStreamResponse);

// GetStreamOptions returns the options for a particular stream.
rpc GetStreamOptions(GetStreamOptionsRequest) returns (GetStreamOptionsResponse);

// SetStreamOptions sets the options for a particular stream.
rpc SetStreamOptions(SetStreamOptionsRequest) returns (SetStreamOptionsResponse);

// RemoveStream requests a particular stream be removed. If the calling client
// is the last to be receiving the stream, it will attempt to be stopped to
// conserve resources.
Expand Down Expand Up @@ -43,3 +49,28 @@ message RemoveStreamRequest {

// RemoveStreamResponse is returned after a successful RemoveStreamRequest.
message RemoveStreamResponse {}

// Resolution details the width and height of a stream.
message Resolution {
int32 width = 1;
int32 height = 2;
}

// GetStreamOptionsRequest requests the options for a particular stream.
message GetStreamOptionsRequest {
string name = 1;
}

// GetStreamOptionsResponse details the options for a particular stream.
message GetStreamOptionsResponse {
repeated Resolution resolutions = 1;
}

// SetStreamOptionsRequest sets the options for a particular stream.
message SetStreamOptionsRequest {
string name = 1;
Resolution resolution = 2;
}

// SetStreamOptionsResponse is returned after a successful SetStreamOptionsRequest.
message SetStreamOptionsResponse {}

0 comments on commit 3edb27f

Please sign in to comment.