Pratyush101 commited on
Commit
0061844
·
verified ·
1 Parent(s): 7be4c07

Delete pages/12_media_constraints_configs.py

Browse files
pages/12_media_constraints_configs.py DELETED
@@ -1,22 +0,0 @@
1
- """A sample to configure MediaStreamConstraints object"""
2
-
3
- import streamlit as st
4
- from streamlit_webrtc import WebRtcMode, webrtc_streamer
5
-
6
- from sample_utils.turn import get_ice_servers
7
-
8
- frame_rate = 5
9
- webrtc_streamer(
10
- key="media-constraints",
11
- mode=WebRtcMode.SENDRECV,
12
- rtc_configuration={"iceServers": get_ice_servers()},
13
- media_stream_constraints={
14
- "video": {"frameRate": {"ideal": frame_rate}},
15
- },
16
- video_html_attrs={
17
- "style": {"width": "50%", "margin": "0 auto", "border": "5px yellow solid"},
18
- "controls": False,
19
- "autoPlay": True,
20
- },
21
- )
22
- st.write(f"The frame rate is set as {frame_rate}. Video style is changed.")