Replies: 1 comment
-
Why do you absolutely need to use threading, couldn't you use two processes and a unix pipe? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm trying to run two clients in a single script using multithreading. The purpose of this is for automated testing of a WebRTC connection. I want to input a video file, and get a recorded video file as an output.
My script is based off the videostream-cli example. I have two threads that essentially run this example, one as an offer, another as an answer. To communicate between the threads, I'm trying to modify the CopyAndPasteSignalling class to use a Queue.
The
run()
function from videostream-cli is encapsulated into the classclient
I can see that messages are successfully being sent and received However, the video isn't being recorded. I've determined this is because the player on the offer client isn't sending anything. The answer client is able to record video if the offer is from a non-threaded client. Therefore I think threading the offer has caused an issue somewhere.
Any ideas on why threading has broken video playback?
Beta Was this translation helpful? Give feedback.
All reactions