Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Sounds & Music (https://forums.graalonline.com/forums/forumdisplay.php?f=180)
-   -   Playing through web (https://forums.graalonline.com/forums/showthread.php?t=134267634)

brokk 12-24-2012 03:04 AM

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.

BboyEatsbacon 12-24-2012 05:41 AM

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();.

brokk 12-24-2012 07:10 AM

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");



scriptless 12-24-2012 05:12 PM

Quote:

Originally Posted by brokk (Post 1710411)
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.

cbk1994 12-24-2012 05:14 PM

Quote:

Originally Posted by brokk (Post 1710411)
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?


All times are GMT +2. The time now is 09:36 PM.

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