PDA

View Full Version : Playing through web


brokk
12-24-2012, 03:04 AM
Correct me if I'm wrong, but isn't there a way to play a song through a direct web link?

If so what is the code to do so?

//#CLIENTSIDE
function onCreated() {
//play music
}

sending me an example of a link of an example song would really help also.

BboyEatsbacon
12-24-2012, 05:41 AM
This would go under the NPC Scripting sub-forum, but:


//CLIENTSIDE
function onCreated() {
play("urlhere"); // Play the file.
}


or you can use playlooped();.

brokk
12-24-2012, 07:10 AM
I tried it with a test song and it didn't work...

//#CLIENTSIDE
function onCreated() {
playlooped("http://crownseating.com/uploads/Calm_River.mp3");
}

scriptless
12-24-2012, 05:12 PM
I tried it with a test song and it didn't work...

//#CLIENTSIDE
function onCreated() {
playlooped("http://crownseating.com/uploads/Calm_River.mp3");
}

Press F3, make sure MP3 volume is turned up. I did something similar but with live streaming music on N-Pulse in there main level half a decade ago.

cbk1994
12-24-2012, 05:14 PM
I tried it with a test song and it didn't work...

Do you see any messages in the F2 console? Does it work for other players? What platform are you using? Does it work with a different MP3 on a different server?