Can i somehow publish camera?
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
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?
Hey, what do you mean by live view?
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.
@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
@maisonsmd
Hi, thanks to your project file I’m able to stream video from raspberry to Livekit, can I ask you to give me some hint or better an example for stream also the audio track? I need to send and receive it. I have and USB microphone and speaker. Thanks for your support
@nicolarigoni Uh I haven't experienced with audio tracks yet, might take a look at it later when I have time.
@maisonsmd Thanks, I can give you a quick update, I successfully send audio but it’s not perfect (the problem is in CPU resources) and I’m trying to optimize the script. But I don’t know really how to subscribe to a track in order to have the audio to play on the speaker