Can cef remove the muted audio source?

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Can cef remove the muted audio source?

Postby tangyuwu » Tue Jul 09, 2019 3:28 am

I use CEF to record audio by loading a webpage in server. I find there are two audio sources is mute or its' audio value is zero. I think it is waste for the computer. Because it take a lots of CPU time . I want to know whether there is way to close the audio source or tell CEF to stop processe it?

16:13:36(221) OnAudioStreamStarted audio_stream_id=1 sr=44100 chns=2

16:13:36(221) OnAudioStreamStarted audio_stream_id=2 sr=44100 chns=2

16:13:36(251) OnAudioStreamStarted audio_stream_id=3 sr=44100 chns=2
tangyuwu
Newbie
 
Posts: 6
Joined: Tue Mar 26, 2019 1:55 am

Re: Can cef remove the muted audio source?

Postby ndesktop » Tue Jul 09, 2019 6:04 am

You can either set audio.src = ""; or use js to delete audio element directly from DOM.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: Can cef remove the muted audio source?

Postby tangyuwu » Tue Jul 09, 2019 8:36 pm

Thank you very much. I try it.
tangyuwu
Newbie
 
Posts: 6
Joined: Tue Mar 26, 2019 1:55 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 13 guests