Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sejwal-advaint opened this issue Jun 1, 2023 · 3 comments
Open

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

Sejwal-advaint opened this issue Jun 1, 2023 · 3 comments
Labels
question Further information is requested

Comments

@Sejwal-advaint
Copy link

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 ?

@k-yle k-yle added the question Further information is requested label Jun 13, 2023
@k-yle
Copy link
Owner

k-yle commented Jun 13, 2023

this package supports audio, and it is enabled by default

@theanlay
Copy link

theanlay commented Jul 6, 2023

      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

@advaint
Copy link

advaint commented Aug 30, 2023

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants