Jump to content
RAGE Multiplayer Community

Playing custom sound on client


Spechen
 Share

Recommended Posts

  

Hello, i've got an issue while trying to play any sound from CEF, I tried this script (https://rage.mp/files/file/231-custom-sound-cef) that uses Howler (npm library) or using native HTMLAudioElement and this isn't working, the cef is well loading, but none sound were played, and i've got into the cef console on rage, and i found this :


I've got this error with HTMLAudioElement

[0819/005447.396:ERROR:media_internals.cc(104)] Cannot get RenderProcessHost

And with Howler, i've got this one

[0819/194139.892:INFO:CONSOLE(2)] "The Web Audio autoplay policy will be re-enabled in Chrome 71 (December 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu", source: https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.2/howler.core.min.js (2)


The CEF built-in uses Chromium v70, how can I play a custom sound ?

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...