skymaze / pymediasoup

mediasoup python client
MIT License
26 stars 14 forks source link

Example poblem ask for help #4

Closed fengkouxiaozhu closed 3 years ago

fengkouxiaozhu commented 3 years ago

Hi :

when I run python mediasoup .py xxxx , i want to open local webcam , but I found in server it can not proceduce correct video stream. as follows I wonder how can i USE THE Pymediasoup produce the webcam video stream? videostreamTrack does the lib have the function of getusermedia or getvideostream?

skymaze commented 3 years ago

You can use MediaPlayer: https://github.com/aiortc/aiortc/blob/main/examples/webcam/webcam.py