rtsp-relay icon indicating copy to clipboard operation
rtsp-relay copied to clipboard

Unable to hear audio only video can be seen in web browser

Open Sejwal-advaint opened this issue 2 years ago • 3 comments

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 ?

Sejwal-advaint avatar Jun 01 '23 05:06 Sejwal-advaint

this package supports audio, and it is enabled by default

k-yle avatar Jun 13 '23 10:06 k-yle

      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

theanlay avatar Jul 06 '23 17:07 theanlay

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 ?

advaint avatar Aug 30 '23 12:08 advaint