Thread Tools Display Modes
09-21-09, 02:46 PM   #1
ormjaevel
An Aku'mai Servant
AddOn Compiler - Click to view compilations
Join Date: May 2009
Posts: 38
Use /script to make a song repeat?

Hello!

When I play I usual listen to Youtube, but as many know youtube dont have an repeat button. Today a friend send me this:

/script PlaySoundFile("Sound\\Music\\ZoneMusic\\DMF_L70ETC01.mp3")

As everyone knows that plays a song so I got an idea from that..
Can I use /script to press "play" at youtube somehow?

Everytime I'm in arena and listen to music it stop plays and I have to tab..
Dont laugh at me now

/ormjaevel
  Reply With Quote
09-21-09, 03:00 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
http://wowprogramming.com/docs/api/PlayMusic

Try using that instead. Make sure that "Loop music" is enabled in your Sound Options for WoW (that's the Sound_ZoneMusicNoDelay setting mentioned on the page I linked).
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-21-09, 09:31 PM   #3
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by ormjaevel View Post
<snip>
Can I use /script to press "play" at youtube somehow?

Everytime I'm in arena and listen to music it stop plays and I have to tab..
Dont laugh at me now

/ormjaevel
I don't think you can access YouTube (or anything outside the game) using a script from inside the game. You might think about making an arena playlist for yourself on YouTube, then it will play what you want to hear in order (or repeat, if you like).

I hope I understood what you're asking. What Seerah linked to is how to create a "Player" inside WoW using MP3 files that you have have placed in your addons file, accordingly.


Edit: Just to add... If you go Seerah's route instead of YouTube playlist route, you could set it to play whenever you enter a zone (arena, BG, Dungeon), looping the song (replaying over and over). You could use a different song for each zone you tell it to look for. It shouldn't be too difficult to do so, even with very little programming knowledge.

Last edited by Yhor : 09-21-09 at 09:40 PM.
  Reply With Quote
09-21-09, 10:46 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Ah, thanks, Yhor. I guess I skimmed past the "script for YouTube" line. ><
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-22-09, 03:06 AM   #5
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by Seerah View Post
Ah, thanks, Yhor. I guess I skimmed past the "script for YouTube" line. ><
We'll let it slide... this time .


*birthday hugs*
  Reply With Quote
09-22-09, 03:26 AM   #6
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Make an playlist at YT
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
09-22-09, 05:17 AM   #7
ormjaevel
An Aku'mai Servant
AddOn Compiler - Click to view compilations
Join Date: May 2009
Posts: 38
Seerah: You missed the youtube line, as you said later on

Yhor: hm, well..I've been trying to reach the goal folder for "/script PlaySoundFile("Sound\\Music\\ZoneMusic\\L70ETC01.mp3")" but I really CANT find it. Do you know where I can find it?

Yourstruly: Well, I can do that. Besides that the list doesnt repeat. Its just playing from start to bottom and sometimes I wanna listen to the same song over and over. So that wont work, i've already tryed it.
  Reply With Quote
09-22-09, 06:14 AM   #8
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Originally Posted by ormjaevel View Post
Yhor: hm, well..I've been trying to reach the goal folder for "/script PlaySoundFile("Sound\\Music\\ZoneMusic\\L70ETC01.mp3")" but I really CANT find it. Do you know where I can find it?
The path only exists if you extracted it from the .mpq files or created it yourself.

Originally Posted by ormjaevel View Post
Yourstruly: Well, I can do that. Besides that the list doesnt repeat. Its just playing from start to bottom and sometimes I wanna listen to the same song over and over. So that wont work, i've already tryed it.
I'm sure someone linked a site to stream music from YouTube. The first one to pop up on a google search was StreamDrag and Songza, look if those kind of sites have what you need.
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 09-22-09 at 06:18 AM.
  Reply With Quote
09-22-09, 11:57 AM   #9
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by ormjaevel View Post
<snip>

Yourstruly: Well, I can do that. Besides that the list doesnt repeat. Its just playing from start to bottom and sometimes I wanna listen to the same song over and over. So that wont work, i've already tryed it.

http://www.youtube.com/watch?v=jiTc2...x=0&playnext=1

Name the playlist after the song name, then add that song as many times as you want it to play. I had to refresh to get it to allow multiple addings to my list, but it works.

Yourstruly answered your other question, you have to create the filepath and add the .mp3/.wav files yourself.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Use /script to make a song repeat?


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

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