I’m using the videoroom.rs demo, and I’m testing trace events but not getting any.
Both client and server are localhost.
On the server, in the client message handler, when a “Produce” message is received from the client, transport.produce() creates a producer and is used to run this code:
let trace_types = vec![
ProducerTraceEventType::Rtp
];
producer.enable_trace_event(trace_types).await.unwrap();
let handler_id = producer.on_trace(|_data| {
println!("trace event");
});
handler_id.detach();
The videoroom demo is working properly for me, but I’m not getting any events. What am I missing?