I have a question how Dahua can present the camera feed in their website for the same camera?
Is it possible to get directly to the link where it does it
As pointed out the best quality feed would be using RTSP.. In some cameras you can use a mjpg stream for a video connection but that quality is very poor? Plus you would need to have a camera that supports that. Then because the cameras that might support it might also be only a 2 stream camera that would mean your connection to a NVR or other device that would normally use sub stream is going to have a very poor quality view.. If your camera supports it, it would be under Encode Mode and in some cameras might be an option under Resolution. Then you would get to the stream with this and again this code is missing the dual / that you would need to run it in a browser..
Don't know what WebRTC camera is out there that supports the normal formats of h.264, h.265 and what I was talking about the older not as clean MJPEG.. WebRTC would have to be a camera that supports that format from the start. Would require extra work in a Firmware to make it work in a normal IP camera and not sure of anyone that has done such a thing.. WebRTC cameras would normally be marketed as such and I don't know any that offer it seeing how one would need access to STUN/TURN servers..
Sorry I couldn't help you with your needs.. Maybe someone on the forum would have some better info for you request. Good luck in your search.