LiveKit C++ Client SDK v1.4.0
Real-time audio/video/data SDK for C++
Loading...
Searching...
No Matches
room_event_types.h
1/*
2 * Copyright 2025 LiveKit
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an “AS IS” BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <cstdint>
20#include <map>
21#include <memory>
22#include <optional>
23#include <string>
24#include <vector>
25
26namespace livekit {
27
28// Forward declarations to avoid pulling in heavy headers.
29class Track;
30class Participant;
31class RemoteParticipant;
32class RemoteDataTrack;
33class LocalTrackPublication;
34class RemoteTrackPublication;
35class TrackPublication;
36
37enum class VideoCodec;
38enum class TrackSource;
39
42 Poor = 0,
43 Good,
44 Excellent,
45 Lost,
46};
47
49enum class ConnectionState {
50 Disconnected = 0,
51 Connected,
52 Reconnecting,
53};
54
59enum class DataPacketKind {
60 Lossy,
61 Reliable,
62};
63
67enum class EncryptionState {
68 New = 0,
69 Ok,
70 EncryptionFailed,
71 DecryptionFailed,
72 MissingKey,
73 KeyRatcheted,
74 InternalError,
75};
76
116
120 std::vector<std::uint8_t> data;
121
123 std::optional<std::string> topic;
124};
125
136 std::uint32_t code = 0;
137
139 std::optional<std::string> digit;
140};
141
145 std::optional<std::string> sid;
146
148 std::string name;
149
151 std::string metadata;
152
155
158
160 std::uint32_t empty_timeout = 0;
161
163 std::uint32_t departure_timeout = 0;
164
166 std::uint32_t max_participants = 0;
167
169 std::int64_t creation_time = 0;
170
172 std::uint32_t num_participants = 0;
173
175 std::uint32_t num_publishers = 0;
176
178 bool active_recording = false;
179};
180
184 std::string key;
185
187 std::string value;
188
189 AttributeEntry() = default;
190
191 AttributeEntry(std::string k, std::string v) : key(std::move(k)), value(std::move(v)) {}
192};
193
198 std::string stream_id;
199
201 std::int64_t timestamp = 0;
202
204 std::string mime_type;
205
207 std::string topic;
208
210 std::optional<std::uint64_t> total_length;
211
213 std::map<std::string, std::string> attributes;
214
216 enum class ContentType {
217 None,
218 Text,
219 Byte,
220 } content_type = ContentType::None;
221
223 enum class OperationType {
224 Create = 0,
225 Update = 1,
226 Delete = 2,
227 Reaction = 3,
228 };
229
231 std::optional<OperationType> operation_type;
232
234 std::optional<int> version;
235
237 std::optional<std::string> reply_to_stream_id;
238
240 std::vector<std::string> attached_stream_ids;
241
243 std::optional<bool> generated;
244
246 std::optional<std::string> name;
247};
248
252 std::string stream_id;
253
255 std::uint64_t chunk_index = 0;
256
258 std::vector<std::uint8_t> content;
259
261 std::optional<int> version;
262
264 std::vector<std::uint8_t> iv;
265};
266
270 std::string stream_id;
271
273 std::string reason;
274
276 std::map<std::string, std::string> attributes;
277};
278
282 std::uint64_t max_bitrate = 0;
283
285 double max_framerate = 0.0;
286};
287
291 std::uint64_t max_bitrate = 0;
292};
293
306
310 bool user_timestamp = false;
311
313 bool frame_id = false;
314
316 bool user_data = false;
317};
318
320using PacketTrailerFeatures [[deprecated("PacketTrailerFeatures is deprecated; use FrameMetadataFeatures instead")]] =
322
326 std::optional<VideoEncodingOptions> video_encoding;
327
329 std::optional<AudioEncodingOptions> audio_encoding;
330
332 std::optional<VideoCodec> video_codec;
333
335 std::optional<bool> dtx;
336
338 std::optional<bool> red;
339
341 std::optional<bool> simulcast;
342
344 std::optional<TrackSource> source;
345
347 std::optional<std::string> stream;
348
350 std::optional<bool> preconnect_buffer;
351
353 std::optional<FrameMetadataFeatures> frame_metadata_features;
354
356 [[deprecated("TrackPublishOptions::packet_trailer_features is deprecated; use frame_metadata_features instead")]]
358
361 std::optional<DegradationPreference> degradation_preference;
362};
363
364// ---------------------------------------------------------
365// Event structs – public representations of RoomEvent.*
366// ---------------------------------------------------------
367
373
382
386 std::shared_ptr<LocalTrackPublication> publication;
387
389 std::shared_ptr<Track> track;
390};
391
395 std::shared_ptr<LocalTrackPublication> publication;
396};
397
401 std::shared_ptr<Track> track;
402};
403
407 std::shared_ptr<RemoteTrackPublication> publication;
408
411};
412
416 std::shared_ptr<RemoteTrackPublication> publication;
417
420};
421
425 std::shared_ptr<Track> track;
426
428 std::shared_ptr<RemoteTrackPublication> publication;
429
432};
433
437 std::shared_ptr<Track> track;
438
440 std::shared_ptr<RemoteTrackPublication> publication;
441
444};
445
450
452 std::string track_sid;
453
455 std::string error;
456};
457
462
464 std::shared_ptr<TrackPublication> publication;
465};
466
471
473 std::shared_ptr<TrackPublication> publication;
474};
475
479 std::vector<Participant*> speakers;
480};
481
485 std::string old_metadata;
486
488 std::string new_metadata;
489};
490
494 std::string sid;
495};
496
501
503 std::string old_metadata;
504
506 std::string new_metadata;
507};
508
513
515 std::string old_name;
516
518 std::string new_name;
519};
520
525
527 std::vector<AttributeEntry> changed_attributes;
528};
529
538
543
545 ConnectionQuality quality = ConnectionQuality::Good;
546};
547
551 std::vector<std::uint8_t> data;
552
554 DataPacketKind kind = DataPacketKind::Reliable;
555
559
561 std::string topic;
562};
563
567 int code = 0;
568
570 std::string digit;
571
574};
575
579 ConnectionState state = ConnectionState::Disconnected;
580};
581
587
590
593
600 std::string token;
601};
602
604struct RoomEosEvent {};
605
614
623
632
636 DataPacketKind kind = DataPacketKind::Reliable;
637
639 std::uint64_t threshold = 0;
640};
641
645 std::uint64_t reader_handle = 0;
646
649};
650
654 std::uint64_t reader_handle = 0;
655
658};
659
665
671
675 std::vector<Participant*> participants;
676};
677
682
684 EncryptionState state = EncryptionState::New;
685};
686
694 std::shared_ptr<RemoteDataTrack> track;
695};
696
700 std::string sid;
701};
702
703} // namespace livekit
Base class for local and remote room participants.
Definition participant.h:34
Represents a remote participant in a LiveKit room.
Definition remote_participant.h:31
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25
EncryptionState
End-to-end encryption state for a participant.
Definition room_event_types.h:67
TrackSource
Source category for a published track.
Definition track.h:43
DataPacketKind
Type of data packet delivery semantics.
Definition room_event_types.h:59
ConnectionState
Current connection state of the room.
Definition room_event_types.h:49
DisconnectReason
Reason why a participant or room was disconnected.
Definition room_event_types.h:80
@ ConnectionTimeout
Server timed out a participant session.
@ Migration
Cloud-only: the server requested the participant to migrate the connection elsewhere.
@ DuplicateIdentity
Another participant with the same identity has joined the room.
@ ServerShutdown
The server instance is shutting down.
@ SipTrunkFailure
SIP protocol failure or unexpected response.
@ RoomClosed
The room was closed, due to all Standard and Ingress participants having left.
@ SignalClose
The signal websocket was closed unexpectedly.
@ UserUnavailable
SIP callee did not respond in time.
@ AgentError
Agent encountered an error.
@ ParticipantRemoved
The participant was removed from the room by the server.
@ Unknown
Unknown or unspecified disconnect reason.
@ MediaFailure
Media stream failure or media timeout.
@ ClientInitiated
The client initiated the disconnect.
@ StateMismatch
The client is attempting to resume a session, but server is not aware of it.
@ JoinFailure
Client was unable to connect fully.
@ UserRejected
SIP callee rejected the call (busy).
@ RoomDeleted
The room was deleted by the server.
ConnectionQuality
Overall quality of a participant's connection.
Definition room_event_types.h:41
DegradationPreference
Controls how the encoder degrades quality when bandwidth is constrained.
Definition room_event_types.h:295
@ MaintainResolution
Degrade framerate to maintain resolution (prioritize image clarity).
@ MaintainFramerateAndResolution
Maintain both framerate and resolution.
@ Balanced
Balance between framerate and resolution degradation.
@ MaintainFramerate
Degrade resolution to maintain framerate (prioritize smooth motion).
Fired when the list of active speakers changes.
Definition room_event_types.h:477
std::vector< Participant * > speakers
Participants currently considered active speakers (owned by Room).
Definition room_event_types.h:479
Key/value pair for participant or room attributes.
Definition room_event_types.h:182
std::string value
Attribute value.
Definition room_event_types.h:187
std::string key
Attribute key.
Definition room_event_types.h:184
Audio encoding configuration used when publishing a track.
Definition room_event_types.h:289
std::uint64_t max_bitrate
Maximum target bitrate in bps.
Definition room_event_types.h:291
Fired when a high-level byte stream reader is opened.
Definition room_event_types.h:643
std::string participant_identity
Identity of the participant that opened the stream.
Definition room_event_types.h:648
std::uint64_t reader_handle
Handle to the underlying byte stream reader.
Definition room_event_types.h:645
Fired when a participant's connection quality estimate changes.
Definition room_event_types.h:540
ConnectionQuality quality
New connection quality.
Definition room_event_types.h:545
Participant * participant
Participant whose connection quality changed (owned by Room).
Definition room_event_types.h:542
Fired when the room's connection state changes.
Definition room_event_types.h:577
ConnectionState state
New connection state.
Definition room_event_types.h:579
Fired when a data channel's buffered amount falls below its low threshold.
Definition room_event_types.h:634
std::uint64_t threshold
New threshold value in bytes.
Definition room_event_types.h:639
DataPacketKind kind
Data channel kind (reliable or lossy).
Definition room_event_types.h:636
One chunk of a data stream’s payload.
Definition room_event_types.h:250
std::optional< int > version
Optional version, mirroring header version if applicable.
Definition room_event_types.h:261
std::uint64_t chunk_index
Zero-based index of this chunk.
Definition room_event_types.h:255
std::vector< std::uint8_t > iv
Optional initialization vector for encrypted payloads.
Definition room_event_types.h:264
std::string stream_id
Stream identifier this chunk belongs to.
Definition room_event_types.h:252
std::vector< std::uint8_t > content
Raw chunk content.
Definition room_event_types.h:258
Fired when a data stream chunk is received.
Definition room_event_types.h:616
std::string participant_identity
Identity of the participant that sent the stream.
Definition room_event_types.h:618
DataStreamChunkData chunk
Chunk payload and metadata.
Definition room_event_types.h:621
Header information for an incoming data stream.
Definition room_event_types.h:196
std::int64_t timestamp
Timestamp (ms since Unix epoch).
Definition room_event_types.h:201
std::optional< std::string > reply_to_stream_id
Optional ID of the stream this one replies to.
Definition room_event_types.h:237
OperationType
Operation type for text streams.
Definition room_event_types.h:223
std::optional< OperationType > operation_type
Optional operation type, for text content.
Definition room_event_types.h:231
std::optional< std::string > name
Optional filename for byte streams.
Definition room_event_types.h:246
std::map< std::string, std::string > attributes
Custom attributes associated with this stream.
Definition room_event_types.h:213
ContentType
Content type carried by this stream.
Definition room_event_types.h:216
std::string stream_id
Unique stream identifier.
Definition room_event_types.h:198
std::optional< bool > generated
True if this stream was generated (e.g. by AI).
Definition room_event_types.h:243
std::optional< std::uint64_t > total_length
Optional total length in bytes, if known.
Definition room_event_types.h:210
std::string mime_type
MIME type of the content (e.g. "application/json").
Definition room_event_types.h:204
std::optional< int > version
Optional version number for the text stream.
Definition room_event_types.h:234
std::vector< std::string > attached_stream_ids
IDs of streams attached to this one.
Definition room_event_types.h:240
std::string topic
Application-defined topic name.
Definition room_event_types.h:207
Fired when a data stream header is received.
Definition room_event_types.h:607
DataStreamHeaderData header
Parsed header data.
Definition room_event_types.h:612
std::string participant_identity
Identity of the participant that sent the stream.
Definition room_event_types.h:609
Trailer metadata for a data stream, sent after all chunks.
Definition room_event_types.h:268
std::string stream_id
Stream identifier.
Definition room_event_types.h:270
std::map< std::string, std::string > attributes
Additional attributes describing the final state of the stream.
Definition room_event_types.h:276
std::string reason
Reason why the stream ended (empty if normal completion).
Definition room_event_types.h:273
Fired when a data stream trailer is received.
Definition room_event_types.h:625
std::string participant_identity
Identity of the participant that sent the stream.
Definition room_event_types.h:627
DataStreamTrailerData trailer
Trailer metadata describing the stream termination.
Definition room_event_types.h:630
Fired when a participant publishes a data track.
Definition room_event_types.h:692
std::shared_ptr< RemoteDataTrack > track
The newly published remote data track.
Definition room_event_types.h:694
Fired when a remote participant unpublishes a data track.
Definition room_event_types.h:698
std::string sid
SID of the track that was unpublished.
Definition room_event_types.h:700
Fired when the room is disconnected.
Definition room_event_types.h:583
DisconnectReason reason
Reason for disconnect, if known.
Definition room_event_types.h:585
Fired when a participant's E2EE state changes.
Definition room_event_types.h:679
EncryptionState state
New encryption state.
Definition room_event_types.h:684
Participant * participant
Local or remote participant whose state changed (owned by Room).
Definition room_event_types.h:681
Optional frame metadata features for published video tracks.
Definition room_event_types.h:308
bool frame_id
Embed a monotonically increasing frame identifier.
Definition room_event_types.h:313
bool user_data
Embed user-supplied data.
Definition room_event_types.h:316
bool user_timestamp
Embed a user-supplied wall-clock timestamp.
Definition room_event_types.h:310
Fired when a local track is successfully published.
Definition room_event_types.h:384
std::shared_ptr< LocalTrackPublication > publication
Track publication for the local track.
Definition room_event_types.h:386
std::shared_ptr< Track > track
The published local track.
Definition room_event_types.h:389
Fired when a local track gets its first subscriber.
Definition room_event_types.h:399
std::shared_ptr< Track > track
Subscribed local track.
Definition room_event_types.h:401
Fired when a local track is unpublished.
Definition room_event_types.h:393
std::shared_ptr< LocalTrackPublication > publication
Publication that was unpublished.
Definition room_event_types.h:395
Fired when a participant's attributes change.
Definition room_event_types.h:522
std::vector< AttributeEntry > changed_attributes
Set of attributes that changed (key/value pairs).
Definition room_event_types.h:527
Participant * participant
Participant whose attributes changed (owned by Room).
Definition room_event_types.h:524
Fired when a remote participant joins the room.
Definition room_event_types.h:369
RemoteParticipant * participant
The newly connected remote participant (owned by Room).
Definition room_event_types.h:371
Fired when a remote participant leaves the room.
Definition room_event_types.h:375
RemoteParticipant * participant
The participant that disconnected (owned by Room).
Definition room_event_types.h:377
DisconnectReason reason
Reason for the disconnect, if known.
Definition room_event_types.h:380
Fired when a participant's encryption status changes.
Definition room_event_types.h:531
Participant * participant
Participant whose encryption status changed (owned by Room).
Definition room_event_types.h:533
bool is_encrypted
True if the participant is now fully encrypted.
Definition room_event_types.h:536
Fired when a participant's metadata is updated.
Definition room_event_types.h:498
std::string old_metadata
Old metadata value.
Definition room_event_types.h:503
Participant * participant
Participant whose metadata changed (owned by Room).
Definition room_event_types.h:500
std::string new_metadata
New metadata value.
Definition room_event_types.h:506
Fired when a participant's name changes.
Definition room_event_types.h:510
std::string old_name
Previous name.
Definition room_event_types.h:515
std::string new_name
New name.
Definition room_event_types.h:518
Participant * participant
Participant whose name changed (owned by Room).
Definition room_event_types.h:512
Fired when a batch of participants has been updated.
Definition room_event_types.h:673
std::vector< Participant * > participants
Participants updated in this event (owned by Room).
Definition room_event_types.h:675
Fired after successfully reconnecting.
Definition room_event_types.h:592
Fired just before attempting to reconnect.
Definition room_event_types.h:589
Fired when the room has reached end-of-stream (no more events).
Definition room_event_types.h:604
Snapshot of core room information.
Definition room_event_types.h:143
std::string name
Room name.
Definition room_event_types.h:148
std::uint32_t num_participants
Approximate number of participants (eventually consistent).
Definition room_event_types.h:172
std::uint32_t departure_timeout
Time (seconds) to keep room open after last standard participant leaves.
Definition room_event_types.h:163
std::uint32_t empty_timeout
Time (seconds) to keep room open if no participants join.
Definition room_event_types.h:160
std::string metadata
Arbitrary application metadata associated with the room.
Definition room_event_types.h:151
bool active_recording
True if the room is currently being recorded.
Definition room_event_types.h:178
std::int64_t creation_time
Creation time of the room (ms since Unix epoch).
Definition room_event_types.h:169
std::uint32_t num_publishers
Approximate number of publishers (eventually consistent).
Definition room_event_types.h:175
std::uint32_t max_participants
Maximum number of participants allowed in the room.
Definition room_event_types.h:166
std::uint64_t reliable_dc_buffered_amount_low_threshold
Low-watermark threshold for reliable data channel buffer.
Definition room_event_types.h:157
std::uint64_t lossy_dc_buffered_amount_low_threshold
Low-watermark threshold for lossy data channel buffer.
Definition room_event_types.h:154
std::optional< std::string > sid
Room SID, if known.
Definition room_event_types.h:145
Fired when room metadata is updated.
Definition room_event_types.h:483
std::string old_metadata
Previous metadata value.
Definition room_event_types.h:485
std::string new_metadata
New metadata value.
Definition room_event_types.h:488
Fired when the participant has been moved to another room.
Definition room_event_types.h:667
RoomInfoData info
Info about the new room.
Definition room_event_types.h:669
Fired when the room SID changes (e.g., after migration).
Definition room_event_types.h:492
std::string sid
New room SID.
Definition room_event_types.h:494
Fired when the room's info is updated.
Definition room_event_types.h:661
RoomInfoData info
New room info snapshot.
Definition room_event_types.h:663
SIP (Session Initiation Protocol) DTMF payload carried via data packets.
Definition room_event_types.h:134
std::uint32_t code
Numeric DTMF code (0-15, mapping to 0-9, *, #, A-D).
Definition room_event_types.h:136
std::optional< std::string > digit
Human-readable digit representation (e.g. "1", "#").
Definition room_event_types.h:139
Fired when a SIP DTMF packet is received.
Definition room_event_types.h:565
RemoteParticipant * participant
Remote participant that sent the DTMF (owned by Room).
Definition room_event_types.h:573
int code
DTMF code.
Definition room_event_types.h:567
std::string digit
Human-readable DTMF digit.
Definition room_event_types.h:570
Fired when a high-level text stream reader is opened.
Definition room_event_types.h:652
std::string participant_identity
Identity of the participant that opened the stream.
Definition room_event_types.h:657
std::uint64_t reader_handle
Handle to the underlying text stream reader.
Definition room_event_types.h:654
Fired when the server refreshes the session access token.
Definition room_event_types.h:598
std::string token
Refreshed access token.
Definition room_event_types.h:600
Fired when a track is muted.
Definition room_event_types.h:459
Participant * participant
Local or remote participant who owns the track (owned by Room).
Definition room_event_types.h:461
std::shared_ptr< TrackPublication > publication
Publication that was muted.
Definition room_event_types.h:464
Options for publishing a track to the room.
Definition room_event_types.h:324
std::optional< VideoEncodingOptions > video_encoding
Optional video encoding parameters.
Definition room_event_types.h:326
std::optional< bool > red
Enable or disable RED (redundant encoding).
Definition room_event_types.h:338
std::optional< bool > simulcast
Enable or disable simulcast.
Definition room_event_types.h:341
std::optional< FrameMetadataFeatures > frame_metadata_features
Optional frame metadata features to enable for published video.
Definition room_event_types.h:353
std::optional< std::string > stream
Optional stream label/group for this track.
Definition room_event_types.h:347
std::optional< bool > dtx
Enable or disable discontinuous transmission (DTX).
Definition room_event_types.h:335
std::optional< VideoCodec > video_codec
Optional video codec to use.
Definition room_event_types.h:332
std::optional< AudioEncodingOptions > audio_encoding
Optional audio encoding parameters.
Definition room_event_types.h:329
FrameMetadataFeatures packet_trailer_features
Definition room_event_types.h:357
std::optional< DegradationPreference > degradation_preference
Controls how the encoder trades off between resolution and framerate when bandwidth is constrained.
Definition room_event_types.h:361
std::optional< TrackSource > source
Track source (camera, microphone, screen share, etc.).
Definition room_event_types.h:344
std::optional< bool > preconnect_buffer
Enable pre-connect buffering for lower startup latency.
Definition room_event_types.h:350
Fired when a remote participant publishes a track.
Definition room_event_types.h:405
std::shared_ptr< RemoteTrackPublication > publication
Remote track publication.
Definition room_event_types.h:407
RemoteParticipant * participant
Remote participant who owns this track (owned by Room).
Definition room_event_types.h:410
Fired when a remote track is successfully subscribed.
Definition room_event_types.h:423
std::shared_ptr< Track > track
Subscribed remote track.
Definition room_event_types.h:425
std::shared_ptr< RemoteTrackPublication > publication
Publication associated with the track.
Definition room_event_types.h:428
RemoteParticipant * participant
Remote participant who owns the track (owned by Room).
Definition room_event_types.h:431
Fired when subscribing to a remote track fails.
Definition room_event_types.h:447
std::string error
Error message describing the failure.
Definition room_event_types.h:455
std::string track_sid
SID of the track that failed to subscribe.
Definition room_event_types.h:452
RemoteParticipant * participant
Remote participant for which the subscription failed (owned by Room).
Definition room_event_types.h:449
Fired when a track is unmuted.
Definition room_event_types.h:468
Participant * participant
Local or remote participant who owns the track (owned by Room).
Definition room_event_types.h:470
std::shared_ptr< TrackPublication > publication
Publication that was unmuted.
Definition room_event_types.h:473
Fired when a remote participant unpublishes a track.
Definition room_event_types.h:414
std::shared_ptr< RemoteTrackPublication > publication
Remote track publication that was removed.
Definition room_event_types.h:416
RemoteParticipant * participant
Remote participant who owned this track (owned by Room).
Definition room_event_types.h:419
Fired when a remote track is unsubscribed.
Definition room_event_types.h:435
RemoteParticipant * participant
Remote participant who owns the track (owned by Room).
Definition room_event_types.h:443
std::shared_ptr< Track > track
Track that was unsubscribed.
Definition room_event_types.h:437
std::shared_ptr< RemoteTrackPublication > publication
Publication associated with the track.
Definition room_event_types.h:440
Fired when a user data packet (non-SIP) is received.
Definition room_event_types.h:549
std::vector< std::uint8_t > data
Payload data.
Definition room_event_types.h:551
RemoteParticipant * participant
Remote participant that sent this packet, or nullptr if server (owned by Room).
Definition room_event_types.h:558
std::string topic
Optional topic associated with this data (may be empty).
Definition room_event_types.h:561
DataPacketKind kind
Delivery kind (reliable or lossy).
Definition room_event_types.h:554
Application-level user data carried in a data packet.
Definition room_event_types.h:118
std::vector< std::uint8_t > data
Raw payload bytes.
Definition room_event_types.h:120
std::optional< std::string > topic
Optional topic name associated with this payload.
Definition room_event_types.h:123
Video encoding configuration used when publishing a track.
Definition room_event_types.h:280
double max_framerate
Maximum frame rate in frames per second.
Definition room_event_types.h:285
std::uint64_t max_bitrate
Maximum target bitrate in bps.
Definition room_event_types.h:282