20 lines
595 B
Protocol Buffer
20 lines
595 B
Protocol Buffer
syntax = "proto3";
|
|
import "common.proto";
|
|
import "google/protobuf/any.proto";
|
|
message PlayCommand {
|
|
string filename = 1;
|
|
optional uint64 idx = 2;
|
|
};
|
|
message SetStreamCommand {
|
|
uint64 idx = 1;
|
|
}
|
|
service PlaybackControlService {
|
|
rpc Get(GetProperty) returns (PropertyDataOrError) {}
|
|
rpc Set(SetProperty) returns (MaybeError) {}
|
|
rpc Reset(ResetProperty) returns (PropertyDataOrError) {}
|
|
rpc Quit() returns (MaybeError) {}
|
|
rpc Play(PlayCommand) returns (MaybeError) {}
|
|
rpc Stop() returns (MaybeError) {}
|
|
rpc Pause() returns (MaybeError) {}
|
|
rpc SetStream(SetStreamCommand) returns (MaybeError) {}
|
|
}
|