node-webrtc-examples icon indicating copy to clipboard operation
node-webrtc-examples copied to clipboard

listen EACCES: permission denied ./1.sock

Open kuldeepchopradotnet opened this issue 5 years ago • 5 comments
trafficstars

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?

kuldeepchopradotnet avatar Jul 16 '20 03:07 kuldeepchopradotnet

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

Serafo44 avatar Aug 04 '20 08:08 Serafo44

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

HyperClockUp avatar Sep 27 '20 06:09 HyperClockUp

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

markandrus avatar Sep 28 '20 19:09 markandrus

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 avatar Feb 15 '21 21:02 rodwinprimera

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

rodwinprimera avatar Feb 15 '21 21:02 rodwinprimera