Install & Compatibility
Where this runs
tested against v0.72.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.9
✕ build_error
✕ build_error
580MB installed
● package 580MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
webrtc_streamer
✓ from streamlit_webrtc import webrtc_streamer
✗ from streamlit_webrtc import WebRtcStreamer
The class is a function, not a class; wrong casing leads to ImportError
WebRtcStreamerContext
✓ from streamlit_webrtc import WebRtcStreamerContext
Used for accessing state and video/audio receivers
VideoTransformerBase
✓ from streamlit_webrtc import VideoTransformerBase
Base class for video transformations; use with webrtc_streamer
Minimal app that displays a webcam feed with a no-op video transformer.
import streamlit as st
from streamlit_webrtc import webrtc_streamer, VideoTransformerBase
class MyTransformer(VideoTransformerBase):
def transform(self, frame):
return frame
webrtc_streamer(key="example", video_transformer_factory=MyTransformer)
Errors
Common errors & fixes
ImportError: cannot import name 'WebRtcStreamer' from 'streamlit_webrtc'
Using wrong case (WebRtcStreamer instead of webrtc_streamer) or wrong import path.
fixUse `from streamlit_webrtc import webrtc_streamer` (all lowercase).
TypeError: 'NoneType' object is not callable
`video_transformer_factory` returned None, or no factory was provided.
fixEnsure `video_transformer_factory` returns a valid transformer instance (e.g., MyTransformer()).
RuntimeError: Could not obtain user media
Browser requires HTTPS (or localhost) for getUserMedia.
fixRun on localhost (default with streamlit run) or deploy with HTTPS.
Upgrade
Version history
0.72.2latest on PyPI · released Jun 19, 2026
Audit
Dependencies
streamlitrequiredCore dependency; the component is designed to run inside a Streamlit app
avoptionalAudio/video processing (required for media transformations)