DEV Community

Discussion on: Python WebRTC basics with aiortc

Collapse
 
whitphx profile image
Yuichiro Tachibana (Tsuchiya) • Edited

Since my example does not work, there seems something wrong in your environment. For example, network problems.
Are you using firewall software or being inside a office network which may drop WebRTC packets?

Apart from that, your app hosted on Sharing does not work in my env, where my app works on the other hand. It implies there may also be something wrong in your app code, but I can't find an exact reason.
However I found one thing; your app executes mask_image() in every execution, even when the WebCam mode is selected. What if it is modified not to be run when not necessary?

Collapse
 
zeeshaan profile image
Zeeshaan

I'm not using any firewall, And my app code is executing successfully on the local server, But It is not working on the Sharing Streamlit.

Does your app works on Sharing ? Because it in not working on any of my env.

Thread Thread
 
whitphx profile image
Yuichiro Tachibana (Tsuchiya)

Does your app works on Sharing ?

Yes. That's why I think there are something wrong in your environment.

Can you share the logs displayed in the browser's developer tool? Are there some errors?

Thread Thread
 
zeeshaan profile image
Zeeshaan

Sharing the log file please check.
Log File: dev-to-uploads.s3.amazonaws.com/up...

I'm asking you to please look into my code.
Github Code: github.com/zeeshaan28/Face-Mask-De...

I'm also sharing with you the log file of your example deployed on Sharing
File: dev-to-uploads.s3.amazonaws.com/up...