livekit / rust-sdks

LiveKit realtime and server SDKs for Rust
https://livekit.io
Apache License 2.0
211 stars 56 forks source link

publish video track only displays `TRACK_PUBLISH_REQUESTED` but no `TRACK_PUBLISHED` #422

Open Thintin914 opened 2 months ago

Thintin914 commented 2 months ago

Hello I want to publish my camera to video track. Here's a short video of what I'm working on: https://share.cleanshot.com/3DPjqSgf

After I called room.local_participant().publish_track(), the room event received LocalTrackPublished event. And Livekit dashboard received TRACK_PUBLISH_REQUESTED event.

I found post about this issue here: https://app.slack.com/client/T01KVSV78P7/C048FRL1N2C It suggested that my client didn't send media packets at all.

But I did call rtc_source.capture_frame(&*video_frame); after the video track is published. Please help.

Project here: https://github.com/Thintin914/shalloville_public Go to src/networking/rtc/video/mod.rs to see the code.

Thintin914 commented 2 months ago

Related code here: https://github.com/livekit/rust-sdks/discussions/421#discussioncomment-10548850