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

Can i somehow publish camera? #154

Open
stepskop opened this issue Jan 23, 2024 · 5 comments
Open

Can i somehow publish camera? #154

stepskop opened this issue Jan 23, 2024 · 5 comments

Comments

@stepskop
Copy link

No description provided.

@theomonnom
Copy link
Member

Hey, this is not supported by the Python SDK yet.
In the meantime you can use a library like OpenCV and forward the frames to an AudioSource

@theomonnom theomonnom reopened this Feb 9, 2024
@stepskop
Copy link
Author

Hey, this is not supported by the Python SDK yet. In the meantime you can use a library like OpenCV and forward the frames to an AudioSource

So there is not any way to cast image frames like live view?

@theomonnom
Copy link
Member

Hey, what do you mean by live view?

@stepskop
Copy link
Author

Hey, what do you mean by live view?

I mean like live preview of camera. Lets say i have Raspberry Pi with camera at my doorstep, and i want access the camera via Livekit in app on mobile. In short, publish camera from Python LivekitSDK -> JS LivekitSDK. I think it is possible via OpenCV, but i was unable to create propper Livekit's VideoSource.

@maisonsmd
Copy link

maisonsmd commented Dec 22, 2024

@stepskop

This is my working snippet based on suggestions from others.

Basically:

  • Create a Livekit VideoSource
  • Create a OpenCV VideoCapture device
  • Continuously & manually read the capture device frames + write to VideoSource

Gist link: https://gist.github.com/maisonsmd/d9af7345dc6406d25f3b174de7c046b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants