Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Question #4

Open
doniyorsaidmurodov opened this issue May 18, 2021 · 14 comments
Open

Question #4

doniyorsaidmurodov opened this issue May 18, 2021 · 14 comments

Comments

@doniyorsaidmurodov
Copy link

doniyorsaidmurodov commented May 18, 2021

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"
}

@naveenrobo
Copy link
Collaborator

@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.

@Nidheeshv0312
Copy link

any luck with this @Doniyor4120

@naveenrobo
Copy link
Collaborator

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

@doniyorsaidmurodov
Copy link
Author

Thank you guys

@doniyorsaidmurodov
Copy link
Author

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

@naveenrobo
Copy link
Collaborator

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

@deng0515001
Copy link

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
Copy link

i do not know how wsURL works

@naveenrobo
Copy link
Collaborator

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

@deng0515001
Copy link

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?

@naveenrobo
Copy link
Collaborator

@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.

@deng0515001
Copy link

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?

@naveenrobo
Copy link
Collaborator

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

@neonmohsen
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants