feat: add ffi datachannel & mute events (#88)
This commit is contained in:
@@ -26,7 +26,7 @@ message ConnectCallback {
|
||||
// Disconnect from the a room
|
||||
message DisconnectRequest { FfiHandleId room_handle = 1; }
|
||||
message DisconnectResponse { FfiAsyncId async_id = 1; }
|
||||
message DisconnectCallback { }
|
||||
message DisconnectCallback { FfiAsyncId async_id = 1; }
|
||||
|
||||
// Publish a track to the room
|
||||
message PublishTrackRequest {
|
||||
@@ -53,9 +53,27 @@ message UnpublishTrackResponse {
|
||||
FfiAsyncId async_id = 1;
|
||||
}
|
||||
message UnpublishTrackCallback {
|
||||
optional string error = 1;
|
||||
FfiAsyncId async_id = 1;
|
||||
optional string error = 2;
|
||||
}
|
||||
|
||||
// Publish data to other participants
|
||||
message PublishDataRequest {
|
||||
FfiHandleId room_handle = 1;
|
||||
uint64 data_ptr = 2;
|
||||
uint64 data_size = 3;
|
||||
DataPacketKind kind = 4;
|
||||
repeated string destination_sids = 5; // destination
|
||||
}
|
||||
message PublishDataResponse {
|
||||
FfiAsyncId async_id = 1;
|
||||
}
|
||||
message PublishDataCallback {
|
||||
FfiAsyncId async_id = 1;
|
||||
optional string error = 2;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Options
|
||||
///
|
||||
@@ -77,13 +95,13 @@ message TrackPublishOptions {
|
||||
bool dtx = 4;
|
||||
bool red = 5;
|
||||
bool simulcast = 6;
|
||||
string name = 7;
|
||||
TrackSource source = 8;
|
||||
TrackSource source = 7;
|
||||
}
|
||||
|
||||
message RoomOptions {
|
||||
bool auto_subscribe = 1;
|
||||
bool adaptive_stream = 2;
|
||||
bool dynacast = 3;
|
||||
}
|
||||
|
||||
///
|
||||
@@ -104,7 +122,7 @@ enum ConnectionState {
|
||||
}
|
||||
|
||||
enum DataPacketKind {
|
||||
KIND_UNRELIABLE = 0;
|
||||
KIND_LOSSY = 0;
|
||||
KIND_RELIABLE = 1;
|
||||
}
|
||||
|
||||
@@ -141,7 +159,7 @@ message RoomInfo {
|
||||
|
||||
message DataReceived {
|
||||
FfiHandleId handle = 1;
|
||||
optional string participant_sid = 2;
|
||||
optional string participant_sid = 2; // Can be empty if the data is sent a server SDK
|
||||
uint64 data_ptr = 3;
|
||||
uint64 data_size = 4;
|
||||
DataPacketKind kind = 5;
|
||||
@@ -196,4 +214,4 @@ message ConnectionStateChanged { ConnectionState state = 1; }
|
||||
message Connected {}
|
||||
message Disconnected {}
|
||||
message Reconnecting {}
|
||||
message Reconnected {}
|
||||
message Reconnected {}
|
||||
Reference in New Issue
Block a user