Xenius Posted September 9, 2017 Share Posted September 9, 2017 (edited) Hi guys, My suggestion is a new function to play custom sounds and webstreams just like in MTA:SA. Example: sound.playFromFile(file or url, looped); sound.playFromFile("mysound.mp3", true); sound.playFromURL(url or file, posX, posY, posZ, distance, dimension, looped); sound.playFromURL("http://stream.musicfm.hu:8000/musicfm.mp3", -365.2, 202.4, 10, 50, 0, false); Edited September 9, 2017 by Xenius Link to comment Share on other sites More sharing options...
Curtis Posted September 20, 2017 Share Posted September 20, 2017 (edited) It is possible to play sound files, through a CEF page, using the HTML5 audio tag; Web streams are supported, but it seems like only in the OGG format. Currently the embed version of CEF doesn't support the MP3 file type, but, it does support external OGG and WAV files. Edited September 20, 2017 by Curtis Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now