Jump to content
RAGE Multiplayer Community

Play custom sound / webstream


Xenius
 Share

Recommended Posts

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 by Xenius
Link to comment
Share on other sites

  • 2 weeks later...

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 by Curtis
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...