Graal Forums  

Go Back   Graal Forums > Development Forums > Sounds & Music
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-24-2012, 03:04 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
Playing through web

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?

PHP Code:
//#CLIENTSIDE
function onCreated() {
//play music

sending me an example of a link of an example song would really help also.
Reply With Quote
  #2  
Old 12-24-2012, 05:41 AM
BboyEatsbacon BboyEatsbacon is offline
The Bacon Man
BboyEatsbacon's Avatar
Join Date: Feb 2011
Location: United States
Posts: 60
BboyEatsbacon will become famous soon enough
This would go under the NPC Scripting sub-forum, but:

PHP Code:
//CLIENTSIDE
function onCreated() {
   
play("urlhere"); // Play the file.

or you can use playlooped();.
Reply With Quote
  #3  
Old 12-24-2012, 07:10 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
I tried it with a test song and it didn't work...

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

Reply With Quote
  #4  
Old 12-24-2012, 05:12 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by brokk View Post
I tried it with a test song and it didn't work...

PHP Code:
//#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.
Reply With Quote
  #5  
Old 12-24-2012, 05:14 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by brokk View Post
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?
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.