rtsp-relay
rtsp-relay copied to clipboard
Unable to hear audio only video can be seen in web browser
Hi @k-yle I have used this package to convert RTSP to show it in browser but I get only video with no audio .Does this package support audio too. If Yes, Can you let me know how to configure that ?
this package supports audio, and it is enabled by default
useEffect(() => {
if (!canvas.current) throw new Error('Ref is null');
loadPlayer({
url: 'ws://localhost:xxxx/api/stream/xx.x.x.Xxx',
canvas: canvas.current,
});
}, []); <canvas ref={canvas} style={{ width: "100%", height: "100%" }} /> , i want to display video from this package , how to get video and sound if i use react project
Hi @k-yle
Able to play the video but not audio. Getting following warning on google chrome browser.
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
How to play the audio ? is there any workaround ?