File size: 388 Bytes
df80275 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
"""A sample of controlling the playing state from Python."""
import streamlit as st
from streamlit_webrtc import WebRtcMode, webrtc_streamer
playing = st.checkbox("Playing", value=True)
webrtc_streamer(
key="programatic_control",
desired_playing_state=playing,
mode=WebRtcMode.SENDRECV,
rtc_configuration={"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]},
)
|