node-webrtc / node-webrtc-examples

MediaStream and RTCDataChannel examples using node-webrtc
508 stars 161 forks source link

listen EACCES: permission denied ./1.sock #30

Open kuldeepchopradotnet opened 4 years ago

kuldeepchopradotnet commented 4 years ago

Environment : window 10 Node : v12.14.1

when i run this project for recording it throw error when i stop video stream listen EACCES: permission denied ./1.sock i think "nat" server.listen not working with "./1.sock" string

can you help?

Serafo44 commented 4 years ago

Can you try on a Linux OS ? I think i've got the same issue when i test this project on windows

HyperClockUp commented 3 years ago

same with your problem, any measure to deal with it?(Win 10, Node v10.17.0)

markandrus commented 3 years ago

Sorry, I don't have Windows and cannot test there.

rodwinprimera commented 3 years ago

I found a solution for those who unsan windos, it is not very elegant but it solves the problem, if you want to know how to get to the solution you can contact me, I hope you can improve the solution and add it to the project repository server.txt

rodwinprimera commented 3 years ago

It turns out that the StreamInput library uses an ipc unix port only available in linux, to create a socket that points to a path in the directory, if we ignore that library and pass it a path that points to a vasio file it will create the video, so use child, fs, to access the audio and video data of the transmission, to then fill those files, with the data, later when closing the transmission pass the files to ffmpeg and the video was created