diff --git a/js/generate.sh b/js/generate.sh new file mode 100755 index 0000000..db5e4e3 --- /dev/null +++ b/js/generate.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +pnpm install +buf generate +pnpm run build diff --git a/plugnmeet/plugnmeet_datamessage.pb.go b/plugnmeet/plugnmeet_datamessage.pb.go index 736ad1c..1bf0cfb 100644 --- a/plugnmeet/plugnmeet_datamessage.pb.go +++ b/plugnmeet/plugnmeet_datamessage.pb.go @@ -33,13 +33,14 @@ const ( DataMsgBodyType_NEW_POLL_RESPONSE DataMsgBodyType = 6 DataMsgBodyType_SPEECH_SUBTITLE_TEXT DataMsgBodyType = 7 // WHITEBOARD type - DataMsgBodyType_REQ_INIT_WHITEBOARD_DATA DataMsgBodyType = 8 - DataMsgBodyType_SCENE_UPDATE DataMsgBodyType = 9 - DataMsgBodyType_POINTER_UPDATE DataMsgBodyType = 10 - DataMsgBodyType_ADD_WHITEBOARD_FILE DataMsgBodyType = 11 - DataMsgBodyType_ADD_WHITEBOARD_OFFICE_FILE DataMsgBodyType = 12 - DataMsgBodyType_PAGE_CHANGE DataMsgBodyType = 13 - DataMsgBodyType_WHITEBOARD_APP_STATE_CHANGE DataMsgBodyType = 14 + DataMsgBodyType_REQ_FULL_WHITEBOARD_DATA DataMsgBodyType = 8 + DataMsgBodyType_RES_FULL_WHITEBOARD_DATA DataMsgBodyType = 9 + DataMsgBodyType_SCENE_UPDATE DataMsgBodyType = 10 + DataMsgBodyType_POINTER_UPDATE DataMsgBodyType = 11 + DataMsgBodyType_WHITEBOARD_APP_STATE_CHANGE DataMsgBodyType = 12 + DataMsgBodyType_ADD_WHITEBOARD_FILE DataMsgBodyType = 13 + DataMsgBodyType_ADD_WHITEBOARD_OFFICE_FILE DataMsgBodyType = 14 + DataMsgBodyType_PAGE_CHANGE DataMsgBodyType = 15 ) // Enum value maps for DataMsgBodyType. @@ -53,13 +54,14 @@ var ( 5: "EXTERNAL_MEDIA_PLAYER_EVENTS", 6: "NEW_POLL_RESPONSE", 7: "SPEECH_SUBTITLE_TEXT", - 8: "REQ_INIT_WHITEBOARD_DATA", - 9: "SCENE_UPDATE", - 10: "POINTER_UPDATE", - 11: "ADD_WHITEBOARD_FILE", - 12: "ADD_WHITEBOARD_OFFICE_FILE", - 13: "PAGE_CHANGE", - 14: "WHITEBOARD_APP_STATE_CHANGE", + 8: "REQ_FULL_WHITEBOARD_DATA", + 9: "RES_FULL_WHITEBOARD_DATA", + 10: "SCENE_UPDATE", + 11: "POINTER_UPDATE", + 12: "WHITEBOARD_APP_STATE_CHANGE", + 13: "ADD_WHITEBOARD_FILE", + 14: "ADD_WHITEBOARD_OFFICE_FILE", + 15: "PAGE_CHANGE", } DataMsgBodyType_value = map[string]int32{ "UNKNOWN": 0, @@ -70,13 +72,14 @@ var ( "EXTERNAL_MEDIA_PLAYER_EVENTS": 5, "NEW_POLL_RESPONSE": 6, "SPEECH_SUBTITLE_TEXT": 7, - "REQ_INIT_WHITEBOARD_DATA": 8, - "SCENE_UPDATE": 9, - "POINTER_UPDATE": 10, - "ADD_WHITEBOARD_FILE": 11, - "ADD_WHITEBOARD_OFFICE_FILE": 12, - "PAGE_CHANGE": 13, - "WHITEBOARD_APP_STATE_CHANGE": 14, + "REQ_FULL_WHITEBOARD_DATA": 8, + "RES_FULL_WHITEBOARD_DATA": 9, + "SCENE_UPDATE": 10, + "POINTER_UPDATE": 11, + "WHITEBOARD_APP_STATE_CHANGE": 12, + "ADD_WHITEBOARD_FILE": 13, + "ADD_WHITEBOARD_OFFICE_FILE": 14, + "PAGE_CHANGE": 15, } ) @@ -203,7 +206,7 @@ var file_plugnmeet_datamessage_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x74, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x0d, - 0x0a, 0x0b, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x2a, 0xe2, 0x02, + 0x0a, 0x0b, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x2a, 0x80, 0x03, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x64, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x01, 0x12, @@ -215,28 +218,30 @@ var file_plugnmeet_datamessage_proto_rawDesc = []byte{ 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x45, 0x57, 0x5f, 0x50, 0x4f, 0x4c, 0x4c, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x50, 0x45, 0x45, 0x43, 0x48, 0x5f, 0x53, 0x55, 0x42, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x5f, 0x54, 0x45, 0x58, - 0x54, 0x10, 0x07, 0x12, 0x1c, 0x0a, 0x18, 0x52, 0x45, 0x51, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, + 0x54, 0x10, 0x07, 0x12, 0x1c, 0x0a, 0x18, 0x52, 0x45, 0x51, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x5f, 0x57, 0x48, 0x49, 0x54, 0x45, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, - 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x43, 0x45, 0x4e, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, - 0x45, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x55, - 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0a, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x44, 0x44, 0x5f, 0x57, - 0x48, 0x49, 0x54, 0x45, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x0b, - 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x44, 0x44, 0x5f, 0x57, 0x48, 0x49, 0x54, 0x45, 0x42, 0x4f, 0x41, - 0x52, 0x44, 0x5f, 0x4f, 0x46, 0x46, 0x49, 0x43, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x0c, - 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x41, 0x47, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, - 0x0d, 0x12, 0x1f, 0x0a, 0x1b, 0x57, 0x48, 0x49, 0x54, 0x45, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x5f, - 0x41, 0x50, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, - 0x10, 0x0e, 0x42, 0xa2, 0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x6e, - 0x6d, 0x65, 0x65, 0x74, 0x42, 0x19, 0x50, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, - 0x6e, 0x61, 0x70, 0x61, 0x72, 0x72, 0x6f, 0x74, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, - 0x65, 0x74, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, - 0x6e, 0x6d, 0x65, 0x65, 0x74, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x09, 0x50, 0x6c, - 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, 0x74, 0xca, 0x02, 0x09, 0x50, 0x6c, 0x75, 0x67, 0x6e, 0x6d, - 0x65, 0x65, 0x74, 0xe2, 0x02, 0x15, 0x50, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, 0x74, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x50, 0x6c, - 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x08, 0x12, 0x1c, 0x0a, 0x18, 0x52, 0x45, 0x53, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x5f, 0x57, 0x48, + 0x49, 0x54, 0x45, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x09, 0x12, + 0x10, 0x0a, 0x0c, 0x53, 0x43, 0x45, 0x4e, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, + 0x0a, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x55, 0x50, 0x44, + 0x41, 0x54, 0x45, 0x10, 0x0b, 0x12, 0x1f, 0x0a, 0x1b, 0x57, 0x48, 0x49, 0x54, 0x45, 0x42, 0x4f, + 0x41, 0x52, 0x44, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x48, + 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0c, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x44, 0x44, 0x5f, 0x57, 0x48, + 0x49, 0x54, 0x45, 0x42, 0x4f, 0x41, 0x52, 0x44, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x0d, 0x12, + 0x1e, 0x0a, 0x1a, 0x41, 0x44, 0x44, 0x5f, 0x57, 0x48, 0x49, 0x54, 0x45, 0x42, 0x4f, 0x41, 0x52, + 0x44, 0x5f, 0x4f, 0x46, 0x46, 0x49, 0x43, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x0e, 0x12, + 0x0f, 0x0a, 0x0b, 0x50, 0x41, 0x47, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0f, + 0x42, 0xa2, 0x01, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, + 0x65, 0x74, 0x42, 0x19, 0x50, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x6e, 0x61, + 0x70, 0x61, 0x72, 0x72, 0x6f, 0x74, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, 0x74, + 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x6e, 0x6d, + 0x65, 0x65, 0x74, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x09, 0x50, 0x6c, 0x75, 0x67, + 0x6e, 0x6d, 0x65, 0x65, 0x74, 0xca, 0x02, 0x09, 0x50, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, + 0x74, 0xe2, 0x02, 0x15, 0x50, 0x6c, 0x75, 0x67, 0x6e, 0x6d, 0x65, 0x65, 0x74, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x50, 0x6c, 0x75, 0x67, + 0x6e, 0x6d, 0x65, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto_files/plugnmeet_datamessage.proto b/proto_files/plugnmeet_datamessage.proto index 23d6d43..9e41704 100644 --- a/proto_files/plugnmeet_datamessage.proto +++ b/proto_files/plugnmeet_datamessage.proto @@ -26,13 +26,16 @@ enum DataMsgBodyType { SPEECH_SUBTITLE_TEXT = 7; // WHITEBOARD type - REQ_INIT_WHITEBOARD_DATA = 8; - SCENE_UPDATE = 9; - POINTER_UPDATE = 10; - ADD_WHITEBOARD_FILE = 11; - ADD_WHITEBOARD_OFFICE_FILE = 12; - PAGE_CHANGE = 13; - WHITEBOARD_APP_STATE_CHANGE = 14; - - // next ID: 15 + REQ_FULL_WHITEBOARD_DATA = 8; + RES_FULL_WHITEBOARD_DATA = 9; + + SCENE_UPDATE = 10; + POINTER_UPDATE = 11; + WHITEBOARD_APP_STATE_CHANGE = 12; + + ADD_WHITEBOARD_FILE = 13; + ADD_WHITEBOARD_OFFICE_FILE = 14; + PAGE_CHANGE = 15; + + // next ID: 16 }