dahua-rtsp-web icon indicating copy to clipboard operation
dahua-rtsp-web copied to clipboard

Question

Open doniyorsaidmurodov opened this issue 4 years ago • 14 comments
trafficstars

Hi, bro, I have one question if it is possible to help me, please how I can run WebSocket in your project I configured webpack for development mode and the project is working correctly but, I can't run WebSocket in the project this is my code below localhost:3300 is webpack port

var options = { wsURL: "ws://localhost:3300/rtspoverwebsocket", rtspURL: "rtsp://192.168.1.243:554/cam/realmonitor?channel=1&subtype=0", username: "admin", password: "admin123" }

doniyorsaidmurodov avatar May 18 '21 07:05 doniyorsaidmurodov

@Doniyor4120 WebSocket should be available in latest Dahua cameras and you should give that in the configuration. It is websocket from Dahua IP camera, we wont create any in the project.

naveenrobo avatar May 18 '21 13:05 naveenrobo

any luck with this @Doniyor4120

Nidheeshv0312 avatar May 26 '21 05:05 Nidheeshv0312

@Nidheeshv0312. There is no WebSocket server in the project. Dahua camera provides WebSocket and this code will connect to it.

naveenrobo avatar May 26 '21 07:05 naveenrobo

Thank you guys

doniyorsaidmurodov avatar May 27 '21 07:05 doniyorsaidmurodov

i can't run webpack server can you fix it?

doniyorsaidmurodov avatar May 27 '21 08:05 doniyorsaidmurodov

Webpack dev server is not added in config. Please use 'npm run build' command and host the output of the build.

naveenrobo avatar May 27 '21 18:05 naveenrobo

Hi, bro, I have one question if it is possible to help me, please how I can run WebSocket in your project I configured webpack for development mode and the project is working correctly but, I can't run WebSocket in the project this is my code below localhost:3300 is webpack port

var options = { wsURL: "ws://localhost:3300/rtspoverwebsocket", rtspURL: "rtsp://192.168.1.243:554/cam/realmonitor?channel=1&subtype=0", username: "admin", password: "admin123" }

do you have run success? i have meet the same problem

deng0515001 avatar Apr 11 '22 08:04 deng0515001

i do not know how wsURL works

deng0515001 avatar Apr 11 '22 08:04 deng0515001

@deng0515001. This project uses the websocket provided by Dahua in their cameras. New Dahua cameras support rtsp over websocket and we are using that.

naveenrobo avatar Apr 12 '22 05:04 naveenrobo

thanks very much for your reply . we use the newest camera but the ws is still not work. the rtsp is working well, but the websocket is not. i see the wsURL is 127.0.0.1, is the ws working on the local browser?

deng0515001 avatar Apr 12 '22 09:04 deng0515001

@deng0515001 can you open your network inspector in the browser and check for URL ending with /rtspoverwebsocket. if it is present then this project should work without any issue since we are using it regularly.

naveenrobo avatar Apr 12 '22 17:04 naveenrobo

no, it does not work, and i do not know how this works. do you use any web plugins? like dahua`s webplugin.exe or WebActiveX?

deng0515001 avatar Apr 14 '22 13:04 deng0515001

@deng0515001 no. it doesn't need any plugins. please check in your browser network tab if it has a URL ending with /rtspoverwebsocket.

naveenrobo avatar Apr 15 '22 05:04 naveenrobo

i want to use this source in my react project how can i implement it in react project?

neonmohsen avatar Aug 01 '22 05:08 neonmohsen