<#C088ZNU7QQ5|ask-ai> can we use livekit as media ...
# ask-ai
s
#ask-ai can we use livekit as media stream without agent being involed?
t
Thanks for reaching out, Karthik. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! LiveKit can definitely be used as a media stream without needing an agent involved. It’s a real-time communication platform that allows audio, video, and data streaming between participants in a room. Everyone can publish and subscribe to media tracks directly using LiveKit’s client SDKs, with media being relayed smoothly through the LiveKit server’s SFU (Selective Forwarding Unit) architecture. To give you some examples: • You can use handy tools like OBS, FFmpeg, or GStreamer to stream media into a LiveKit room via Ingress, all without involving any agents. • Clients are able to send files or binary data using byte streams, and text through text streams, again without needing an agent. Just to reassure you, AI agents are completely optional add-ons—they’re not required for the core media streaming to work. Sources: AI Agents Framework | livekit/livekit_composite | DeepWiki | Subscribing to tracks | LiveKit docs | Encoder configuration | LiveKit docs | Sending files & bytes | LiveKit docs | Speech-to-text (STT) models | LiveKit Docs
s
can u give me any example code from the git
t
It sounds like you want example code from GitHub to stream media without an agent. Do you want: • Examples from a specific repo/path (if so, which one)? • Or quick, runnable samples? I can share: ◦ Browser: publish audio from a URL (WebAudio) example ◦ Browser: publish a canvas as video example ◦ Server-side: publish audio/video tracks and work with raw frames docs and publish basics Tell me which one you prefer, and I’ll paste the code snippet. Sources: Stream music over WebRTC using React and WebAudio | Streaming video from a canvas with WebRTC and React | Camera & microphone | LiveKit Docs | Processing raw media tracks | LiveKit docs | Capturing the First Few Seconds of a Call for Processing