Sign in to follow this  
Xenius

Play custom sound / webstream

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.