Camera Shut down problem persist after using streamlit webrtc

app link:- Streamlit (opencvbasicapp.streamlit.app)

github:- opencv_basic_app/opencv_app1.py at main · abhinavomer/opencv_basic_app (github.com)

When i tested this app on local machine it worked fine but when i deployed it on streamlit cloud, in live cam mode in navigation bar my camera shut downs unexpectedly please help
streamlit-opencv_app1-2024-04-02-22-04-50-ezgif.com-video-to-gif-converter

@whitphx @dataprofessor Help please

Hi @abhinavomer

Sorry to hear you’re experiencing the issue.

Streamlit Cloud has a resource limit of 1GB for deployed apps. Have you tried decreasing the video resolution or frame rate to reduce the computational load and potentially resolve the problem?

Best,
Charly

Hey @Charly_Wargnier can you please help me in doing that
media_stream_constraints={“video”: {“width”:300,“height”:400,“frameRate”:{“ideal”:10}}, “audio”: False},

i have done this but problem persist