Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting this client with a gstreamer webrtcbin endpoint #37

Closed
ggovindan opened this issue Feb 4, 2023 · 6 comments
Closed

Connecting this client with a gstreamer webrtcbin endpoint #37

ggovindan opened this issue Feb 4, 2023 · 6 comments
Labels
examples Code related to the examples good first issue Good for newcomers

Comments

@ggovindan
Copy link

Forgive me for this ignorant question.

I want to be able to connect to one of the livekit servers to receive a video stream. I came across this client-sdk implemented in Rust (Thanks a lot for this!).

I have the websocket url for the livekit server and the token.
I tried implementing a webrtc client using gstreamer webrtcbin element similar to the example here (https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.20/subprojects/gst-examples/webrtc/sendrecv/gst-rust/src/main.rs)but that fails in the signalling.

Will I have to implement or use one of the client-sdk to make the connection and then feed the RTP packets to the gstreamer pipeline?

@theomonnom
Copy link
Member

Hey @ggovindan,
You can access video frames and feed them to gstreamer-rs using the on_frame callback from the VideoTracks.
You cannot use webrtcbin because LiveKit uses its own custom signaling protocol.
I'll be really interested in having a gstreamer example, I can help you if you make a PR

@ggovindan
Copy link
Author

Thanks @theomonnom ! I will make a PR soon!

@theomonnom theomonnom added good first issue Good for newcomers examples Code related to the examples labels Feb 26, 2023
@spiegela
Copy link
Contributor

@ggovindan did you have any success with this? I'm also interested in gstreamer -> livekit. Thanks!

@spiegela
Copy link
Contributor

Ok. I mis-read -- I wanted to go the reverse and publish from gstreamer to livekit -- I'll poke around some more

@MathieuDuponchelle
Copy link

https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1262 should solve this :)

@MathieuDuponchelle
Copy link

(for the gst -> livekit direction)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Code related to the examples good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants