varinyc Posted July 17, 2009 Author Share Posted July 17, 2009 I'm trying to get my client to play an mp3 from online instead of my music folder.I went into map settings, put the url in, checked the url checkbox, and I've even tested to make sure it worked by clicking play.. but when the map loads it says it's an incorrect URL.o.0 Am I doing something wrong/incomplete? or is there a way to fix this?PS: it's my site, I'm hosting the music and I have unlimited bandwidth so, no worries there. Link to comment Share on other sites More sharing options...
Kite Posted July 17, 2009 Share Posted July 17, 2009 Hmm, I remember reading the url box is broken by default.I forgot what topic it was in, but it is broken.So, I would stick to the music folder.I tried to do that, it played but when I hit save it said that same thing as yours. Link to comment Share on other sites More sharing options...
varinyc Posted July 18, 2009 Author Share Posted July 18, 2009 By default, as in it's broken on purpose? or just that it's broken to begin with?Is there any specific reason why it's broken in the first place? o.oBecause I got it to work just fine, and can post it if needed. Link to comment Share on other sites More sharing options...
Ridrik Posted July 19, 2009 Share Posted July 19, 2009 I guess what you can try doing is uploading to another server… Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 19, 2009 Share Posted July 19, 2009 I know it works with midis, but I don't think it works with mp3s; just never did. Link to comment Share on other sites More sharing options...
varinyc Posted July 22, 2009 Author Share Posted July 22, 2009 mp3 seems to work for me, especially since that's all i've usedHere's how I got it working so far:Replace the following:```Public Sub PlayBGM(Song As String) If ReadINI("CONFIG", "Music", App.Path & "\config.ini") = 1 Then If FileExists("\Music\" & Song) Then If Not LenB(Song) = 0 Then If Not Left$(Song, 7) = "http://" Then Call frmMirage.MusicPlayer.PlayMedia(App.Path & "\Music\" & Song, True) CurrentSong = Song Else Call frmMirage.MusicPlayer.PlayMedia(Song, True) CurrentSong = Song End If End If Else Call AddText(Song & " does not exist!", BRIGHTRED) End If End IfEnd Sub```with this:```Public Sub PlayBGM(Song As String) If ReadINI("CONFIG", "Music", App.Path & "\config.ini") = 1 Then If Not LenB(Song) = 0 Then If Not Left$(Song, 7) = "http://" Then If FileExists("\Music\" & Song) Then Call frmMirage.MusicPlayer.PlayMedia(App.Path & "\Music\" & Song, True) CurrentSong = Song Else Call AddText(Song & " does not exist!", BRIGHTRED) End If Else Call frmMirage.MusicPlayer.PlayMedia(Song, True) CurrentSong = Song End If End If End IfEnd Sub```and replace the following:```Public Sub MapMusic(ByVal Song As String) If Not Map(GetPlayerMap(MyIndex)).music = CurrentSong Then Call PlayBGM(Map(GetPlayerMap(MyIndex)).music) End IfEnd Sub```with this:```Public Sub MapMusic(ByVal Song As String) If Not Map(GetPlayerMap(MyIndex)).music = CurrentSong Then Call StopBGM Call PlayBGM(Map(GetPlayerMap(MyIndex)).music) End IfEnd Sub```The only problem with this, is the user is responsible for valid links. But other than that, I've had no problems. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now