18 lines
481 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 对讲数据
syntax = "proto3";
package main;
option go_package = "./spb/talk";
// 注意这个包不应该使用Req而应该只用单向发送类型不等待响应。
// 在未收到对方的Ping或者其他情况即停止发送。
message TalkData {
// 内容类型枚举: 一张图传一帧H264一段G711
enum ContentTypeE {
Image = 0;
H264 = 1;
G711 = 2;
};
ContentTypeE ContentType = 1;
bytes Content = 2;
}